65 endif
66
67 # Add dependencies on other jmod files
68 DEPS += $(patsubst %, $(IMAGES_OUTPUTDIR)/jmods/%.jmod, \
69 $(call FindDepsForModule, $(MODULE)))
70
71 # TODO: What about headers?
72 # Create jmods in a temp dir and then move them into place to keep the
73 # module path in $(IMAGES_OUTPUTDIR)/jmods valid at all times.
74 $(IMAGES_OUTPUTDIR)/jmods/$(MODULE).jmod: $(DEPS)
75 $(call LogWarn, Creating $(notdir $@))
76 $(call MakeDir, $(@D) $(SUPPORT_OUTPUTDIR)/jmods)
77 $(RM) $@ $(SUPPORT_OUTPUTDIR)/jmods/$(notdir $@)
78 $(JMOD) create \
79 --module-version $(VERSION_SHORT) \
80 --os-name $(REQUIRED_OS_NAME) \
81 --os-arch $(OPENJDK_TARGET_CPU_LEGACY) \
82 --os-version $(REQUIRED_OS_VERSION) \
83 --modulepath $(IMAGES_OUTPUTDIR)/jmods\
84 --hash-dependencies '.*' \
85 --exclude '**_the.*' \
86 $(JMOD_FLAGS) $(SUPPORT_OUTPUTDIR)/jmods/$(notdir $@)
87 $(MV) $(SUPPORT_OUTPUTDIR)/jmods/$(notdir $@) $@
88
89 TARGETS += $(IMAGES_OUTPUTDIR)/jmods/$(MODULE).jmod
90
91 ################################################################################
92
93 all: $(TARGETS)
94
95 ################################################################################
|
65 endif
66
67 # Add dependencies on other jmod files
68 DEPS += $(patsubst %, $(IMAGES_OUTPUTDIR)/jmods/%.jmod, \
69 $(call FindDepsForModule, $(MODULE)))
70
71 # TODO: What about headers?
72 # Create jmods in a temp dir and then move them into place to keep the
73 # module path in $(IMAGES_OUTPUTDIR)/jmods valid at all times.
74 $(IMAGES_OUTPUTDIR)/jmods/$(MODULE).jmod: $(DEPS)
75 $(call LogWarn, Creating $(notdir $@))
76 $(call MakeDir, $(@D) $(SUPPORT_OUTPUTDIR)/jmods)
77 $(RM) $@ $(SUPPORT_OUTPUTDIR)/jmods/$(notdir $@)
78 $(JMOD) create \
79 --module-version $(VERSION_SHORT) \
80 --os-name $(REQUIRED_OS_NAME) \
81 --os-arch $(OPENJDK_TARGET_CPU_LEGACY) \
82 --os-version $(REQUIRED_OS_VERSION) \
83 --modulepath $(IMAGES_OUTPUTDIR)/jmods\
84 --hash-dependencies '.*' \
85 --exclude '**{_the.*,*.diz,*.debuginfo,*.dSYM/**,*.pdb,*.map}' \
86 $(JMOD_FLAGS) $(SUPPORT_OUTPUTDIR)/jmods/$(notdir $@)
87 $(MV) $(SUPPORT_OUTPUTDIR)/jmods/$(notdir $@) $@
88
89 TARGETS += $(IMAGES_OUTPUTDIR)/jmods/$(MODULE).jmod
90
91 ################################################################################
92
93 all: $(TARGETS)
94
95 ################################################################################
|