jdk/makefiles/GendataBreakIterator.gmk
changeset 13702 efd6a05935b2
parent 13583 dc0017b1a452
child 14342 8435a30053c1
child 14231 a0c23c1c010f
equal deleted inserted replaced
13694:ffe6bce5a521 13702:efd6a05935b2
    46 
    46 
    47 # JAVAC_SOURCE_PATH_UGLY_OVERRIDE is set to isolate the compile to just those
    47 # JAVAC_SOURCE_PATH_UGLY_OVERRIDE is set to isolate the compile to just those
    48 # two files in that directory and not get anything implicit from
    48 # two files in that directory and not get anything implicit from
    49 # surrounding directories which aren't jdk 6 compatible. 
    49 # surrounding directories which aren't jdk 6 compatible. 
    50 # Because we are targeting jdk 6, but the surrounding source code is jdk 7. Ugh.
    50 # Because we are targeting jdk 6, but the surrounding source code is jdk 7. Ugh.
    51 # These two files should be moved out to a build tool!
    51 # These two files should be moved out to a build tool! We have to disable
       
    52 # sjavac here as well.
    52 $(eval $(call SetupJavaCompilation,BUILD_BREAKITERATOR,\
    53 $(eval $(call SetupJavaCompilation,BUILD_BREAKITERATOR,\
    53 		SETUP:=GENERATE_OLDBYTECODE,\
    54 		SETUP:=GENERATE_OLDBYTECODE,\
    54 		SRC:=$(TEXT_SRCDIR),\
    55 		SRC:=$(TEXT_SRCDIR),\
       
    56 		DISABLE_SJAVAC:=true,\
    55 		JAVAC_SOURCE_PATH_UGLY_OVERRIDE:=$(TEXT_SRCDIR)/$(TEXT_PKG),\
    57 		JAVAC_SOURCE_PATH_UGLY_OVERRIDE:=$(TEXT_SRCDIR)/$(TEXT_PKG),\
    56 		INCLUDES:=$(TEXT_PKG),\
    58 		INCLUDES:=$(TEXT_PKG),\
    57 		INCLUDE_FILES:=$(TEXT_SOURCES),\
    59 		INCLUDE_FILES:=$(TEXT_SOURCES),\
    58 		BIN:=$(BREAK_ITERATOR_CLASSES)))
    60 		BIN:=$(BREAK_ITERATOR_CLASSES)))
    59 
    61 
    68 		$(DATA_PKG_DIR)/LineBreakIteratorData \
    70 		$(DATA_PKG_DIR)/LineBreakIteratorData \
    69 		$(DATA_PKG_DIR)/SentenceBreakIteratorData
    71 		$(DATA_PKG_DIR)/SentenceBreakIteratorData
    70 BIFILES_TH =	$(DATA_PKG_DIR)/th/WordBreakIteratorData_th \
    72 BIFILES_TH =	$(DATA_PKG_DIR)/th/WordBreakIteratorData_th \
    71 		$(DATA_PKG_DIR)/th/LineBreakIteratorData_th
    73 		$(DATA_PKG_DIR)/th/LineBreakIteratorData_th
    72 
    74 
    73 $(BIFILES): $(BREAK_ITERATOR_DIR)/_the.bifiles
    75 $(BIFILES): $(DATA_PKG_DIR)/_the.bifiles
    74 $(BREAK_ITERATOR_DIR)/_the.bifiles: JAVA_FLAGS += -Xbootclasspath/p:$(BREAK_ITERATOR_CLASSES)
    76 $(DATA_PKG_DIR)/_the.bifiles: JAVA_FLAGS += -Xbootclasspath/p:$(BREAK_ITERATOR_CLASSES)
    75 $(BREAK_ITERATOR_DIR)/_the.bifiles: $(BUILD_TOOLS) $(UNICODEDATA) $(BUILD_BREAKITERATOR)
    77 $(DATA_PKG_DIR)/_the.bifiles: $(BUILD_TOOLS) $(UNICODEDATA) $(BUILD_BREAKITERATOR)
    76 	$(ECHO) "Generating BreakIteratorData"
    78 	$(ECHO) "Generating BreakIteratorData"
    77 	$(MKDIR) -p  $(DATA_PKG_DIR)
    79 	$(MKDIR) -p  $(DATA_PKG_DIR)
    78 	$(RM) -f $(BIFILES)
    80 	$(RM) $(BIFILES)
    79 	$(TOOL_GENERATEBREAKITERATORDATA) \
    81 	$(TOOL_GENERATEBREAKITERATORDATA) \
    80 		-o $(DATA_PKG_DIR) \
    82 		-o $(DATA_PKG_DIR) \
    81 		-spec $(UNICODEDATA)
    83 		-spec $(UNICODEDATA)
    82 	$(TOUCH) $@
    84 	$(TOUCH) $@
    83 
    85 
    84 $(BIFILES_TH): $(BREAK_ITERATOR_DIR)/_the.bifiles_th
    86 $(BIFILES_TH): $(DATA_PKG_DIR)/_the.bifiles_th
    85 $(BREAK_ITERATOR_DIR)/_the.bifiles_th: JAVA_FLAGS += -Xbootclasspath/p:$(BREAK_ITERATOR_CLASSES)
    87 $(DATA_PKG_DIR)/_the.bifiles_th: JAVA_FLAGS += -Xbootclasspath/p:$(BREAK_ITERATOR_CLASSES)
    86 $(BREAK_ITERATOR_DIR)/_the.bifiles_th: $(BUILD_TOOLS) $(UNICODEDATA) $(BUILD_BREAKITERATOR)
    88 $(DATA_PKG_DIR)/_the.bifiles_th: $(BUILD_TOOLS) $(UNICODEDATA) $(BUILD_BREAKITERATOR)
    87 	$(ECHO) "Generating BreakIteratorData_th"
    89 	$(ECHO) "Generating BreakIteratorData_th"
    88 	$(MKDIR) -p  $(DATA_PKG_DIR)/th
    90 	$(MKDIR) -p  $(DATA_PKG_DIR)/th
    89 	$(RM) -f $(BIFILES_TH)
    91 	$(RM) $(BIFILES_TH)
    90 	$(TOOL_GENERATEBREAKITERATORDATA) \
    92 	$(TOOL_GENERATEBREAKITERATORDATA) \
    91 		-o $(DATA_PKG_DIR) \
    93 		-o $(DATA_PKG_DIR) \
    92 		-spec $(UNICODEDATA) \
    94 		-spec $(UNICODEDATA) \
    93 		-language th
    95 		-language th
    94 	$(TOUCH) $@
    96 	$(TOUCH) $@