This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy patharch.gypi
More file actions
73 lines (71 loc) · 1.28 KB
/
arch.gypi
File metadata and controls
73 lines (71 loc) · 1.28 KB
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
{
'variables':
{
# Nested variables are a bit of a strange beast in Gyp; they are
# evaluated before the containing dictionary and are therefore
# the best way to have variables that are conditional on other
# variables...
'variables':
{
'variables':
{
'conditions':
[
[
'OS == "win"',
{
'uname_m': 'x86',
'uname_s': 'win',
},
{
'uname_m': '<!(uname -m)',
'uname_s': '<!(uname -s)',
},
],
],
},
'conditions':
[
[
'uname_m == "x86" or uname_m == "i386" or uname_m == "i486" or uname_m == "i586" or uname_m == "i686"',
{
'host_arch': 'x86',
},
],
[
'uname_m == "x86_64" or uname_m == "amd64"',
{
'host_arch': 'x86_64',
},
],
[
'OS == "mac" or OS == "ios" or uname_s == "Darwin"',
{
'host_os': 'mac',
},
],
[
'uname_s == "win"',
{
'host_os': 'win',
},
],
[
'OS != "mac" and OS != "ios" and uname_s != "Darwin" and uname_s != "win"',
{
'host_os': 'linux',
},
],
[
'OS == "emscripten"',
{
'target_arch': 'js',
},
],
],
},
'target_arch%': '<(host_arch)',
'host_arch': '<(host_arch)',
'host_os': '<(host_os)',
},
}