forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlcb-modules.gyp
More file actions
91 lines (80 loc) · 2 KB
/
lcb-modules.gyp
File metadata and controls
91 lines (80 loc) · 2 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
'includes':
[
'../common.gypi',
'engine-sources.gypi', # LCB modules for the engine are listed here
'../libscript/stdscript-sources.gypi', # LCB modules for the stdscript library are listed here
],
'targets':
[
{
'target_name': 'engine_lcb_modules',
'type': 'none',
'toolsets': ['host', 'target'],
'dependencies':
[
'../toolchain/lc-compile/lc-compile.gyp:lc-compile#host',
],
'all_dependent_settings':
{
'variables':
{
'builtin_lcb_modules':
[
'<(SHARED_INTERMEDIATE_DIR)/engine_lcb_modules.cpp',
],
'dist_aux_files':
[
# Gyp will only use a recursive xcopy on Windows if the path ends with '/'
'<(PRODUCT_DIR)/modules/',
],
},
},
'actions':
[
{
'action_name': 'generate_builtin_list',
'message': 'Generating list of in-engine LCB modules',
'process_outputs_as_sources': 1,
'inputs':
[
'<@(engine_syntax_lcb_files)',
'<@(engine_other_lcb_files)',
'<@(stdscript_syntax_lcb_files)',
'<@(stdscript_other_lcb_files)',
],
'conditions':
[
[
'OS != "mac" and OS != "ios"',
{
'outputs':
[
'<(PRODUCT_DIR)/modules/',
],
},
],
],
'outputs':
[
'<(SHARED_INTERMEDIATE_DIR)/engine_lcb_modules.cpp',
# A specific output file is required here to ensure that
# all build systems create the output directory while
# also preventing spurious rebuilds.
'<(PRODUCT_DIR)/modules/lci/com.livecode.type.lci',
],
'action':
[
# We don't need the output grammar, just the modules list and interface files
'>(lc-compile_host)',
'--bootstrap',
'--inputg', '../toolchain/lc-compile/src/grammar.g',
'--outputi', '<(PRODUCT_DIR)/modules/lci',
'--outputc', '<(SHARED_INTERMEDIATE_DIR)/engine_lcb_modules.cpp',
'<@(_inputs)',
],
},
],
},
],
}