|
316 | 316 | 'NODE_OPENSSL_SYSTEM_CERT_PATH="<(openssl_system_ca_path)"',
|
317 | 317 | ],
|
318 | 318 | 'conditions': [
|
319 |
| - [ 'node_shared=="true" and node_module_version!="" and OS!="win"', { |
320 |
| - 'product_extension': '<(shlib_suffix)', |
321 |
| - }], |
322 | 319 | [ 'node_engine=="chakracore"', {
|
323 | 320 | 'sources': [
|
324 | 321 | 'src/node_api_jsrt.cc',
|
|
335 | 332 | 'src/node_api.cc',
|
336 | 333 | ],
|
337 | 334 | }],
|
| 335 | + [ 'node_shared=="true" and node_module_version!="" and OS!="win"', { |
| 336 | + 'product_extension': '<(shlib_suffix)', |
| 337 | + }], |
338 | 338 | [ 'v8_enable_inspector==1', {
|
339 | 339 | 'defines': [
|
340 | 340 | 'HAVE_INSPECTOR=1',
|
|
870 | 870 | 'deps/v8/include'
|
871 | 871 | ],
|
872 | 872 | 'conditions' : [
|
873 |
| - ['node_use_v8_platform=="true" and node_engine=="v8"', { |
| 873 | + ['node_use_v8_platform=="true"', { |
874 | 874 | 'dependencies': [
|
875 | 875 | 'deps/v8/src/v8.gyp:v8_libplatform',
|
876 | 876 | ],
|
|
916 | 916 | ],
|
917 | 917 | }],
|
918 | 918 | [ 'node_use_openssl=="true"', {
|
919 |
| - 'libraries': [ |
920 |
| - '<(OBJ_PATH)<(OBJ_SEPARATOR)node_crypto.<(OBJ_SUFFIX)', |
921 |
| - '<(OBJ_PATH)<(OBJ_SEPARATOR)node_crypto_bio.<(OBJ_SUFFIX)', |
922 |
| - '<(OBJ_PATH)<(OBJ_SEPARATOR)node_crypto_clienthello.<(OBJ_SUFFIX)', |
923 |
| - '<(OBJ_PATH)<(OBJ_SEPARATOR)tls_wrap.<(OBJ_SUFFIX)', |
| 919 | + 'conditions': [ |
| 920 | + ['node_target_type!="static_library"', { |
| 921 | + 'libraries': [ |
| 922 | + '<(OBJ_PATH)<(OBJ_SEPARATOR)node_crypto.<(OBJ_SUFFIX)', |
| 923 | + '<(OBJ_PATH)<(OBJ_SEPARATOR)node_crypto_bio.<(OBJ_SUFFIX)', |
| 924 | + '<(OBJ_PATH)<(OBJ_SEPARATOR)node_crypto_clienthello.<(OBJ_SUFFIX)', |
| 925 | + '<(OBJ_PATH)<(OBJ_SEPARATOR)tls_wrap.<(OBJ_SUFFIX)', |
| 926 | + ], |
| 927 | + }], |
| 928 | + ], |
| 929 | + 'defines': [ |
| 930 | + 'HAVE_OPENSSL=1', |
924 | 931 | ],
|
925 | 932 | }],
|
926 | 933 | ['v8_enable_inspector==1', {
|
927 | 934 | 'sources': [
|
928 | 935 | 'test/cctest/test_inspector_socket.cc',
|
929 | 936 | 'test/cctest/test_inspector_socket_server.cc'
|
930 | 937 | ],
|
931 |
| - 'libraries': [ |
932 |
| - '<(OBJ_PATH)<(OBJ_SEPARATOR)inspector_agent.<(OBJ_SUFFIX)', |
933 |
| - '<(OBJ_PATH)<(OBJ_SEPARATOR)inspector_io.<(OBJ_SUFFIX)', |
934 |
| - '<(OBJ_PATH)<(OBJ_SEPARATOR)inspector_js_api.<(OBJ_SUFFIX)', |
935 |
| - '<(OBJ_PATH)<(OBJ_SEPARATOR)inspector_socket.<(OBJ_SUFFIX)', |
936 |
| - '<(OBJ_PATH)<(OBJ_SEPARATOR)inspector_socket_server.<(OBJ_SUFFIX)', |
| 938 | + 'conditions': [ |
| 939 | + ['node_target_type!="static_library"', { |
| 940 | + 'libraries': [ |
| 941 | + '<(OBJ_PATH)<(OBJ_SEPARATOR)inspector_agent.<(OBJ_SUFFIX)', |
| 942 | + '<(OBJ_PATH)<(OBJ_SEPARATOR)inspector_io.<(OBJ_SUFFIX)', |
| 943 | + '<(OBJ_PATH)<(OBJ_SEPARATOR)inspector_js_api.<(OBJ_SUFFIX)', |
| 944 | + '<(OBJ_PATH)<(OBJ_SEPARATOR)inspector_socket.<(OBJ_SUFFIX)', |
| 945 | + '<(OBJ_PATH)<(OBJ_SEPARATOR)inspector_socket_server.<(OBJ_SUFFIX)', |
| 946 | + ], |
| 947 | + }], |
937 | 948 | ],
|
938 | 949 | 'defines': [
|
939 | 950 | 'HAVE_INSPECTOR=1',
|
940 | 951 | ],
|
941 | 952 | }],
|
942 |
| - [ 'node_use_dtrace=="true"', { |
| 953 | + [ 'node_use_dtrace=="true" and node_target_type!="static_library"', { |
943 | 954 | 'libraries': [
|
944 | 955 | '<(OBJ_PATH)<(OBJ_SEPARATOR)node_dtrace.<(OBJ_SUFFIX)',
|
945 | 956 | ],
|
|
957 | 968 | }],
|
958 | 969 | ],
|
959 | 970 | }],
|
960 |
| - [ 'OS=="win"', { |
| 971 | + [ 'OS=="win" and node_target_type!="static_library"', { |
961 | 972 | 'libraries': [
|
962 | 973 | '<(OBJ_PATH)<(OBJ_SEPARATOR)backtrace_win32.<(OBJ_SUFFIX)',
|
963 |
| - '-ldbghelp.lib' |
964 | 974 | ],
|
| 975 | + 'conditions': [ |
| 976 | + # this is only necessary for chakra on windows because chakra is dynamically linked on windows |
| 977 | + [ 'node_engine=="chakracore"', { |
| 978 | + 'libraries': [ '-ldbghelp.lib' ], |
| 979 | + }], |
| 980 | + ], |
965 | 981 | }, {
|
966 |
| - 'libraries': [ |
967 |
| - '<(OBJ_PATH)<(OBJ_SEPARATOR)backtrace_posix.<(OBJ_SUFFIX)', |
968 |
| - ], |
| 982 | + 'conditions': [ |
| 983 | + ['node_target_type!="static_library"', { |
| 984 | + 'libraries': [ |
| 985 | + '<(OBJ_PATH)<(OBJ_SEPARATOR)backtrace_posix.<(OBJ_SUFFIX)', |
| 986 | + ], |
| 987 | + }], |
| 988 | + ], |
969 | 989 | }],
|
970 | 990 | [ 'node_shared_zlib=="false"', {
|
971 | 991 | 'dependencies': [
|
|
995 | 1015 | 'deps/nghttp2/lib/includes'
|
996 | 1016 | ]
|
997 | 1017 | }],
|
998 |
| - [ 'node_use_v8_platform=="true" and node_engine=="v8"', { |
999 |
| - 'dependencies': [ |
1000 |
| - 'deps/v8/src/v8.gyp:v8_libplatform', |
1001 |
| - ], |
1002 |
| - }], |
1003 | 1018 | ['OS=="solaris"', {
|
1004 | 1019 | 'ldflags': [ '-I<(SHARED_INTERMEDIATE_DIR)' ]
|
1005 | 1020 | }],
|
|
0 commit comments