Add testing/scripts/OWNERS
[chromium-blink-merge.git] / components / nacl / nacl_defines.gypi
blob9a17eaf9e9ae3244b802cac1a7ad8ee99fe2add9
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
3 # found in the LICENSE file.
6   'variables': {
7     'conditions': [
8       ['disable_nacl==1', {
9         'nacl_defines': [
10         ],
11       }, {
12         'conditions': [
13           ['OS=="win"', {
14             'nacl_defines': [
15               'NACL_WINDOWS=1',
16               'NACL_LINUX=0',
17               'NACL_OSX=0',
18               'NACL_ANDROID=0',
19             ],
20           }],
21           ['OS=="linux"', {
22             'nacl_defines': [
23               'NACL_WINDOWS=0',
24               'NACL_LINUX=1',
25               'NACL_OSX=0',
26               'NACL_ANDROID=0',
27             ],
28           }],
29           ['OS=="mac"', {
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           }],
45         ],
46       }],
47       # TODO(mcgrathr): This duplicates native_client/build/common.gypi;
48       # we should figure out a way to unify the settings.
49       ['target_arch=="ia32"', {
50         'nacl_defines': [
51           'NACL_TARGET_SUBARCH=32',
52           'NACL_TARGET_ARCH=x86',
53           'NACL_BUILD_SUBARCH=32',
54           'NACL_BUILD_ARCH=x86',
55         ],
56       }],
57       ['target_arch=="x64"', {
58         'nacl_defines': [
59           'NACL_TARGET_SUBARCH=64',
60           'NACL_TARGET_ARCH=x86',
61           'NACL_BUILD_SUBARCH=64',
62           'NACL_BUILD_ARCH=x86',
63         ],
64       }],
65       ['target_arch=="arm"', {
66         'nacl_defines': [
67           'NACL_BUILD_ARCH=arm',
68           'NACL_BUILD_SUBARCH=32',
69           'NACL_TARGET_ARCH=arm',
70           'NACL_TARGET_SUBARCH=32',
71         ],
72       }],
73       ['target_arch=="mipsel"', {
74         'nacl_defines': [
75           'NACL_BUILD_ARCH=mips',
76           'NACL_BUILD_SUBARCH=32',
77           'NACL_TARGET_ARCH=mips',
78           'NACL_TARGET_SUBARCH=32',
79         ],
80       }],
81     ],
82   }