| 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 # | 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 | 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: | 18 # nacl_io. When you do this you will also want to clean the cocos build using: |
| 19 # "build/build_cocos2dx.sh clean" | 19 # "build/build_cocos2dx.sh clean" |
| 20 NACL_MOUNTS = 1 | 20 #NACL_MOUNTS = 1 |
| 21 | 21 |
| 22 DEBUG ?= 1 | 22 DEBUG ?= 1 |
| 23 ifeq ($(DEBUG),1) | 23 ifeq ($(DEBUG),1) |
| 24 CONFIG := Debug | 24 CONFIG := Debug |
| 25 else | 25 else |
| 26 CONFIG := Release | 26 CONFIG := Release |
| 27 endif | 27 endif |
| 28 | 28 |
| 29 OUT_DIR := out | 29 OUT_DIR := out |
| 30 PUBLISH_DIR := $(OUT_DIR)/publish | 30 PUBLISH_DIR := $(OUT_DIR)/publish |
| (...skipping 27 matching lines...) Expand all Loading... |
| 58 | 58 |
| 59 CHROME_ARGS += --no-first-run --user-data-dir=$(OUT_DIR)/user-data-dir | 59 CHROME_ARGS += --no-first-run --user-data-dir=$(OUT_DIR)/user-data-dir |
| 60 | 60 |
| 61 run: publish | 61 run: publish |
| 62 NACL_ARCH=$(NACL_ARCH) CHROME_ARGS="$(CHROME_ARGS)" $(MAKE) -f game.mk R
UN | 62 NACL_ARCH=$(NACL_ARCH) CHROME_ARGS="$(CHROME_ARGS)" $(MAKE) -f game.mk R
UN |
| 63 | 63 |
| 64 run-app: publish | 64 run-app: publish |
| 65 $(CHROME_PATH) $(CHROME_ARGS) --load-extension=$(PUBLISH_DIR) chrome://n
ewtab | 65 $(CHROME_PATH) $(CHROME_ARGS) --load-extension=$(PUBLISH_DIR) chrome://n
ewtab |
| 66 | 66 |
| 67 .PHONY: all naclports cocos2dx clean publish run run-app really-clean | 67 .PHONY: all naclports cocos2dx clean publish run run-app really-clean |
| OLD | NEW |