|
16 | 16 | 'target_name': 'tz', |
17 | 17 | 'type': 'none', |
18 | 18 |
|
19 | | - 'dependencies': |
20 | | - [ |
21 | | - 'libtz-build', |
22 | | - ], |
23 | | - |
24 | 19 | 'conditions': |
25 | 20 | [ |
26 | 21 | [ |
|
35 | 30 | [ |
36 | 31 | 'OS == "ios" and "iphoneos" in target_sdk', |
37 | 32 | { |
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 | + ], |
48 | 37 | }, |
49 | 38 | { |
50 | | - |
| 39 | + |
| 40 | + 'dependencies': |
| 41 | + [ |
| 42 | + 'libtz-build', |
| 43 | + ], |
| 44 | + |
51 | 45 | 'copies': |
52 | 46 | [ |
53 | 47 | { |
|
239 | 233 | ], |
240 | 234 | ], |
241 | 235 | }, |
| 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 | + }, |
242 | 314 | ], |
243 | 315 |
|
244 | 316 | } |
0 commit comments