|
10 | 10 | [ |
11 | 11 | { |
12 | 12 | 'target_name': 'engine_lcb_modules', |
13 | | - 'type': 'static_library', |
| 13 | + 'type': 'none', |
14 | 14 |
|
15 | 15 | 'dependencies': |
16 | 16 | [ |
17 | | - '../libscript/libscript.gyp:stdscript', |
18 | | - '../toolchain/lc-compile/lc-compile.gyp:lc-compile', |
| 17 | + '../toolchain/lc-compile/lc-compile.gyp:lc-compile#host', |
19 | 18 | ], |
20 | 19 |
|
21 | 20 | 'all_dependent_settings': |
22 | 21 | { |
23 | 22 | 'variables': |
24 | 23 | { |
| 24 | + 'builtin_lcb_modules': |
| 25 | + [ |
| 26 | + '<(SHARED_INTERMEDIATE_DIR)/engine_lcb_modules.cpp', |
| 27 | + ], |
| 28 | + |
25 | 29 | 'dist_aux_files': |
26 | 30 | [ |
27 | 31 | # Gyp will only use a recursive xcopy on Windows if the path ends with '/' |
28 | 32 | '<(PRODUCT_DIR)/modules/', |
29 | 33 | ], |
30 | 34 | }, |
31 | 35 | }, |
32 | | - |
33 | | - 'conditions': |
34 | | - [ |
35 | | - [ |
36 | | - 'OS == "win"', |
37 | | - { |
38 | | - 'all_dependent_settings': |
39 | | - { |
40 | | - 'msvs_settings': |
41 | | - { |
42 | | - 'VCLinkerTool': |
43 | | - { |
44 | | - 'AdditionalOptions': |
45 | | - [ |
46 | | - '/WHOLEARCHIVE:<(PRODUCT_DIR)\lib\engine_lcb_modules.lib', |
47 | | - ], |
48 | | - }, |
49 | | - }, |
50 | | - }, |
51 | | - }, |
52 | | - ], |
53 | | - [ |
54 | | - 'OS == "mac" or OS == "ios"', |
55 | | - { |
56 | | - 'all_dependent_settings': |
57 | | - { |
58 | | - 'xcode_settings': |
59 | | - { |
60 | | - 'OTHER_LDFLAGS': |
61 | | - [ |
62 | | - '-force_load <(PRODUCT_DIR)/libengine_lcb_modules.a', |
63 | | - ], |
64 | | - }, |
65 | | - }, |
66 | | - }, |
67 | | - ], |
68 | | - [ |
69 | | - 'OS == "android" or OS == "linux"', |
70 | | - { |
71 | | - 'direct_dependent_settings': |
72 | | - { |
73 | | - 'link_settings': |
74 | | - { |
75 | | - 'ldflags': |
76 | | - [ |
77 | | - '-Wl,--whole-archive', |
78 | | - '-Wl,<(PRODUCT_DIR)/obj.target/engine/libengine_lcb_modules.a', |
79 | | - '-Wl,--no-whole-archive', |
80 | | - ], |
81 | | - }, |
82 | | - }, |
83 | | - }, |
84 | | - ], |
85 | | - ], |
86 | 36 |
|
87 | 37 | 'actions': |
88 | 38 | [ |
|
98 | 48 | '<@(stdscript_syntax_lcb_files)', |
99 | 49 | '<@(stdscript_other_lcb_files)', |
100 | 50 | ], |
101 | | - |
| 51 | + |
| 52 | + 'conditions': |
| 53 | + [ |
| 54 | + [ |
| 55 | + 'OS != "mac"', |
| 56 | + { |
| 57 | + 'outputs': |
| 58 | + [ |
| 59 | + '<(PRODUCT_DIR)/modules/', |
| 60 | + ], |
| 61 | + }, |
| 62 | + ], |
| 63 | + ], |
| 64 | + |
102 | 65 | 'outputs': |
103 | 66 | [ |
104 | | - '<(INTERMEDIATE_DIR)/engine_lcb_modules.cpp', |
| 67 | + '<(SHARED_INTERMEDIATE_DIR)/engine_lcb_modules.cpp', |
105 | 68 |
|
106 | 69 | # A specific output file is required here to ensure that |
107 | 70 | # all build systems create the output directory while |
|
116 | 79 | '--bootstrap', |
117 | 80 | '--inputg', '../toolchain/lc-compile/src/grammar.g', |
118 | 81 | '--outputi', '<(PRODUCT_DIR)/modules/lci', |
119 | | - '--outputc', '<(INTERMEDIATE_DIR)/engine_lcb_modules.cpp', |
| 82 | + '--outputc', '<(SHARED_INTERMEDIATE_DIR)/engine_lcb_modules.cpp', |
120 | 83 | '<@(_inputs)', |
121 | 84 | ], |
122 | 85 | }, |
|
0 commit comments