< prev index next >

make/lib/Lib-jdk.jpackage.gmk

Print this page

        

@@ -65,5 +65,27 @@
 
   TARGETS += $(BUILD_LIB_JPACKAGE)
 
 endif
 
+# Build Wix custom action helper
+# Output library in resources dir, and symbols in the object dir
+ifeq ($(OPENJDK_TARGET_OS), windows)
+
+  $(eval $(call SetupJdkLibrary, BUILD_LIB_WIXHELPER, \
+      NAME := wixhelper, \
+      OUTPUT_DIR := $(JDK_OUTPUTDIR)/modules/$(MODULE)/jdk/jpackage/internal/resources, \
+      SYMBOLS_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libwixhelper, \
+      TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
+      OPTIMIZATION := LOW, \
+      CFLAGS := $(CXXFLAGS_JDKLIB), \
+      CFLAGS_windows := -EHsc -DUNICODE -D_UNICODE, \
+      LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \
+          $(call SET_SHARED_LIBRARY_ORIGIN), \
+      LIBS := $(LIBCXX), \
+      LIBS_windows := msi.lib Shlwapi.lib User32.lib, \
+  ))
+
+  $(BUILD_LIB_WIXHELPER): $(call FindLib, java.base, java)
+
+  TARGETS += $(BUILD_LIB_WIXHELPER)
+endif
< prev index next >