зеркало из https://github.com/mozilla/pjs.git
Bug 322727 - JavaXPCOM on OS/2. patch by abwillis, r=jhpedemonte/mkaply. XULRunner only.
This commit is contained in:
Родитель
d594924878
Коммит
df4d2e3aae
|
@ -44,6 +44,9 @@ include $(DEPTH)/config/autoconf.mk
|
||||||
|
|
||||||
MODULE = javaxpcomglue
|
MODULE = javaxpcomglue
|
||||||
LIBRARY_NAME = javaxpcomglue
|
LIBRARY_NAME = javaxpcomglue
|
||||||
|
ifeq ($(OS_ARCH),OS2)
|
||||||
|
SHORT_LIBNAME = jxpcmglu
|
||||||
|
endif
|
||||||
|
|
||||||
# On Mac OS X, JNI libraries must end with a '.jnilib' extension
|
# On Mac OS X, JNI libraries must end with a '.jnilib' extension
|
||||||
ifeq ($(OS_ARCH),Darwin)
|
ifeq ($(OS_ARCH),Darwin)
|
||||||
|
@ -59,8 +62,12 @@ LOCAL_INCLUDES = -I$(JAVA_INCLUDE_PATH)
|
||||||
ifeq ($(OS_ARCH),WINNT)
|
ifeq ($(OS_ARCH),WINNT)
|
||||||
LOCAL_INCLUDES += -I$(JAVA_INCLUDE_PATH)/win32
|
LOCAL_INCLUDES += -I$(JAVA_INCLUDE_PATH)/win32
|
||||||
else
|
else
|
||||||
|
ifeq ($(OS_ARCH),OS2)
|
||||||
|
LOCAL_INCLUDES += -I$(JAVA_INCLUDE_PATH)/OS2
|
||||||
|
else
|
||||||
LOCAL_INCLUDES += -I$(JAVA_INCLUDE_PATH)/linux
|
LOCAL_INCLUDES += -I$(JAVA_INCLUDE_PATH)/linux
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
LOCAL_INCLUDES += -I$(topsrcdir)/xpcom/build
|
LOCAL_INCLUDES += -I$(topsrcdir)/xpcom/build
|
||||||
|
|
||||||
|
|
|
@ -69,8 +69,12 @@ LOCAL_INCLUDES = -I$(JAVA_INCLUDE_PATH)
|
||||||
ifeq ($(OS_ARCH),WINNT)
|
ifeq ($(OS_ARCH),WINNT)
|
||||||
LOCAL_INCLUDES += -I$(JAVA_INCLUDE_PATH)/win32
|
LOCAL_INCLUDES += -I$(JAVA_INCLUDE_PATH)/win32
|
||||||
else
|
else
|
||||||
|
ifeq ($(OS_ARCH),OS2)
|
||||||
|
LOCAL_INCLUDES += -I$(JAVA_INCLUDE_PATH)/OS2
|
||||||
|
else
|
||||||
LOCAL_INCLUDES += -I$(JAVA_INCLUDE_PATH)/linux
|
LOCAL_INCLUDES += -I$(JAVA_INCLUDE_PATH)/linux
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# Don't set JAVA_LIBRARY_NAME, since we don't want to build during 'libs'
|
# Don't set JAVA_LIBRARY_NAME, since we don't want to build during 'libs'
|
||||||
# stage, but rather when explicitly called.
|
# stage, but rather when explicitly called.
|
||||||
|
|
|
@ -47,7 +47,13 @@ public class JavaXPCOMMethods {
|
||||||
if (aLibXULDirectory != null) {
|
if (aLibXULDirectory != null) {
|
||||||
path = aLibXULDirectory + File.separator;
|
path = aLibXULDirectory + File.separator;
|
||||||
}
|
}
|
||||||
System.load(path + System.mapLibraryName("javaxpcomglue"));
|
|
||||||
|
String osName = System.getProperty("os.name").toLowerCase();
|
||||||
|
if (osName.startsWith("os/2")) {
|
||||||
|
System.load(path + System.mapLibraryName("jxpcmglu"));
|
||||||
|
} else {
|
||||||
|
System.load(path + System.mapLibraryName("javaxpcomglue"));
|
||||||
|
}
|
||||||
|
|
||||||
registerJavaXPCOMMethodsNative(aLibXULDirectory);
|
registerJavaXPCOMMethodsNative(aLibXULDirectory);
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@ JAVA_SRCS = \
|
||||||
|
|
||||||
DIRS += dll
|
DIRS += dll
|
||||||
|
|
||||||
ifeq ($(OS_ARCH),WINNT)
|
ifneq (,$(filter WINNT OS2,$(OS_ARCH)))
|
||||||
SEP = \;
|
SEP = \;
|
||||||
else
|
else
|
||||||
SEP = :
|
SEP = :
|
||||||
|
|
Загрузка…
Ссылка в новой задаче