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
70 lines (63 loc) · 1.6 KB
/
lcb-modules.gyp
File metadata and controls
70 lines (63 loc) · 1.6 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
{
'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': 'static_library',
'dependencies':
[
'../libscript/libscript.gyp:stdscript',
'../toolchain/lc-compile/lc-compile.gyp:lc-compile',
],
'all_dependent_settings':
{
'variables':
{
'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)',
'>(lc-compile_host)',
],
'outputs':
[
'<(INTERMEDIATE_DIR)/engine_lcb_modules.c',
'<(PRODUCT_DIR)/modules/lci/dummy.file',
],
'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',
#'--outputg', '<(INTERMEDIATE_DIR)/>(stage)/grammar_full.g',
'--outputc', '<(INTERMEDIATE_DIR)/engine_lcb_modules.c',
'<@(_inputs)',
],
},
],
},
],
}