зеркало из https://github.com/mozilla/pjs.git
Bug 536451 - OS/2 cannot handle mozsqlite3.dll. r=ted
--HG-- extra : rebase_source : c1a6deb7130b1142ca58dad88a34ecdcda75a378
This commit is contained in:
Родитель
1bfb48d74c
Коммит
620cdcce8d
|
@ -91,7 +91,11 @@
|
|||
#elifdef XP_OS2
|
||||
@BINPATH@/plugins/npnulos2.dll
|
||||
#endif
|
||||
#ifndef XP_OS2
|
||||
@BINPATH@/@DLL_PREFIX@mozsqlite3@DLL_SUFFIX@
|
||||
#else
|
||||
@BINPATH@/mozsqlt3@DLL_SUFFIX@
|
||||
#endif
|
||||
@BINPATH@/README.txt
|
||||
@BINPATH@/LICENSE
|
||||
@BINPATH@/blocklist.xml
|
||||
|
|
|
@ -229,12 +229,6 @@ endif # ENABLE_TESTS
|
|||
|
||||
ifndef LIBRARY
|
||||
ifdef STATIC_LIBRARY_NAME
|
||||
ifeq (OS2,$(OS_ARCH))
|
||||
ifdef SHORT_LIBNAME
|
||||
STATIC_LIBRARY_NAME := $(SHORT_LIBNAME)
|
||||
SHARED_LIBRARY_NAME := $(SHORT_LIBNAME)
|
||||
endif
|
||||
endif
|
||||
LIBRARY := $(LIB_PREFIX)$(STATIC_LIBRARY_NAME).$(LIB_SUFFIX)
|
||||
endif # STATIC_LIBRARY_NAME
|
||||
endif # LIBRARY
|
||||
|
@ -253,6 +247,16 @@ ifdef LIB_IS_C_ONLY
|
|||
MKSHLIB = $(MKCSHLIB)
|
||||
endif
|
||||
|
||||
ifneq (,$(filter OS2 WINNT WINCE,$(OS_ARCH)))
|
||||
IMPORT_LIBRARY := $(LIB_PREFIX)$(SHARED_LIBRARY_NAME).$(IMPORT_LIB_SUFFIX)
|
||||
endif
|
||||
|
||||
ifeq (OS2,$(OS_ARCH))
|
||||
ifdef SHORT_LIBNAME
|
||||
SHARED_LIBRARY_NAME := $(SHORT_LIBNAME)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef MAKE_FRAMEWORK
|
||||
SHARED_LIBRARY := $(SHARED_LIBRARY_NAME)
|
||||
else
|
||||
|
@ -263,10 +267,6 @@ ifeq ($(OS_ARCH),OS2)
|
|||
DEF_FILE := $(SHARED_LIBRARY:.dll=.def)
|
||||
endif
|
||||
|
||||
ifneq (,$(filter OS2 WINNT WINCE,$(OS_ARCH)))
|
||||
IMPORT_LIBRARY := $(LIB_PREFIX)$(SHARED_LIBRARY_NAME).$(IMPORT_LIB_SUFFIX)
|
||||
endif
|
||||
|
||||
ifdef MOZ_ENABLE_LIBXUL
|
||||
EMBED_MANIFEST_AT=2
|
||||
endif
|
||||
|
|
|
@ -2537,7 +2537,7 @@ case "$target" in
|
|||
MOZ_DEBUG_FLAGS="-g -fno-inline"
|
||||
MOZ_OPTIMIZE_FLAGS="-O2"
|
||||
MOZ_OPTIMIZE_LDFLAGS="-s -Zlinker /EXEPACK:2 -Zlinker /PACKCODE -Zlinker /PACKDATA"
|
||||
DYNAMIC_XPCOM_LIBS='-L$(LIBXUL_DIST)/lib $(LIBXUL_DIST)/lib/xpcom.lib $(LIBXUL_DIST)/lib/xpcomcor.lib'
|
||||
DYNAMIC_XPCOM_LIBS='-L$(LIBXUL_DIST)/lib $(LIBXUL_DIST)/lib/xpcom.lib $(LIBXUL_DIST)/lib/xpcom_core.lib'
|
||||
LIBXUL_LIBS='-L$(LIBXUL_DIST)/lib $(LIBXUL_DIST)/lib/xpcom.lib $(LIBXUL_DIST)/lib/xul.lib'
|
||||
TARGET_MD_ARCH=os2
|
||||
_PLATFORM_DEFAULT_TOOLKIT="cairo-os2"
|
||||
|
|
|
@ -47,6 +47,7 @@ include $(DEPTH)/config/autoconf.mk
|
|||
|
||||
MODULE = sqlite3
|
||||
LIBRARY_NAME = mozsqlite3
|
||||
SHORT_LIBNAME = mozsqlt3
|
||||
FORCE_SHARED_LIB = 1
|
||||
VISIBILITY_FLAGS =
|
||||
LIB_IS_C_ONLY = 1
|
||||
|
|
|
@ -229,12 +229,6 @@ endif # ENABLE_TESTS
|
|||
|
||||
ifndef LIBRARY
|
||||
ifdef STATIC_LIBRARY_NAME
|
||||
ifeq (OS2,$(OS_ARCH))
|
||||
ifdef SHORT_LIBNAME
|
||||
STATIC_LIBRARY_NAME := $(SHORT_LIBNAME)
|
||||
SHARED_LIBRARY_NAME := $(SHORT_LIBNAME)
|
||||
endif
|
||||
endif
|
||||
LIBRARY := $(LIB_PREFIX)$(STATIC_LIBRARY_NAME).$(LIB_SUFFIX)
|
||||
endif # STATIC_LIBRARY_NAME
|
||||
endif # LIBRARY
|
||||
|
@ -253,6 +247,16 @@ ifdef LIB_IS_C_ONLY
|
|||
MKSHLIB = $(MKCSHLIB)
|
||||
endif
|
||||
|
||||
ifneq (,$(filter OS2 WINNT WINCE,$(OS_ARCH)))
|
||||
IMPORT_LIBRARY := $(LIB_PREFIX)$(SHARED_LIBRARY_NAME).$(IMPORT_LIB_SUFFIX)
|
||||
endif
|
||||
|
||||
ifeq (OS2,$(OS_ARCH))
|
||||
ifdef SHORT_LIBNAME
|
||||
SHARED_LIBRARY_NAME := $(SHORT_LIBNAME)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef MAKE_FRAMEWORK
|
||||
SHARED_LIBRARY := $(SHARED_LIBRARY_NAME)
|
||||
else
|
||||
|
@ -263,10 +267,6 @@ ifeq ($(OS_ARCH),OS2)
|
|||
DEF_FILE := $(SHARED_LIBRARY:.dll=.def)
|
||||
endif
|
||||
|
||||
ifneq (,$(filter OS2 WINNT WINCE,$(OS_ARCH)))
|
||||
IMPORT_LIBRARY := $(LIB_PREFIX)$(SHARED_LIBRARY_NAME).$(IMPORT_LIB_SUFFIX)
|
||||
endif
|
||||
|
||||
ifdef MOZ_ENABLE_LIBXUL
|
||||
EMBED_MANIFEST_AT=2
|
||||
endif
|
||||
|
|
|
@ -2225,7 +2225,7 @@ case "$target" in
|
|||
MOZ_DEBUG_FLAGS="-g -fno-inline"
|
||||
MOZ_OPTIMIZE_FLAGS="-O2"
|
||||
MOZ_OPTIMIZE_LDFLAGS="-s -Zlinker /EXEPACK:2 -Zlinker /PACKCODE -Zlinker /PACKDATA"
|
||||
DYNAMIC_XPCOM_LIBS='-L$(LIBXUL_DIST)/lib $(LIBXUL_DIST)/lib/xpcom.lib $(LIBXUL_DIST)/lib/xpcomcor.lib'
|
||||
DYNAMIC_XPCOM_LIBS='-L$(LIBXUL_DIST)/lib $(LIBXUL_DIST)/lib/xpcom.lib $(LIBXUL_DIST)/lib/xpcom_core.lib'
|
||||
LIBXUL_LIBS='-L$(LIBXUL_DIST)/lib $(LIBXUL_DIST)/lib/xpcom.lib $(LIBXUL_DIST)/lib/xul.lib'
|
||||
TARGET_MD_ARCH=os2
|
||||
_PLATFORM_DEFAULT_TOOLKIT="cairo-os2"
|
||||
|
|
|
@ -83,7 +83,6 @@ DEPENDENT_LIBS_LIST += \
|
|||
ifdef MOZ_ENABLE_LIBXUL
|
||||
|
||||
DEPENDENT_LIBS_LIST += \
|
||||
$(LIB_PREFIX)mozsqlite3$(DLL_SUFFIX) \
|
||||
$(LIB_PREFIX)nssutil3$(DLL_SUFFIX) \
|
||||
$(LIB_PREFIX)softokn3$(DLL_SUFFIX) \
|
||||
$(LIB_PREFIX)nss3$(DLL_SUFFIX) \
|
||||
|
@ -92,6 +91,12 @@ DEPENDENT_LIBS_LIST += \
|
|||
$(LIB_PREFIX)mozjs$(DLL_SUFFIX) \
|
||||
$(NULL)
|
||||
|
||||
ifeq ($(OS_TARGET),OS2)
|
||||
DEPENDENT_LIBS_LIST += mozsqlt3.dll
|
||||
else
|
||||
DEPENDENT_LIBS_LIST += $(LIB_PREFIX)mozsqlite3$(DLL_SUFFIX)
|
||||
endif
|
||||
|
||||
ifeq (bundle,$(MOZ_FS_LAYOUT))
|
||||
EXTRA_DSO_LDOPTS += $(DIST)/bin/XUL
|
||||
DEPENDENT_LIBS_LIST += XUL
|
||||
|
@ -102,11 +107,10 @@ endif
|
|||
|
||||
else #!MOZ_ENABLE_LIBXUL
|
||||
|
||||
EXTRA_DSO_LIBS = xpcom_core
|
||||
ifeq ($(OS_TARGET),OS2)
|
||||
EXTRA_DSO_LIBS = xpcomcor
|
||||
DEPENDENT_LIBS_LIST += xpcomcor.dll
|
||||
else
|
||||
EXTRA_DSO_LIBS = xpcom_core
|
||||
DEPENDENT_LIBS_LIST += $(LIB_PREFIX)xpcom_core$(DLL_SUFFIX)
|
||||
endif
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче