-
Notifications
You must be signed in to change notification settings - Fork 1
/
avatar-js.gyp
134 lines (132 loc) · 4.13 KB
/
avatar-js.gyp
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
'includes': {
'config.gypi',
},
'variables': {
'AVATAR_JS_HOME%': '<(AVATAR_JS_HOME%)',
'SRC%': './out/<(target)/obj.target/avatar-js',
},
'target_defaults': {
'default_configuration': '<(target)',
'configurations': {
'Debug': {
'defines': [ 'DEBUG', '_DEBUG' ],
'cflags': [ '-g', '-O0' ],
'conditions': [
['OS == "win"', {
'msvs_settings': {
'VCCLCompilerTool': {
'ObjectFile': 'out\<(target)\obj.target\\avatar-js\\',
},
'VCLinkerTool': {
'GenerateDebugInformation': 'true',
},
},
}],
[ 'OS=="linux"', {
}],
[ 'OS=="mac"', {
}],
],
},
'Release': {
'defines': [ 'NDEBUG' ],
'conditions': [
['OS == "win"', {
'msvs_settings': {
'VCCLCompilerTool': {
'ObjectFile': 'out\<(target)\obj.target\libuv-java\\',
},
},
}],
[ 'OS=="linux"', {
}],
[ 'OS=="mac"', {
}],
],
},
}
},
'targets': [
{
'target_name': 'avatar-js',
'type': 'shared_library',
'defines': [
],
'dependencies': [
],
'include_dirs': [
'<(JAVA_HOME)/include',
],
'conditions': [
['OS == "linux"', {
'sources': [
'os.cpp',
'process.cpp',
'throw.cpp',
],
'libraries': [
],
'defines': [
'__POSIX__',
],
'cflags': [
'-fPIC',
],
'ldflags': [
],
'include_dirs': [
'<(JAVA_HOME)/include/linux',
],
}],
['OS == "mac"', {
'target_conditions': [
['target_arch=="x64"', {
'xcode_settings': {'ARCHS': ['x86_64']},
}]
],
'sources': [
'<(SRC)/os.cpp',
'<(SRC)/process.cpp',
'<(SRC)/throw.cpp',
],
'libraries': [
],
'defines': [
'__POSIX__',
],
'include_dirs': [
'<(JAVA_HOME)/include/darwin',
],
}],
['OS == "win"', {
'target_conditions': [
['target_arch=="x64"', {
'msvs_configuration_platform': 'x64'
}]
],
'sources': [
'<(SRC)/os.cpp',
'<(SRC)/process.cpp',
'<(SRC)/throw.cpp',
],
'defines': [
'_UNICODE',
'UNICODE',
'_WIN32_WINNT=0x0600',
'_WIN32',
],
'cflags': [
],
'ldflags': [
],
'include_dirs': [
'<(JAVA_HOME)/include/win32',
],
'libraries': [
],
}]
],
},
],
}