Permalink
Browse files

(svn r23576) -Codechange: split the base of strgen with the strgen co…

…de that creates the actual .lng files
  • Loading branch information...
rubidium42 committed Dec 17, 2011
1 parent c97b2a5 commit 1f083c3ac8961158cf7788a625e1786960d590d4
Showing with 1,062 additions and 1,014 deletions.
  1. +5 −1 Makefile.lang.in
  2. +14 −1,010 src/strgen/strgen.cpp
  3. +10 −0 src/strgen/strgen.h
  4. +1,030 −0 src/strgen/strgen_base.cpp
  5. +3 −3 src/table/strgen_tables.h
@@ -42,6 +42,10 @@ RES := $(shell mkdir -p $(BIN_DIR)/lang )

all: table/strings.h $(LANGS)

strgen_base.o: $(SRC_DIR)/strgen/strgen_base.cpp $(SRC_DIR)/strgen/strgen.h endian_host.h $(SRC_DIR)/table/control_codes.h $(SRC_DIR)/table/strgen_tables.h
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.cpp=%.cpp)'
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) -DSTRGEN -c -o $@ $<

strgen.o: $(SRC_DIR)/strgen/strgen.cpp $(SRC_DIR)/strgen/strgen.h endian_host.h $(SRC_DIR)/table/control_codes.h $(SRC_DIR)/table/strgen_tables.h
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.cpp=%.cpp)'
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) -DSTRGEN -c -o $@ $<
@@ -62,7 +66,7 @@ lang/english.txt: $(LANG_DIR)/english.txt
$(Q)mkdir -p lang
$(Q)cp $(LANG_DIR)/english.txt lang/english.txt

$(STRGEN): alloc_func.o string.o strgen.o getoptdata.o
$(STRGEN): alloc_func.o string.o strgen_base.o strgen.o getoptdata.o
$(E) '$(STAGE) Compiling and Linking $@'
$(Q)$(CXX_BUILD) $(LDFLAGS_BUILD) $^ -o $@

Oops, something went wrong.

0 comments on commit 1f083c3

Please sign in to comment.