Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 0989f57

Browse files
committed
[[ Module Lcext ]] Generate module lcext for ini example
1 parent ed88f0a commit 0989f57

File tree

2 files changed

+86
-14
lines changed

2 files changed

+86
-14
lines changed

extensions/libraries/ini/inih/ini.ios

Whitespace-only changes.

extensions/libraries/ini/inih/inih.gyp

Lines changed: 86 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,23 @@
1111
'target_name': 'inih',
1212
'type': 'none',
1313

14-
'dependencies':
15-
[
16-
'inih-build',
17-
],
18-
1914
'conditions':
2015
[
2116
[
2217
'OS == "ios" and "iphoneos" in target_sdk',
2318
{
24-
'copies':
19+
'dependencies':
2520
[
26-
{
27-
'destination': '<(PRODUCT_DIR)/packaged_extensions/com.livecode.library.ini/code/<(platform_id)/',
28-
'files':
29-
[
30-
'<(PRODUCT_DIR)/inih<(STATIC_LIB_SUFFIX)',
31-
],
32-
},
21+
'inih-lcext',
3322
],
3423
},
3524
{
36-
25+
26+
'dependencies':
27+
[
28+
'inih-build',
29+
],
30+
3731
'copies':
3832
[
3933
{
@@ -76,6 +70,84 @@
7670
],
7771
],
7872
},
73+
{
74+
'target_name': 'inih-lcext',
75+
'product_prefix': '',
76+
'product_name': 'inih',
77+
'dependencies':
78+
[
79+
'../../../../toolchain/lc-compile/lc-compile.gyp:lc-compile',
80+
'inih-build',
81+
],
82+
83+
'type': 'none',
84+
85+
'actions':
86+
[
87+
{
88+
'action_name': 'ini_output_auxc',
89+
90+
'sources':
91+
[
92+
'../ini.lcb',
93+
],
94+
95+
'inputs':
96+
[
97+
'<(_sources)',
98+
],
99+
100+
'outputs':
101+
[
102+
'<(SHARED_INTERMEDIATE_DIR)/ini.cpp',
103+
],
104+
105+
'message': 'Output module as auxc',
106+
107+
'action':
108+
[
109+
'>(lc-compile_host)',
110+
'--forcebuiltins',
111+
'--modulepath',
112+
'<(PRODUCT_DIR)/modules/lci',
113+
'--outputauxc',
114+
'<(SHARED_INTERMEDIATE_DIR)/ini.cpp',
115+
'<(_sources)',
116+
],
117+
},
118+
{
119+
'action_name': 'link_ini_lcext',
120+
121+
'inputs':
122+
[
123+
'../../../../tools/build-module-lcext-ios.sh',
124+
'<(SHARED_INTERMEDIATE_DIR)/ini.cpp',
125+
'ini.ios',
126+
'<(PRODUCT_DIR)/inih<(STATIC_LIB_SUFFIX)',
127+
],
128+
129+
'outputs':
130+
[
131+
'<(PRODUCT_DIR)/inih.lcext',
132+
'<(PRODUCT_DIR)/packaged_extensions/com.livecode.library.ini/code/<(platform_id)/module.lcm'
133+
],
134+
135+
'message': 'Link lcext',
136+
137+
'action':
138+
[
139+
'../../../../tools/build-module-lcext-ios.sh',
140+
'<(SHARED_INTERMEDIATE_DIR)/ini.cpp',
141+
'ini.ios',
142+
'<(PRODUCT_DIR)/packaged_extensions/com.livecode.library.ini/code/<(platform_id)/inih.lcext',
143+
'$(not_a_real_variable)com.livecode.library.ini',
144+
'<(PRODUCT_DIR)/packaged_extensions/com.livecode.library.ini/code/<(platform_id)/module.lcm',
145+
'<(PRODUCT_DIR)/inih<(STATIC_LIB_SUFFIX)',
146+
],
147+
},
148+
149+
],
150+
},
79151
],
80152

81153
}

0 commit comments

Comments
 (0)