|
149 | 149 |
|
150 | 150 | 'conditions': |
151 | 151 | [ |
152 | | - [ |
153 | | - 'OS == "mac"', |
154 | | - { |
155 | | - 'product_name': 'Server-Community', |
156 | | - }, |
157 | | - ], |
158 | 152 | [ |
159 | 153 | 'mobile != 0', |
160 | 154 | { |
|
218 | 212 | [ |
219 | 213 | 'OS == "ios"', |
220 | 214 | { |
221 | | - 'product_name': 'standalone-mobile-community', |
| 215 | + 'product_name': 'standalone-mobile-lib-community', |
| 216 | + 'product_prefix': '', |
| 217 | + 'product_extension': 'lcext', |
222 | 218 | 'app_plist': 'rsrc/standalone-mobile-Info.plist', |
| 219 | + |
| 220 | + # Forces all dependencies to be linked properly |
| 221 | + 'type': 'shared_library', |
| 222 | + |
| 223 | + 'variables': |
| 224 | + { |
| 225 | + 'deps_file': '${SRCROOT}/standalone.ios', |
| 226 | + }, |
| 227 | + |
| 228 | + 'xcode_settings': |
| 229 | + { |
| 230 | + 'DEAD_CODE_STRIPPING': 'NO', |
| 231 | + 'DYLIB_COMPATIBILITY_VERSION': '', |
| 232 | + 'DYLIB_CURRENT_VERSION': '', |
| 233 | + 'MACH_O_TYPE': 'mh_object', |
| 234 | + 'OTHER_LDFLAGS': |
| 235 | + [ |
| 236 | + '-Wl,-sectcreate,__MISC,__deps,<(deps_file)', |
| 237 | + '-Wl,-exported_symbol,_main', |
| 238 | + '-Wl,-exported_symbol,_load_module', |
| 239 | + '-Wl,-exported_symbol,_resolve_symbol', |
| 240 | + #'-all_load', # Dead stripping later will remove un-needed symbols |
| 241 | + ], |
| 242 | + }, |
223 | 243 | }, |
224 | 244 | ], |
225 | 245 | [ |
|
383 | 403 | }, |
384 | 404 | ], |
385 | 405 | [ |
386 | | - 'OS != "android"', |
| 406 | + 'OS == "ios"', |
| 407 | + { |
| 408 | + 'dist_files': [ '<(PRODUCT_DIR)/standalone-mobile-community.ios-engine' ], |
| 409 | + }, |
| 410 | + ], |
| 411 | + [ |
| 412 | + 'OS != "android" and OS != "ios"', |
387 | 413 | { |
388 | 414 | 'dist_files': [ '<(PRODUCT_DIR)/<(_product_name)>(app_bundle_suffix)' ], |
389 | 415 | } |
|
571 | 597 | }, |
572 | 598 |
|
573 | 599 | { |
574 | | - 'target_name': 'standalone-mobile-lib-community', |
| 600 | + 'target_name': 'ios-standalone-executable', |
575 | 601 | 'type': 'none', |
576 | 602 |
|
577 | 603 | 'dependencies': |
578 | 604 | [ |
579 | | - 'kernel-standalone', |
| 605 | + 'standalone', |
580 | 606 | ], |
581 | 607 |
|
582 | 608 | 'conditions': |
|
592 | 618 |
|
593 | 619 | 'inputs': |
594 | 620 | [ |
595 | | - '<(PRODUCT_DIR)/libkernel.a', |
596 | | - '<(PRODUCT_DIR)/libkernel-standalone.a', |
| 621 | + '<(PRODUCT_DIR)/standalone-mobile-lib-community.lcext', |
597 | 622 | ], |
598 | 623 |
|
599 | 624 | 'outputs': |
600 | 625 | [ |
601 | | - '<(PRODUCT_DIR)/standalone-mobile-lib-community.lcext', |
| 626 | + '<(PRODUCT_DIR)/standalone-mobile-community.ios-engine', |
602 | 627 | ], |
603 | 628 |
|
604 | 629 | 'action': |
605 | 630 | [ |
606 | 631 | './bind-ios-standalone.sh', |
607 | | - '<@(_outputs)', |
608 | 632 | '<@(_inputs)', |
| 633 | + '<@(_outputs)', |
609 | 634 | ], |
610 | 635 | }, |
611 | 636 | ], |
|
0 commit comments