Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: samples/Cpp/TestCpp/proj.nacl/Makefile

Issue 14694016: [NaCl] Add support for building using glibc toolchain. (Closed) Base URL: git@github.com:sbc100/cocos2d-x.git@nacl_changes2
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « samples/Cpp/SimpleGame/proj.nacl/Makefile ('k') | samples/Lua/HelloLua/proj.nacl/Makefile » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 COCOS_ROOT = ../../../.. 1 COCOS_ROOT = ../../../..
2 COCOS2DX_PATH = $(COCOS_ROOT)/cocos2dx 2 COCOS2DX_PATH = $(COCOS_ROOT)/cocos2dx
3 3
4 INCLUDES = -I.. -I../Classes \ 4 INCLUDES = -I.. -I../Classes \
5 -I$(COCOS_ROOT)/CocosDenshion/include \ 5 -I$(COCOS_ROOT)/CocosDenshion/include \
6 -I$(COCOS_ROOT)/extensions \ 6 -I$(COCOS_ROOT)/extensions \
7 -I$(COCOS_ROOT)/external \ 7 -I$(COCOS_ROOT)/external \
8 -I$(COCOS_ROOT)/external/chipmunk/include/chipmunk \ 8 -I$(COCOS_ROOT)/external/chipmunk/include/chipmunk \
9 9
10 SOURCES = ../Classes/AccelerometerTest/AccelerometerTest.cpp \ 10 SOURCES = ../Classes/AccelerometerTest/AccelerometerTest.cpp \
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 $(OBJ_DIR)/%.o: %.cpp $(CORE_MAKEFILE_LIST) 126 $(OBJ_DIR)/%.o: %.cpp $(CORE_MAKEFILE_LIST)
127 @mkdir -p $(@D) 127 @mkdir -p $(@D)
128 $(LOG_CXX)$(NACL_CXX) -MMD $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $ @ 128 $(LOG_CXX)$(NACL_CXX) -MMD $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $ @
129 129
130 $(OBJ_DIR)/%.o: ../%.c $(CORE_MAKEFILE_LIST) 130 $(OBJ_DIR)/%.o: ../%.c $(CORE_MAKEFILE_LIST)
131 @mkdir -p $(@D) 131 @mkdir -p $(@D)
132 $(LOG_CC)$(NACL_CC) -MMD $(CCFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@ 132 $(LOG_CC)$(NACL_CC) -MMD $(CCFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
133 133
134 $(NMF): $(TARGET) 134 $(NMF): $(TARGET)
135 » $(NACL_SDK_ROOT)/tools/create_nmf.py -o $@ $(BIN_DIR)/*.nexe --objdump=i 686-nacl-objdump -L$(NACL_SDK_ROOT)/toolchain/linux_x86_newlib/x86_64-nacl/lib/ -s $(BIN_DIR) 135 » $(NACL_SDK_ROOT)/tools/create_nmf.py -o $@ $(BIN_DIR)/*.nexe $(NMF_FLAGS ) -s $(BIN_DIR)
136 136
137 PACKAGE_ROOT = $(OUT_DIR)/package 137 PACKAGE_ROOT = $(OUT_DIR)/package
138 138
139 package: all 139 package: all
140 rm -rf $(PACKAGE_ROOT) 140 rm -rf $(PACKAGE_ROOT)
141 mkdir -p $(PACKAGE_ROOT) 141 mkdir -p $(PACKAGE_ROOT)
142 /bin/cp -ar ../Resources/ $(PACKAGE_ROOT) 142 /bin/cp -ar ../Resources/ $(PACKAGE_ROOT)
143 /bin/cp -ar $(BIN_DIR)/* $(PACKAGE_ROOT) 143 /bin/cp -ar $(BIN_DIR)/* $(PACKAGE_ROOT)
144 /bin/cp res/*.js res/icon*.png res/manifest.json $(PACKAGE_ROOT) 144 /bin/cp res/*.js res/icon*.png res/manifest.json $(PACKAGE_ROOT)
145 /bin/cp res/package_index.html $(PACKAGE_ROOT)/index.html 145 /bin/cp res/package_index.html $(PACKAGE_ROOT)/index.html
146 146
147 zipfile: package 147 zipfile: package
148 rm -f $(OUT_DIR)/$(APP_NAME).zip 148 rm -f $(OUT_DIR)/$(APP_NAME).zip
149 cd $(PACKAGE_ROOT) && zip -r ../$(APP_NAME).zip . 149 cd $(PACKAGE_ROOT) && zip -r ../$(APP_NAME).zip .
150 150
151 run: all 151 run: all
152 /bin/cp -ar ../Resources/ . 152 /bin/cp -ar ../Resources/ .
153 $(NACL_SDK_ROOT)/tools/httpd.py --no_dir_check 153 $(NACL_SDK_ROOT)/tools/httpd.py --no_dir_check
154 154
155 .PHONY: run zipfile package 155 .PHONY: run zipfile package
OLDNEW
« no previous file with comments | « samples/Cpp/SimpleGame/proj.nacl/Makefile ('k') | samples/Lua/HelloLua/proj.nacl/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698