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

Commit 1337bb5

Browse files
committed
[[ Module Lcext ]] Generate module lcext for timezone library
1 parent 0989f57 commit 1337bb5

File tree

2 files changed

+88
-16
lines changed

2 files changed

+88
-16
lines changed

extensions/libraries/timezone/tz/tz.gyp

Lines changed: 88 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
'target_name': 'tz',
1717
'type': 'none',
1818

19-
'dependencies':
20-
[
21-
'libtz-build',
22-
],
23-
2419
'conditions':
2520
[
2621
[
@@ -35,19 +30,18 @@
3530
[
3631
'OS == "ios" and "iphoneos" in target_sdk',
3732
{
38-
'copies':
39-
[
40-
{
41-
'destination': '<(PRODUCT_DIR)/packaged_extensions/com.livecode.library.timezone/code/<(platform_id)/',
42-
'files':
43-
[
44-
'<(PRODUCT_DIR)/tz<(STATIC_LIB_SUFFIX)',
45-
],
46-
},
47-
],
33+
'dependencies':
34+
[
35+
'libtz-lcext',
36+
],
4837
},
4938
{
50-
39+
40+
'dependencies':
41+
[
42+
'libtz-build',
43+
],
44+
5145
'copies':
5246
[
5347
{
@@ -239,6 +233,84 @@
239233
],
240234
],
241235
},
236+
{
237+
'target_name': 'libtz-lcext',
238+
'product_prefix': '',
239+
'product_name': 'tz',
240+
'dependencies':
241+
[
242+
'../../../../toolchain/lc-compile/lc-compile.gyp:lc-compile',
243+
'libtz-build',
244+
],
245+
246+
'type': 'none',
247+
248+
'actions':
249+
[
250+
{
251+
'action_name': 'timezone_output_auxc',
252+
253+
'sources':
254+
[
255+
'../timezone.lcb',
256+
],
257+
258+
'inputs':
259+
[
260+
'<(_sources)',
261+
],
262+
263+
'outputs':
264+
[
265+
'<(SHARED_INTERMEDIATE_DIR)/timezone.cpp',
266+
],
267+
268+
'message': 'Output module as auxc',
269+
270+
'action':
271+
[
272+
'>(lc-compile_host)',
273+
'--forcebuiltins',
274+
'--modulepath',
275+
'<(PRODUCT_DIR)/modules/lci',
276+
'--outputauxc',
277+
'<(SHARED_INTERMEDIATE_DIR)/timezone.cpp',
278+
'<(_sources)',
279+
],
280+
},
281+
{
282+
'action_name': 'link_timezone_lcext',
283+
284+
'inputs':
285+
[
286+
'../../../../tools/build-module-lcext-ios.sh',
287+
'<(SHARED_INTERMEDIATE_DIR)/timezone.cpp',
288+
'tz.ios',
289+
'<(PRODUCT_DIR)/tz<(STATIC_LIB_SUFFIX)',
290+
],
291+
292+
'outputs':
293+
[
294+
'<(PRODUCT_DIR)/tz.lcext',
295+
'<(PRODUCT_DIR)/packaged_extensions/com.livecode.library.timezone/code/<(platform_id)/module.lcm'
296+
],
297+
298+
'message': 'Link lcext',
299+
300+
'action':
301+
[
302+
'../../../../tools/build-module-lcext-ios.sh',
303+
'<(SHARED_INTERMEDIATE_DIR)/timezone.cpp',
304+
'tz.ios',
305+
'<(PRODUCT_DIR)/packaged_extensions/com.livecode.library.timezone/code/<(platform_id)/tz.lcext',
306+
'$(not_a_real_variable)com.livecode.library.timezone',
307+
'<(PRODUCT_DIR)/packaged_extensions/com.livecode.library.timezone/code/<(platform_id)/module.lcm',
308+
'<(PRODUCT_DIR)/tz<(STATIC_LIB_SUFFIX)',
309+
],
310+
},
311+
312+
],
313+
},
242314
],
243315

244316
}

extensions/libraries/timezone/tz/tz.ios

Whitespace-only changes.

0 commit comments

Comments
 (0)