mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #62 - Always build Spidermonkey as shared lib in Windows.
Shared JS is confirmed working fine in Windows after a week of testing. Non-Windows will have to wait unfortunately. The JS_SHARED_LIBRARY option is kept for easy testing on those unsupported platforms.
This commit is contained in:
parent
f09b0002ee
commit
66eaa872f8
1 changed files with 13 additions and 8 deletions
|
|
@ -44,8 +44,11 @@ js_option('--disable-shared-js', default=building_js,
|
|||
js_option('--disable-export-js', default=building_js,
|
||||
help='Do not mark JS symbols as DLL exported/visible')
|
||||
|
||||
@depends('--disable-shared-js', '--disable-export-js')
|
||||
def shared_js(shared_js, export_js):
|
||||
@depends('--disable-shared-js', '--disable-export-js', target)
|
||||
def shared_js(shared_js, export_js, target):
|
||||
# We want shared JS always be enabled on Windows regardless of the enable bool.
|
||||
if target.os == 'WINNT':
|
||||
return True
|
||||
if shared_js:
|
||||
if not export_js:
|
||||
die('Must export JS symbols when building a shared library.')
|
||||
|
|
@ -61,16 +64,18 @@ def exportable_js_api(shared_js, export_js):
|
|||
|
||||
set_define('STATIC_EXPORTABLE_JS_API', exportable_js_api)
|
||||
|
||||
@depends('--disable-shared-js', '--disable-export-js')
|
||||
def static_js_api(shared_js, export_js):
|
||||
if not shared_js and not export_js:
|
||||
@depends('--disable-shared-js', '--disable-export-js', target)
|
||||
def static_js_api(shared_js, export_js, target):
|
||||
# Do not build JS as a static library on Windows, regardless of enable bool.
|
||||
if (target.os != 'WINNT') and not shared_js and not export_js:
|
||||
return True
|
||||
|
||||
set_define('STATIC_JS_API', static_js_api)
|
||||
|
||||
@depends('--disable-shared-js')
|
||||
def static_js(value):
|
||||
if not value:
|
||||
@depends('--disable-shared-js', target)
|
||||
def static_js(value, target):
|
||||
# Do not build JS as a static library on Windows, regardless of enable bool.
|
||||
if (target.os != 'WINNT') and not value:
|
||||
return True
|
||||
|
||||
set_define('MOZ_STATIC_JS', static_js)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue