| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 52f1493 commit f2b0098
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -802,7 +802,14 @@ def configure_node(o): | |||
| 802 | 802 | o['variables']['node_use_v8_platform'] = b(not options.without_v8_platform) | |
| 803 | 803 | o['variables']['node_use_bundled_v8'] = b(not options.without_bundled_v8) | |
| 804 | 804 | node_module_version = getmoduleversion.get_version() | |
| 805 | - shlib_suffix = '%s.dylib' if sys.platform == 'darwin' else 'so.%s' | ||
| 805 | + | ||
| 806 | + if sys.platform == 'darwin': | ||
| 807 | + shlib_suffix = '%s.dylib' | ||
| 808 | + elif sys.platform.startswith('aix'): | ||
| 809 | + shlib_suffix = '%s.a' | ||
| 810 | + else: | ||
| 811 | + shlib_suffix = 'so.%s' | ||
| 812 | + | ||
| 806 | 813 | shlib_suffix %= node_module_version | |
| 807 | 814 | o['variables']['node_module_version'] = int(node_module_version) | |
| 808 | 815 | o['variables']['shlib_suffix'] = shlib_suffix | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -811,7 +811,15 @@ | |||
| 811 | 811 | 'targets': [ | |
| 812 | 812 | { | |
| 813 | 813 | 'target_name': 'node', | |
| 814 | - 'type': 'executable', | ||
| 814 | + 'conditions': [ | ||
| 815 | + ['node_shared=="true"', { | ||
| 816 | + 'type': 'shared_library', | ||
| 817 | + 'ldflags': ['--shared'], | ||
| 818 | + 'product_extension': '<(shlib_suffix)', | ||
| 819 | + }, { | ||
| 820 | + 'type': 'executable', | ||
| 821 | + }], | ||
| 822 | + ], | ||
| 815 | 823 | 'dependencies': ['<(node_core_target_name)', 'node_exp'], | |
| 816 | 824 | ||
| 817 | 825 | 'include_dirs': [ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments