| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 nacl_defines = [] | 5 nacl_defines = [] |
| 6 if (is_win) { | 6 if (is_win) { |
| 7 nacl_defines += [ | 7 nacl_defines += [ |
| 8 "NACL_WINDOWS=1", | 8 "NACL_WINDOWS=1", |
| 9 "NACL_LINUX=0", | 9 "NACL_LINUX=0", |
| 10 "NACL_OSX=0", | 10 "NACL_OSX=0", |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 if (is_android) { | 29 if (is_android) { |
| 30 nacl_defines += [ | 30 nacl_defines += [ |
| 31 "NACL_WINDOWS=0", | 31 "NACL_WINDOWS=0", |
| 32 "NACL_LINUX=1", | 32 "NACL_LINUX=1", |
| 33 "NACL_OSX=0", | 33 "NACL_OSX=0", |
| 34 "NACL_ANDROID=1", | 34 "NACL_ANDROID=1", |
| 35 ] | 35 ] |
| 36 } | 36 } |
| 37 | 37 |
| 38 if (cpu_arch == "x86") { | 38 if (current_cpu == "x86") { |
| 39 nacl_defines += [ | 39 nacl_defines += [ |
| 40 "NACL_BUILD_SUBARCH=32", | 40 "NACL_BUILD_SUBARCH=32", |
| 41 "NACL_BUILD_ARCH=x86", | 41 "NACL_BUILD_ARCH=x86", |
| 42 ] | 42 ] |
| 43 } else if (cpu_arch == "x64") { | 43 } else if (current_cpu == "x64") { |
| 44 nacl_defines += [ | 44 nacl_defines += [ |
| 45 "NACL_BUILD_SUBARCH=64", | 45 "NACL_BUILD_SUBARCH=64", |
| 46 "NACL_BUILD_ARCH=x86", | 46 "NACL_BUILD_ARCH=x86", |
| 47 ] | 47 ] |
| 48 } else if (cpu_arch == "arm") { | 48 } else if (current_cpu == "arm") { |
| 49 nacl_defines += [ | 49 nacl_defines += [ |
| 50 "NACL_BUILD_ARCH=arm", | 50 "NACL_BUILD_ARCH=arm", |
| 51 "NACL_BUILD_SUBARCH=32", | 51 "NACL_BUILD_SUBARCH=32", |
| 52 ] | 52 ] |
| 53 } else if (cpu_arch == "mipsel") { | 53 } else if (current_cpu == "mipsel") { |
| 54 nacl_defines += [ | 54 nacl_defines += [ |
| 55 "NACL_BUILD_ARCH=mips", | 55 "NACL_BUILD_ARCH=mips", |
| 56 "NACL_BUILD_SUBARCH=32", | 56 "NACL_BUILD_SUBARCH=32", |
| 57 ] | 57 ] |
| 58 } | 58 } |
| OLD | NEW |