| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 'variables': { | 6 'variables': { |
| 7 'conditions': [ | 7 'conditions': [ |
| 8 ['OS=="win"', { | 8 ['disable_nacl==1', { |
| 9 'nacl_defines': [ | 9 'nacl_defines': [ |
| 10 'NACL_WINDOWS=1', | |
| 11 'NACL_LINUX=0', | |
| 12 'NACL_OSX=0', | |
| 13 ], | 10 ], |
| 14 }], | 11 }, { |
| 15 ['OS=="linux"', { | 12 'conditions': [ |
| 16 'nacl_defines': [ | 13 ['OS=="win"', { |
| 17 'NACL_WINDOWS=0', | 14 'nacl_defines': [ |
| 18 'NACL_LINUX=1', | 15 'NACL_WINDOWS=1', |
| 19 'NACL_OSX=0', | 16 'NACL_LINUX=0', |
| 20 ], | 17 'NACL_OSX=0', |
| 21 }], | 18 'NACL_ANDROID=0', |
| 22 ['OS=="mac"', { | 19 ], |
| 23 'nacl_defines': [ | 20 }], |
| 24 'NACL_WINDOWS=0', | 21 ['OS=="linux"', { |
| 25 'NACL_LINUX=0', | 22 'nacl_defines': [ |
| 26 'NACL_OSX=1', | 23 'NACL_WINDOWS=0', |
| 27 ], | 24 'NACL_LINUX=1', |
| 28 }], | 25 'NACL_OSX=0', |
| 29 # "disabled_nacl" is always set to "1" when building for "ios" or android, | 26 'NACL_ANDROID=0', |
| 30 # so set "nacl_defines" to the empty list to ensure the variable is | 27 ], |
| 31 # always defined. | 28 }], |
| 32 ['OS=="ios" or OS=="android"', { | 29 ['OS=="mac"', { |
| 33 'nacl_defines': [ | 30 'nacl_defines': [ |
| 31 'NACL_WINDOWS=0', |
| 32 'NACL_LINUX=0', |
| 33 'NACL_OSX=1', |
| 34 'NACL_ANDROID=0', |
| 35 ], |
| 36 }], |
| 37 ['OS=="android"', { |
| 38 'nacl_defines': [ |
| 39 'NACL_WINDOWS=0', |
| 40 'NACL_LINUX=1', |
| 41 'NACL_OSX=0', |
| 42 'NACL_ANDROID=1', |
| 43 ], |
| 44 }], |
| 34 ], | 45 ], |
| 35 }], | 46 }], |
| 36 # TODO(mcgrathr): This duplicates native_client/build/common.gypi; | 47 # TODO(mcgrathr): This duplicates native_client/build/common.gypi; |
| 37 # we should figure out a way to unify the settings. | 48 # we should figure out a way to unify the settings. |
| 38 ['target_arch=="ia32"', { | 49 ['target_arch=="ia32"', { |
| 39 'nacl_defines': [ | 50 'nacl_defines': [ |
| 40 'NACL_TARGET_SUBARCH=32', | 51 'NACL_TARGET_SUBARCH=32', |
| 41 'NACL_TARGET_ARCH=x86', | 52 'NACL_TARGET_ARCH=x86', |
| 42 'NACL_BUILD_SUBARCH=32', | 53 'NACL_BUILD_SUBARCH=32', |
| 43 'NACL_BUILD_ARCH=x86', | 54 'NACL_BUILD_ARCH=x86', |
| (...skipping 19 matching lines...) Expand all Loading... |
| 63 'nacl_defines': [ | 74 'nacl_defines': [ |
| 64 'NACL_BUILD_ARCH=mips', | 75 'NACL_BUILD_ARCH=mips', |
| 65 'NACL_BUILD_SUBARCH=32', | 76 'NACL_BUILD_SUBARCH=32', |
| 66 'NACL_TARGET_ARCH=mips', | 77 'NACL_TARGET_ARCH=mips', |
| 67 'NACL_TARGET_SUBARCH=32', | 78 'NACL_TARGET_SUBARCH=32', |
| 68 ], | 79 ], |
| 69 }], | 80 }], |
| 70 ], | 81 ], |
| 71 } | 82 } |
| 72 } | 83 } |
| OLD | NEW |