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

Side by Side Diff: nacltoons/Makefile

Issue 14851014: [nacltoons] Move nacl-specific build to proj.nacl (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
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 | Annotate | Revision Log
« no previous file with comments | « no previous file | nacltoons/game.mk » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # 5 #
6 # GNU Make based build file. For details on GNU Make see: 6 # GNU Make based build file. For details on GNU Make see:
7 # http://www.gnu.org/software/make/manual/make.html 7 # http://www.gnu.org/software/make/manual/make.html
8 # 8 #
9 # 9 #
10 10
11 ifndef BUILDBOT_BUILDERNAME 11 ifndef BUILDBOT_BUILDERNAME
12 # By default, unless we are building on the buildbot set NACL_ARCH to so that 12 # By default, unless we are building on the buildbot set NACL_ARCH to so that
13 # we only build for a single architecture. 13 # we only build for a single architecture.
14 NACL_ARCH ?= x86_64 14 NACL_ARCH ?= x86_64
15 endif 15 endif
16 16
17 DEBUG ?= 1 17 DEBUG ?= 1
18 ifeq ($(DEBUG),1) 18 ifeq ($(DEBUG),1)
19 CONFIG := Debug 19 CONFIG := Debug
20 else 20 else
21 CONFIG := Release 21 CONFIG := Release
22 endif 22 endif
23 23
24 OUT_DIR := out 24 OUT_DIR := out
25 PUBLISH_DIR := $(OUT_DIR)/publish 25 PUBLISH_DIR := $(OUT_DIR)/publish
26 TOOLCHAIN ?= newlib 26 TOOLCHAIN ?= newlib
27 27
28 all: cocos2dx 28 all: cocos2dx
29 @echo '@@@BUILD_STEP build game@@@' 29 @echo '@@@BUILD_STEP build game@@@'
30 » TOOLCHAIN=$(TOOLCHAIN) NACL_ARCH=$(NACL_ARCH) CONFIG=$(CONFIG) $(MAKE) - f game.mk 30 » TOOLCHAIN=$(TOOLCHAIN) NACL_ARCH=$(NACL_ARCH) CONFIG=$(CONFIG) $(MAKE) - C proj.nacl
31 31
32 cocos2dx : build/build-cocos2dx.sh 32 cocos2dx : build/build-cocos2dx.sh
33 USE_BOX2D=1 NACL_ARCH=$(NACL_ARCH) build/build-cocos2dx.sh 33 USE_BOX2D=1 NACL_ARCH=$(NACL_ARCH) build/build-cocos2dx.sh
34 34
35 really-clean: clean 35 really-clean: clean
36 $(RM) -r $(OUT_DIR) 36 $(RM) -r $(OUT_DIR)
37 37
38 clean: 38 clean:
39 $(MAKE) -f game.mk clean 39 $(MAKE) -f game.mk clean
40 40
41 publish: all 41 publish: all
42 rm -fr $(PUBLISH_DIR) 42 rm -fr $(PUBLISH_DIR)
43 mkdir -p $(PUBLISH_DIR) 43 mkdir -p $(PUBLISH_DIR)
44 cp $(OUT_DIR)/$(TOOLCHAIN)/$(CONFIG)/*.nexe $(PUBLISH_DIR) 44 cp $(OUT_DIR)/$(TOOLCHAIN)/$(CONFIG)/*.nexe $(PUBLISH_DIR)
45 cp $(OUT_DIR)/$(TOOLCHAIN)/$(CONFIG)/*.nmf $(PUBLISH_DIR) 45 cp $(OUT_DIR)/$(TOOLCHAIN)/$(CONFIG)/*.nmf $(PUBLISH_DIR)
46 if [ "$(TOOLCHAIN)" = "glibc" ]; then cp -r $(OUT_DIR)/$(TOOLCHAIN)/$(CO NFIG)/lib* $(PUBLISH_DIR); fi 46 if [ "$(TOOLCHAIN)" = "glibc" ]; then cp -r $(OUT_DIR)/$(TOOLCHAIN)/$(CO NFIG)/lib* $(PUBLISH_DIR); fi
47 ln -s $(PWD)/data/background.js $(PUBLISH_DIR)/background.js 47 ln -s $(PWD)/data/background.js $(PUBLISH_DIR)/background.js
48 ln -s $(PWD)/data/common.js $(PUBLISH_DIR)/common.js 48 ln -s $(PWD)/data/common.js $(PUBLISH_DIR)/common.js
49 ln -s $(PWD)/data/edit.js $(PUBLISH_DIR)/edit.js 49 ln -s $(PWD)/data/edit.js $(PUBLISH_DIR)/edit.js
50 ln -s $(PWD)/data/index.html $(PUBLISH_DIR)/index.html 50 ln -s $(PWD)/data/index.html $(PUBLISH_DIR)/index.html
51 ln -s $(PWD)/data/manifest.json $(PUBLISH_DIR)/manifest.json 51 ln -s $(PWD)/data/manifest.json $(PUBLISH_DIR)/manifest.json
52 ln -s $(PWD)/data/res $(PUBLISH_DIR)/Resources 52 ln -s $(PWD)/data/res $(PUBLISH_DIR)/Resources
53 53
54 CHROME_ARGS += --no-first-run --user-data-dir=$(OUT_DIR)/user-data-dir 54 CHROME_ARGS += --no-first-run --user-data-dir=$(OUT_DIR)/user-data-dir
55 55
56 run: publish 56 run: publish
57 » NACL_ARCH=$(NACL_ARCH) CHROME_ARGS="$(CHROME_ARGS)" $(MAKE) -f game.mk R UN 57 » NACL_ARCH=$(NACL_ARCH) CHROME_ARGS="$(CHROME_ARGS)" $(MAKE) -C proj.nacl RUN
58 58
59 run-app: publish 59 run-app: publish
60 $(CHROME_PATH) $(CHROME_ARGS) --load-extension=$(PUBLISH_DIR) chrome://n ewtab 60 $(CHROME_PATH) $(CHROME_ARGS) --load-extension=$(PUBLISH_DIR) chrome://n ewtab
61 61
62 .PHONY: all naclports cocos2dx clean publish run run-app really-clean 62 .PHONY: all naclports cocos2dx clean publish run run-app really-clean
OLDNEW
« no previous file with comments | « no previous file | nacltoons/game.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698