This repository has been archived by the owner on Aug 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcookpit.gyp
116 lines (116 loc) · 2.72 KB
/
cookpit.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
{
'variables': {
'name': 'cookpit',
},
'targets': [
{
'target_name': 'lib<(name)',
'type': 'static_library',
'conditions': [
['OS == "lib"', {
'actions': [
{
'action_name': 'clang-format',
'type' : 'none',
'inputs': [
],
'outputs':[
],
'action': [
'$SRCROOT/utils/run_clang'
],
}
],
}],
],
'dependencies': [
'vendors/json11.gyp:json11',
'vendors/lmdb.gyp:lmdb'
],
'libraries': [
'vendors/curl/<(OS)/bin/libcurl.a'
],
'defines': [
],
'cflags_cc': [
],
'xcode_settings': {
'OTHER_CFLAGS': [
],
'OTHER_CPLUSPLUSFLAGS': [
],
},
'sources': [
'<!@(python utils/glob.py -d cpp/src -i *.cpp *.hpp)',
'<!@(python utils/glob.py -d cpp/translator -i *.cpp *.hpp)',
],
'include_dirs': [
'vendors/flowcpp/include',
'vendors/json11',
'vendors/curl/<(OS)/include',
'vendors/lmdb/libraries/liblmdb',
'vendors/lmdbxx',
],
},
{
'target_name': 'lib<(name)_ios',
'type': 'static_library',
'conditions': [],
'dependencies': [
'lib<(name)',
'vendors/djinni/support-lib/support_lib.gyp:djinni_objc',
],
'sources': [
'<!@(python utils/glob.py -d ios/objc_gen -i *.mm *.h *.m)'
],
'include_dirs': [
],
},
{
'target_name': 'lib<(name)_android',
'type': 'shared_library',
'dependencies': [
'lib<(name)',
'vendors/djinni/support-lib/support_lib.gyp:djinni_jni',
],
'ldflags': [
'-llog',
'-lz',
],
'sources': [
'<!@(python utils/glob.py -d android/<(name)/jni_gen -i *.cpp *.hpp)',
],
'include_dirs': [
'cpp/src/gen',
'cpp/src/translator',
],
},
{
'target_name': 'test',
'type': 'executable',
'dependencies': [
'lib<(name)',
'vendors/googletest.gyp:googletest',
],
'defines': [
],
'xcode_settings': {
'GCC_OPTIMIZATION_LEVEL': '0',
'ONLY_ACTIVE_ARCH': 'YES',
'ENABLE_TESTABILITY': 'YES',
},
'sources': [
'<!@(python utils/glob.py -d cpp/test -i *.cpp *.hpp)',
],
'include_dirs': [
'vendors/googletest/googletest/include',
'vendors/googletest/googlemock/include',
'vendors/flowcpp/include',
'vendors/json11',
'vendors/curl/include/',
'vendors/lmdb/libraries/liblmdb',
'vendors/lmdbxx',
],
}
],
}