| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 # | 5 |
| 6 set -e |
| 6 | 7 |
| 7 SCRIPT_DIR="$(cd $(dirname $0) && pwd)" | 8 SCRIPT_DIR="$(cd $(dirname $0) && pwd)" |
| 8 OUT_DIR=${SCRIPT_DIR}/../out/cocos2dx | 9 OUT_DIR=${SCRIPT_DIR}/../out/cocos2dx |
| 9 COCOS2DX_ROOT=${SCRIPT_DIR}/../../third_party/cocos2d-x | 10 COCOS2DX_ROOT=${SCRIPT_DIR}/../../third_party/cocos2d-x |
| 10 | 11 |
| 11 NACLPORTS_PREFIX=${SCRIPT_DIR}/../out/naclports | 12 NACLPORTS_PREFIX=${SCRIPT_DIR}/../out/naclports |
| 12 NACLPORTS_INCLUDE=${NACLPORTS_PREFIX}/include | 13 NACLPORTS_INCLUDE=${NACLPORTS_PREFIX}/include |
| 13 | 14 |
| 14 # Pick platform directory for compiler. | 15 # Pick platform directory for compiler. |
| 15 readonly OS_NAME=$(uname -s) | 16 readonly OS_NAME=$(uname -s) |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 CopyHeaderDir textures | 120 CopyHeaderDir textures |
| 120 CopyHeaderDir tilemap_parallax_nodes | 121 CopyHeaderDir tilemap_parallax_nodes |
| 121 CopyHeaderDir touch_dispatcher | 122 CopyHeaderDir touch_dispatcher |
| 122 } | 123 } |
| 123 | 124 |
| 124 echo "Building cocos2dx..." | 125 echo "Building cocos2dx..." |
| 125 BuildTarget cocos2dx/proj.nacl | 126 BuildTarget cocos2dx/proj.nacl |
| 126 | 127 |
| 127 echo "Copying headers..." | 128 echo "Copying headers..." |
| 128 CopyHeaders | 129 CopyHeaders |
| OLD | NEW |