Add win32 specific linker flags for Midori extensions
This commit is contained in:
parent
f9a6a8e379
commit
b993cdc553
2 changed files with 4 additions and 0 deletions
|
@ -29,3 +29,5 @@ for extension in extensions:
|
|||
obj.source = source
|
||||
obj.uselib = 'UNIQUE LIBSOUP GIO GTK SQLITE WEBKIT LIBXML HILDON'
|
||||
obj.install_path = '${LIBDIR}/midori'
|
||||
if bld.env['platform'] == 'win32':
|
||||
obj.uselib_local = 'midori'
|
||||
|
|
2
wscript
2
wscript
|
@ -118,6 +118,7 @@ def configure (conf):
|
|||
if not conf.find_program ('convert', var='CONVERT'):
|
||||
Utils.pprint ('YELLOW', 'midori.ico won\'t be created')
|
||||
conf.find_program ('windres', var='WINRC')
|
||||
conf.env['platform'] = 'win32'
|
||||
|
||||
# This is specific to cross compiling with mingw
|
||||
if is_mingw (conf.env) and Options.platform != 'win32':
|
||||
|
@ -261,6 +262,7 @@ def configure (conf):
|
|||
conf.define ('HAVE_OSX', int(sys.platform == 'darwin'))
|
||||
if Options.platform == 'win32':
|
||||
conf.env.append_value ('LINKFLAGS', '-mwindows')
|
||||
conf.env.append_value ('program_LINKFLAGS', ['-Wl,--out-implib=default/midori/libmidori.a', '-Wl,--export-all-symbols'])
|
||||
else:
|
||||
conf.check (header_name='signal.h')
|
||||
|
||||
|
|
Loading…
Reference in a new issue