| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 578d80b commit 70060ee
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -64,9 +64,9 @@ | |||
| 64 | 64 | 'V8_BASE': '<(PRODUCT_DIR)/libv8_base.a', | |
| 65 | 65 | }], | |
| 66 | 66 | ['openssl_fips != ""', { | |
| 67 | - 'OPENSSL_PRODUCT': 'libcrypto.a', | ||
| 67 | + 'OPENSSL_PRODUCT': '<(STATIC_LIB_PREFIX)crypto<(STATIC_LIB_SUFFIX)', | ||
| 68 | 68 | }, { | |
| 69 | - 'OPENSSL_PRODUCT': 'libopenssl.a', | ||
| 69 | + 'OPENSSL_PRODUCT': '<(STATIC_LIB_PREFIX)openssl<(STATIC_LIB_SUFFIX)', | ||
| 70 | 70 | }], | |
| 71 | 71 | ['OS=="mac"', { | |
| 72 | 72 | 'clang%': 1, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -339,7 +339,13 @@ | |||
| 339 | 339 | [ 'OS=="win"', { | |
| 340 | 340 | 'sources': [ | |
| 341 | 341 | 'src/backtrace_win32.cc', | |
| 342 | - 'src/res/node.rc', | ||
| 342 | + ], | ||
| 343 | + 'conditions': [ | ||
| 344 | + [ 'node_target_type!="static_library"', { | ||
| 345 | + 'sources': [ | ||
| 346 | + 'src/res/node.rc', | ||
| 347 | + ], | ||
| 348 | + }], | ||
| 343 | 349 | ], | |
| 344 | 350 | 'defines!': [ | |
| 345 | 351 | 'NODE_PLATFORM="win"', | |
@@ -506,7 +512,7 @@ | |||
| 506 | 512 | 'target_name': 'node_etw', | |
| 507 | 513 | 'type': 'none', | |
| 508 | 514 | 'conditions': [ | |
| 509 | - [ 'node_use_etw=="true"', { | ||
| 515 | + [ 'node_use_etw=="true" and node_target_type!="static_library"', { | ||
| 510 | 516 | 'actions': [ | |
| 511 | 517 | { | |
| 512 | 518 | 'action_name': 'node_etw', | |
@@ -527,7 +533,7 @@ | |||
| 527 | 533 | 'target_name': 'node_perfctr', | |
| 528 | 534 | 'type': 'none', | |
| 529 | 535 | 'conditions': [ | |
| 530 | - [ 'node_use_perfctr=="true"', { | ||
| 536 | + [ 'node_use_perfctr=="true" and node_target_type!="static_library"', { | ||
| 531 | 537 | 'actions': [ | |
| 532 | 538 | { | |
| 533 | 539 | 'action_name': 'node_perfctr_man', | |
@@ -589,13 +595,15 @@ | |||
| 589 | 595 | '<(SHARED_INTERMEDIATE_DIR)/node_javascript.cc', | |
| 590 | 596 | ], | |
| 591 | 597 | 'conditions': [ | |
| 592 | - [ 'node_use_dtrace=="false" and node_use_etw=="false"', { | ||
| 598 | + [ 'node_use_dtrace=="false" and node_use_etw=="false" or ' | ||
| 599 | + 'node_target_type=="static_library"', { | ||
| 593 | 600 | 'inputs': [ 'src/notrace_macros.py' ] | |
| 594 | 601 | }], | |
| 595 | - ['node_use_lttng=="false"', { | ||
| 602 | + ['node_use_lttng=="false" or node_target_type=="static_library"', { | ||
| 596 | 603 | 'inputs': [ 'src/nolttng_macros.py' ] | |
| 597 | 604 | }], | |
| 598 | - [ 'node_use_perfctr=="false"', { | ||
| 605 | + [ 'node_use_perfctr=="false" or ' | ||
| 606 | + 'node_target_type=="static_library"', { | ||
| 599 | 607 | 'inputs': [ 'src/noperfctr_macros.py' ] | |
| 600 | 608 | }] | |
| 601 | 609 | ], | |
@@ -949,6 +957,47 @@ | |||
| 949 | 957 | ], # end targets | |
| 950 | 958 | ||
| 951 | 959 | 'conditions': [ | |
| 960 | + [ 'node_target_type=="static_library"', { | ||
| 961 | + 'targets': [ | ||
| 962 | + { | ||
| 963 | + 'target_name': 'static_node', | ||
| 964 | + 'type': 'executable', | ||
| 965 | + 'product_name': '<(node_core_target_name)', | ||
| 966 | + 'dependencies': [ | ||
| 967 | + '<(node_core_target_name)', | ||
| 968 | + ], | ||
| 969 | + 'sources+': [ | ||
| 970 | + 'src/node_main.cc', | ||
| 971 | + ], | ||
| 972 | + 'include_dirs': [ | ||
| 973 | + 'deps/v8/include', | ||
| 974 | + ], | ||
| 975 | + 'xcode_settings': { | ||
| 976 | + 'OTHER_LDFLAGS': [ | ||
| 977 | + '-Wl,-force_load,<(PRODUCT_DIR)/<(STATIC_LIB_PREFIX)' | ||
| 978 | + '<(node_core_target_name)<(STATIC_LIB_SUFFIX)', | ||
| 979 | + ], | ||
| 980 | + }, | ||
| 981 | + 'msvs_settings': { | ||
| 982 | + 'VCLinkerTool': { | ||
| 983 | + 'AdditionalOptions': [ | ||
| 984 | + '/WHOLEARCHIVE:<(PRODUCT_DIR)/lib/' | ||
| 985 | + '<(node_core_target_name)<(STATIC_LIB_SUFFIX)', | ||
| 986 | + ], | ||
| 987 | + }, | ||
| 988 | + }, | ||
| 989 | + 'conditions': [ | ||
| 990 | + ['OS in "linux freebsd openbsd solaris android"', { | ||
| 991 | + 'ldflags': [ | ||
| 992 | + '-Wl,--whole-archive,<(OBJ_DIR)/<(STATIC_LIB_PREFIX)' | ||
| 993 | + '<(node_core_target_name)<(STATIC_LIB_SUFFIX)', | ||
| 994 | + '-Wl,--no-whole-archive', | ||
| 995 | + ], | ||
| 996 | + }], | ||
| 997 | + ], | ||
| 998 | + }, | ||
| 999 | + ], | ||
| 1000 | + }], | ||
| 952 | 1001 | ['OS=="aix"', { | |
| 953 | 1002 | 'targets': [ | |
| 954 | 1003 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -78,7 +78,7 @@ | |||
| 78 | 78 | 'src/node_lttng.cc' | |
| 79 | 79 | ], | |
| 80 | 80 | } ], | |
| 81 | - [ 'node_use_etw=="true"', { | ||
| 81 | + [ 'node_use_etw=="true" and node_target_type!="static_library"', { | ||
| 82 | 82 | 'defines': [ 'HAVE_ETW=1' ], | |
| 83 | 83 | 'dependencies': [ 'node_etw' ], | |
| 84 | 84 | 'sources': [ | |
@@ -90,7 +90,7 @@ | |||
| 90 | 90 | 'tools/msvs/genfiles/node_etw_provider.rc', | |
| 91 | 91 | ] | |
| 92 | 92 | } ], | |
| 93 | - [ 'node_use_perfctr=="true"', { | ||
| 93 | + [ 'node_use_perfctr=="true" and node_target_type!="static_library"', { | ||
| 94 | 94 | 'defines': [ 'HAVE_PERFCTR=1' ], | |
| 95 | 95 | 'dependencies': [ 'node_perfctr' ], | |
| 96 | 96 | 'sources': [ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,12 +1,23 @@ | |||
| 1 | 1 | { | |
| 2 | + 'includes': ['../../../config.gypi'], | ||
| 3 | + 'variables': { | ||
| 4 | + 'node_target_type%': '', | ||
| 5 | + }, | ||
| 2 | 6 | 'targets': [ | |
| 3 | 7 | { | |
| 4 | 8 | 'target_name': 'binding', | |
| 5 | 9 | 'conditions': [ | |
| 6 | - ['node_use_openssl=="true"', { | ||
| 7 | - 'sources': ['binding.cc'], | ||
| 8 | - 'include_dirs': ['../../../deps/openssl/openssl/include'], | ||
| 9 | - }] | ||
| 10 | + ['node_use_openssl=="true"', { | ||
| 11 | + 'sources': ['binding.cc'], | ||
| 12 | + 'include_dirs': ['../../../deps/openssl/openssl/include'], | ||
| 13 | + 'conditions': [ | ||
| 14 | + ['OS=="win" and node_target_type=="static_library"', { | ||
| 15 | + 'libraries': [ | ||
| 16 | + '../../../../$(Configuration)/lib/<(OPENSSL_PRODUCT)' | ||
| 17 | + ], | ||
| 18 | + }], | ||
| 19 | + ], | ||
| 20 | + }] | ||
| 10 | 21 | ] | |
| 11 | 22 | }, | |
| 12 | 23 | ] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,22 @@ | |||
| 1 | 1 | { | |
| 2 | + 'includes': ['../../../config.gypi'], | ||
| 3 | + 'variables': { | ||
| 4 | + 'node_target_type%': '', | ||
| 5 | + }, | ||
| 2 | 6 | 'targets': [ | |
| 3 | 7 | { | |
| 4 | 8 | 'target_name': 'binding', | |
| 5 | 9 | 'sources': ['binding.cc'], | |
| 6 | 10 | 'include_dirs': ['../../../deps/zlib'], | |
| 11 | + 'conditions': [ | ||
| 12 | + ['node_target_type=="static_library"', { | ||
| 13 | + 'conditions': [ | ||
| 14 | + ['OS=="win"', { | ||
| 15 | + 'libraries': ['../../../../$(Configuration)/lib/zlib.lib'], | ||
| 16 | + }], | ||
| 17 | + ], | ||
| 18 | + }], | ||
| 19 | + ], | ||
| 7 | 20 | }, | |
| 8 | 21 | ] | |
| 9 | 22 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments