make/gensrc/GensrcX11Wrappers.gmk
branchihse-cflags-rewrite-branch
changeset 56313 d287dfac1304
parent 56312 a52bcf4118eb
child 58665 30a5049a36bb
equal deleted inserted replaced
56312:a52bcf4118eb 56313:d287dfac1304
    35 
    35 
    36 # The pre-calculated offset file are stored here:
    36 # The pre-calculated offset file are stored here:
    37 GENSRC_X11WRAPPERS_DATADIR := $(TOPDIR)/make/data/x11wrappergen
    37 GENSRC_X11WRAPPERS_DATADIR := $(TOPDIR)/make/data/x11wrappergen
    38 GENSRC_X11WRAPPERS_DATA := $(GENSRC_X11WRAPPERS_DATADIR)/sizes-$(OPENJDK_TARGET_CPU_BITS).txt
    38 GENSRC_X11WRAPPERS_DATA := $(GENSRC_X11WRAPPERS_DATADIR)/sizes-$(OPENJDK_TARGET_CPU_BITS).txt
    39 
    39 
    40 # Always generate 64-bit version on 64-bit systems.
       
    41 # Always generate 32-bit version on 32-bit systems.
       
    42 # On all 64-bit systems, except Linux, also generate 32-bit version.
       
    43   GENSRC_X11WRAPPERS_DATA_64 = $(GENSRC_X11WRAPPERS_DATADIR)/sizes-64.txt
       
    44     GENSRC_X11WRAPPERS_DATA_32 = $(GENSRC_X11WRAPPERS_DATADIR)/sizes-32.txt
       
    45   else
       
    46     GENSRC_X11WRAPPERS_DATA_32 = IGNORE
       
    47   GENSRC_X11WRAPPERS_DATA_64 = IGNORE
       
    48   GENSRC_X11WRAPPERS_DATA_32 = $(GENSRC_X11WRAPPERS_DATADIR)/sizes-32.txt
       
    49 # Make something we can depend on
       
    50 GENSRC_X11WRAPPERS_DATAFILES := $(GENSRC_X11WRAPPERS_DATADIR)/xlibtypes.txt \
       
    51     $(filter-out IGNORE, $(GENSRC_X11WRAPPERS_DATA_32) $(GENSRC_X11WRAPPERS_DATA_64))
       
    52 # Run the tool on the offset files to generate several Java classes used in awt.
    40 # Run the tool on the offset files to generate several Java classes used in awt.
    53 $(GENSRC_X11WRAPPERS_MARKER): $(BUILD_TOOLS_JDK) $(GENSRC_X11WRAPPERS_DATA) \
    41 $(GENSRC_X11WRAPPERS_MARKER): $(BUILD_TOOLS_JDK) $(GENSRC_X11WRAPPERS_DATA) \
    54     $(GENSRC_X11WRAPPERS_DATADIR)/xlibtypes.txt
    42     $(GENSRC_X11WRAPPERS_DATADIR)/xlibtypes.txt
    55 	$(call MakeDir, $(GENSRC_X11WRAPPERS_OUTPUTDIR))
    43 	$(call MakeDir, $(GENSRC_X11WRAPPERS_OUTPUTDIR))
    56 	$(call LogInfo, Generating X11 wrapper source files)
    44 	$(call LogInfo, Generating X11 wrapper source files)
       
    45 	$(call ExecuteWithLog, $@, \
       
    46 	    $(TOOL_WRAPPERGENERATOR) gen_java $(GENSRC_X11WRAPPERS_OUTPUTDIR) \
       
    47 	        $(GENSRC_X11WRAPPERS_DATADIR)/xlibtypes.txt $(GENSRC_X11WRAPPERS_DATA) \
       
    48 	        $(OPENJDK_TARGET_CPU_BITS))
    57 	$(TOUCH) $@
    49 	$(TOUCH) $@
    58 
    50 
       
    51 
    59 GENSRC_JAVA_DESKTOP += $(GENSRC_X11WRAPPERS_MARKER)
    52 GENSRC_JAVA_DESKTOP += $(GENSRC_X11WRAPPERS_MARKER)