Issue #62 - Get --enable-shared-js and --enable-export-js working again, and fix link bustage related to ICU when doing shared lib

This commit is contained in:
Job Bautista 2023-03-16 13:51:38 +08:00 committed by roytam1
commit b171da18f9

View file

@ -611,11 +611,15 @@ if CONFIG['JS_SHARED_LIBRARY']:
GeckoSharedLibrary('js', linkage=None)
SHARED_LIBRARY_NAME = CONFIG['JS_LIBRARY_NAME']
SDK_LIBRARY = True
if CONFIG['MOZ_ICU_DATA_ARCHIVE']:
USE_LIBS += [
'icudata',
]
else:
Library('js')
FORCE_STATIC_LIB = True
STATIC_LIBRARY_NAME = 'js_static'
FORCE_STATIC_LIB = True
STATIC_LIBRARY_NAME = 'js_static'
NO_EXPAND_LIBS = True
if not CONFIG['MOZ_ICU_DATA_ARCHIVE']:
USE_LIBS += [
@ -660,8 +664,6 @@ if CONFIG['OS_ARCH'] == 'SunOS':
OS_LIBS += CONFIG['REALTIME_LIBS']
NO_EXPAND_LIBS = True
DIST_INSTALL = True
# Prepare self-hosted JS code for embedding