25 |
25 |
26 include LibCommon.gmk |
26 include LibCommon.gmk |
27 |
27 |
28 ################################################################################ |
28 ################################################################################ |
29 |
29 |
30 $(eval $(call SetupNativeCompilation, BUILD_LIBUNPACK, \ |
30 $(eval $(call SetupJdkLibrary, BUILD_LIBUNPACK, \ |
31 NAME := unpack, \ |
31 NAME := unpack, \ |
32 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
33 SRC := $(TOPDIR)/src/jdk.pack/share/native/libunpack \ |
32 SRC := $(TOPDIR)/src/jdk.pack/share/native/libunpack \ |
34 $(TOPDIR)/src/jdk.pack/share/native/common-unpack, \ |
33 $(TOPDIR)/src/jdk.pack/share/native/common-unpack, \ |
35 TOOLCHAIN := TOOLCHAIN_LINK_CXX, \ |
34 TOOLCHAIN := TOOLCHAIN_LINK_CXX, \ |
36 OPTIMIZATION := LOW, \ |
35 OPTIMIZATION := LOW, \ |
37 CFLAGS := $(CXXFLAGS_JDKLIB) \ |
36 CFLAGS := $(CXXFLAGS_JDKLIB) \ |
45 LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ |
44 LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ |
46 $(call SET_SHARED_LIBRARY_ORIGIN), \ |
45 $(call SET_SHARED_LIBRARY_ORIGIN), \ |
47 LDFLAGS_windows := -map:$(SUPPORT_OUTPUTDIR)/native/$(MODULE)/unpack.map -debug, \ |
46 LDFLAGS_windows := -map:$(SUPPORT_OUTPUTDIR)/native/$(MODULE)/unpack.map -debug, \ |
48 LIBS_unix := -ljvm $(LIBCXX) -ljava -lc, \ |
47 LIBS_unix := -ljvm $(LIBCXX) -ljava -lc, \ |
49 LIBS_windows := jvm.lib $(WIN_JAVA_LIB), \ |
48 LIBS_windows := jvm.lib $(WIN_JAVA_LIB), \ |
50 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libunpack, \ |
|
51 VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ |
|
52 RC_FLAGS := $(RC_FLAGS) \ |
|
53 -D "JDK_FNAME=unpack.dll" \ |
|
54 -D "JDK_INTERNAL_NAME=unpack" \ |
|
55 -D "JDK_FTYPE=0x2L", \ |
|
56 )) |
49 )) |
57 |
50 |
58 $(BUILD_LIBUNPACK): $(call FindLib, java.base, java) |
51 $(BUILD_LIBUNPACK): $(call FindLib, java.base, java) |
59 |
52 |
60 TARGETS += $(BUILD_LIBUNPACK) |
53 TARGETS += $(BUILD_LIBUNPACK) |