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

Side by Side Diff: nacltoons/Makefile

Issue 12413017: [nacltoons] Reference resources directly from checkout location (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 9 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 | no next file » | 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 # Use this variable to enable/disable nacl_mounts an an alternative to
18 # nacl_io. When you do this you will also want to clean the cocos build using:
19 # "build/build_cocos2dx.sh clean"
20 #NACL_MOUNTS = 1
21
22 DEBUG ?= 1 17 DEBUG ?= 1
23 ifeq ($(DEBUG),1) 18 ifeq ($(DEBUG),1)
24 CONFIG := Debug 19 CONFIG := Debug
25 else 20 else
26 CONFIG := Release 21 CONFIG := Release
27 endif 22 endif
28 23
29 OUT_DIR := out 24 OUT_DIR := out
30 PUBLISH_DIR := $(OUT_DIR)/publish 25 PUBLISH_DIR := $(OUT_DIR)/publish
31 26
32 all: cocos2dx 27 all: cocos2dx
33 @echo '@@@BUILD_STEP build game@@@' 28 @echo '@@@BUILD_STEP build game@@@'
34 ifdef NACL_MOUNTS
35 $(MAKE) -f game.mk NACL_ARCH=$(NACL_ARCH) DEBUG=$(DEBUG) NACL_MOUNTS=$(N ACL_MOUNTS)
36 else
37 $(MAKE) -f game.mk NACL_ARCH=$(NACL_ARCH) DEBUG=$(DEBUG) 29 $(MAKE) -f game.mk NACL_ARCH=$(NACL_ARCH) DEBUG=$(DEBUG)
38 endif
39 30
40 cocos2dx : build/build-cocos2dx.sh 31 cocos2dx : build/build-cocos2dx.sh
41 » NACL_MOUNTS=$(NACL_MOUNTS) NACL_ARCH=$(NACL_ARCH) build/build-cocos2dx.s h 32 » NACL_ARCH=$(NACL_ARCH) build/build-cocos2dx.sh
42 33
43 really-clean: clean 34 really-clean: clean
44 $(RM) -r $(OUT_DIR) 35 $(RM) -r $(OUT_DIR)
45 36
46 clean: 37 clean:
47 $(MAKE) -f game.mk clean 38 $(MAKE) -f game.mk clean
48 39
49 publish: all 40 publish: all
50 rm -fr $(PUBLISH_DIR) 41 rm -fr $(PUBLISH_DIR)
51 mkdir -p $(PUBLISH_DIR) 42 mkdir -p $(PUBLISH_DIR)
52 cp $(OUT_DIR)/newlib/$(CONFIG)/*.nexe $(PUBLISH_DIR) 43 cp $(OUT_DIR)/newlib/$(CONFIG)/*.nexe $(PUBLISH_DIR)
53 cp $(OUT_DIR)/newlib/$(CONFIG)/*.nmf $(PUBLISH_DIR) 44 cp $(OUT_DIR)/newlib/$(CONFIG)/*.nmf $(PUBLISH_DIR)
54 » cp -r data/* $(PUBLISH_DIR) 45 » cp data/*.* $(PUBLISH_DIR)
binji 2013/03/12 23:57:36 why not just data/*? also, what are we copying her
Sam Clegg 2013/03/13 00:45:51 All the non-cocos2dx resources such as html and js
55 ifndef NACL_MOUNTS 46 » ln -s $(PWD)/data/res $(PUBLISH_DIR)/Resources
56 » cp -r data/res $(PUBLISH_DIR)/Resources
57 endif
58 47
59 CHROME_ARGS += --no-first-run --user-data-dir=$(OUT_DIR)/user-data-dir 48 CHROME_ARGS += --no-first-run --user-data-dir=$(OUT_DIR)/user-data-dir
60 49
61 run: publish 50 run: publish
62 NACL_ARCH=$(NACL_ARCH) CHROME_ARGS="$(CHROME_ARGS)" $(MAKE) -f game.mk R UN 51 NACL_ARCH=$(NACL_ARCH) CHROME_ARGS="$(CHROME_ARGS)" $(MAKE) -f game.mk R UN
63 52
64 run-app: publish 53 run-app: publish
65 $(CHROME_PATH) $(CHROME_ARGS) --load-extension=$(PUBLISH_DIR) chrome://n ewtab 54 $(CHROME_PATH) $(CHROME_ARGS) --load-extension=$(PUBLISH_DIR) chrome://n ewtab
66 55
67 .PHONY: all naclports cocos2dx clean publish run run-app really-clean 56 .PHONY: all naclports cocos2dx clean publish run run-app really-clean
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698