forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnacl_defines.gypi
83 lines (82 loc) · 2.12 KB
/
nacl_defines.gypi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'conditions': [
['disable_nacl==1', {
'nacl_defines': [
],
}, {
'conditions': [
['OS=="win"', {
'nacl_defines': [
'NACL_WINDOWS=1',
'NACL_LINUX=0',
'NACL_OSX=0',
'NACL_ANDROID=0',
],
}],
['OS=="linux"', {
'nacl_defines': [
'NACL_WINDOWS=0',
'NACL_LINUX=1',
'NACL_OSX=0',
'NACL_ANDROID=0',
],
}],
['OS=="mac"', {
'nacl_defines': [
'NACL_WINDOWS=0',
'NACL_LINUX=0',
'NACL_OSX=1',
'NACL_ANDROID=0',
],
}],
['OS=="android"', {
'nacl_defines': [
'NACL_WINDOWS=0',
'NACL_LINUX=1',
'NACL_OSX=0',
'NACL_ANDROID=1',
],
}],
],
}],
# TODO(mcgrathr): This duplicates native_client/build/common.gypi;
# we should figure out a way to unify the settings.
['target_arch=="ia32"', {
'nacl_defines': [
'NACL_TARGET_SUBARCH=32',
'NACL_TARGET_ARCH=x86',
'NACL_BUILD_SUBARCH=32',
'NACL_BUILD_ARCH=x86',
],
}],
['target_arch=="x64"', {
'nacl_defines': [
'NACL_TARGET_SUBARCH=64',
'NACL_TARGET_ARCH=x86',
'NACL_BUILD_SUBARCH=64',
'NACL_BUILD_ARCH=x86',
],
}],
['target_arch=="arm"', {
'nacl_defines': [
'NACL_BUILD_ARCH=arm',
'NACL_BUILD_SUBARCH=32',
'NACL_TARGET_ARCH=arm',
'NACL_TARGET_SUBARCH=32',
],
}],
['target_arch=="mipsel"', {
'nacl_defines': [
'NACL_BUILD_ARCH=mips',
'NACL_BUILD_SUBARCH=32',
'NACL_TARGET_ARCH=mips',
'NACL_TARGET_SUBARCH=32',
],
}],
],
}
}