Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / components / nacl / nacl_defines.gypi
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.
4
5 {
6   'variables': {
7     'conditions': [
8       ['OS=="win"', {
9         'nacl_defines': [
10           'NACL_WINDOWS=1',
11           'NACL_LINUX=0',
12           'NACL_OSX=0',
13         ],
14       }],
15       ['OS=="linux"', {
16         'nacl_defines': [
17           'NACL_WINDOWS=0',
18           'NACL_LINUX=1',
19           'NACL_OSX=0',
20         ],
21       }],
22       ['OS=="mac"', {
23         'nacl_defines': [
24           'NACL_WINDOWS=0',
25           'NACL_LINUX=0',
26           'NACL_OSX=1',
27         ],
28       }],
29       # "disabled_nacl" is always set to "1" when building for "ios", so
30       # set "nacl_defines" to the empty list to ensure the variable is
31       # always defined.
32       ['OS=="ios"', {
33         'nacl_defines': [
34         ],
35       }],
36       # TODO(mcgrathr): This duplicates native_client/build/common.gypi;
37       # we should figure out a way to unify the settings.
38       ['target_arch=="ia32"', {
39         'nacl_defines': [
40           'NACL_TARGET_SUBARCH=32',
41           'NACL_TARGET_ARCH=x86',
42           'NACL_BUILD_SUBARCH=32',
43           'NACL_BUILD_ARCH=x86',
44         ],
45       }],
46       ['target_arch=="x64"', {
47         'nacl_defines': [
48           'NACL_TARGET_SUBARCH=64',
49           'NACL_TARGET_ARCH=x86',
50           'NACL_BUILD_SUBARCH=64',
51           'NACL_BUILD_ARCH=x86',
52         ],
53       }],
54       ['target_arch=="arm"', {
55         'nacl_defines': [
56           'NACL_BUILD_ARCH=arm',
57           'NACL_BUILD_SUBARCH=32',
58           'NACL_TARGET_ARCH=arm',
59           'NACL_TARGET_SUBARCH=32',
60         ],
61       }],
62       ['target_arch=="mipsel"', {
63         'nacl_defines': [
64         ],
65       }],
66     ],
67   }
68 }