| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1022212 commit 168241a
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -841,7 +841,14 @@ def configure_node(o): | |||
| 841 | 841 | o['variables']['node_no_browser_globals'] = b(options.no_browser_globals) | |
| 842 | 842 | o['variables']['node_shared'] = b(options.shared) | |
| 843 | 843 | node_module_version = getmoduleversion.get_version() | |
| 844 | - shlib_suffix = '%s.dylib' if sys.platform == 'darwin' else 'so.%s' | ||
| 844 | + | ||
| 845 | + if sys.platform == 'darwin': | ||
| 846 | + shlib_suffix = '%s.dylib' | ||
| 847 | + elif sys.platform.startswith('aix'): | ||
| 848 | + shlib_suffix = '%s.a' | ||
| 849 | + else: | ||
| 850 | + shlib_suffix = 'so.%s' | ||
| 851 | + | ||
| 845 | 852 | shlib_suffix %= node_module_version | |
| 846 | 853 | o['variables']['node_module_version'] = int(node_module_version) | |
| 847 | 854 | o['variables']['shlib_suffix'] = shlib_suffix | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -916,7 +916,15 @@ | |||
| 916 | 916 | 'targets': [ | |
| 917 | 917 | { | |
| 918 | 918 | 'target_name': 'node', | |
| 919 | - 'type': 'executable', | ||
| 919 | + 'conditions': [ | ||
| 920 | + ['node_shared=="true"', { | ||
| 921 | + 'type': 'shared_library', | ||
| 922 | + 'ldflags': ['--shared'], | ||
| 923 | + 'product_extension': '<(shlib_suffix)', | ||
| 924 | + }, { | ||
| 925 | + 'type': 'executable', | ||
| 926 | + }], | ||
| 927 | + ], | ||
| 920 | 928 | 'dependencies': ['<(node_core_target_name)', 'node_exp'], | |
| 921 | 929 | ||
| 922 | 930 | 'include_dirs': [ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments