| OLD | NEW |
| 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 ifndef BUILDBOT_BUILDERNAME | 5 ifndef BUILDBOT_BUILDERNAME |
| 6 # By default, unless we are building on the buildbot set NACL_ARCH to so that | 6 # By default, unless we are building on the buildbot set NACL_ARCH to so that |
| 7 # we only build for a single architecture. | 7 # we only build for a single architecture. |
| 8 NACL_ARCH ?= x86_64 | 8 NACL_ARCH ?= x86_64 |
| 9 endif | 9 endif |
| 10 | 10 |
| 11 DEBUG ?= 1 | 11 DEBUG ?= 1 |
| 12 ifeq ($(DEBUG),1) | 12 ifeq ($(DEBUG),1) |
| 13 CONFIG := Debug | 13 CONFIG := Debug |
| 14 else | 14 else |
| 15 CONFIG := Release | 15 CONFIG := Release |
| 16 endif | 16 endif |
| 17 | 17 |
| 18 OUT_DIR := out | 18 OUT_DIR := out |
| 19 PUBLISH_DIR := $(OUT_DIR)/publish | 19 PUBLISH_DIR := $(OUT_DIR)/publish |
| 20 TOOLCHAIN ?= newlib | 20 TOOLCHAIN ?= newlib |
| 21 | 21 |
| 22 all: cocos2dx lua-yaml | 22 all: cocos2dx lua-yaml |
| 23 @echo '@@@BUILD_STEP build game@@@' | 23 @echo '@@@BUILD_STEP build game@@@' |
| 24 » TOOLCHAIN=$(TOOLCHAIN) NACL_ARCH=$(NACL_ARCH) CONFIG=$(CONFIG) $(MAKE) -
C proj.nacl | 24 » TOOLCHAIN=$(TOOLCHAIN) NACL_ARCH=$(NACL_ARCH) CONFIG=$(CONFIG) $(MAKE) -
j10 -C proj.nacl |
| 25 | 25 |
| 26 cocos2dx: build/build-cocos2dx.sh | 26 cocos2dx: build/build-cocos2dx.sh |
| 27 USE_BOX2D=1 NACL_ARCH=$(NACL_ARCH) build/build-cocos2dx.sh | 27 USE_BOX2D=1 NACL_ARCH=$(NACL_ARCH) build/build-cocos2dx.sh |
| 28 | 28 |
| 29 lua-yaml: | 29 lua-yaml: |
| 30 @echo '@@@BUILD_STEP lua-yaml@@@' | 30 @echo '@@@BUILD_STEP lua-yaml@@@' |
| 31 TOOLCHAIN=$(TOOLCHAIN) CONFIG=$(CONFIG) NACL_ARCH=$(NACL_ARCH) $(MAKE) -
f build/lua-yaml.mk | 31 TOOLCHAIN=$(TOOLCHAIN) CONFIG=$(CONFIG) NACL_ARCH=$(NACL_ARCH) $(MAKE) -
f build/lua-yaml.mk |
| 32 | 32 |
| 33 really-clean: clean | 33 really-clean: clean |
| 34 $(RM) -r $(OUT_DIR) | 34 $(RM) -r $(OUT_DIR) |
| (...skipping 25 matching lines...) Expand all Loading... |
| 60 third_party/lua-yaml/yaml.so: | 60 third_party/lua-yaml/yaml.so: |
| 61 make -C third_party/lua-yaml INC="-I/usr/include/lua5.1 -I." | 61 make -C third_party/lua-yaml INC="-I/usr/include/lua5.1 -I." |
| 62 | 62 |
| 63 test: third_party/lua-yaml/yaml.so validate | 63 test: third_party/lua-yaml/yaml.so validate |
| 64 third_party/lunit/lunit -i ./lua.sh tests/*_test.lua | 64 third_party/lunit/lunit -i ./lua.sh tests/*_test.lua |
| 65 | 65 |
| 66 validate: third_party/lua-yaml/yaml.so | 66 validate: third_party/lua-yaml/yaml.so |
| 67 ./lua.sh data/res/validate.lua data/res/sample_game/game.def | 67 ./lua.sh data/res/validate.lua data/res/sample_game/game.def |
| 68 | 68 |
| 69 .PHONY: all lua-yaml cocos2dx clean publish run run-app really-clean test valida
te | 69 .PHONY: all lua-yaml cocos2dx clean publish run run-app really-clean test valida
te |
| OLD | NEW |