-
Notifications
You must be signed in to change notification settings - Fork 1
/
binding.gyp
52 lines (52 loc) · 2.87 KB
/
binding.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"targets": [{
"target_name": "transmission_native",
"cflags_cc": ["-std=c++17"],
"include_dirs": [
"<!(node -e \"require('napi-macros')\")",
],
"conditions": [
['OS=="linux"', {
"libraries": [
"<(module_root_dir)/deps/transmission/build/libtransmission/libtransmission.a",
"<(module_root_dir)/deps/transmission/build/third-party/dht.bld/pfx/lib/libdht.a",
"<(module_root_dir)/deps/transmission/build/third-party/jsonsl/libjsonsl.a",
"<(module_root_dir)/deps/transmission/build/third-party/libb64.bld/src/libb64.a",
"<(module_root_dir)/deps/transmission/build/third-party/libdeflate.bld/pfx/lib/libdeflate.a",
"<(module_root_dir)/deps/transmission/build/third-party/libevent.bld/pfx/lib/libevent.a",
"<(module_root_dir)/deps/transmission/build/third-party/libnatpmp.bld/pfx/lib/libnatpmp.a",
"<(module_root_dir)/deps/transmission/build/third-party/libpsl.bld/pfx/lib/libpsl.a",
"<(module_root_dir)/deps/transmission/build/third-party/libutp.bld/libutp.a",
"<(module_root_dir)/deps/transmission/build/third-party/miniupnpc.bld/pfx/lib/libminiupnpc.a",
"<(module_root_dir)/deps/transmission/build/third-party/wildmat/libwildmat.a",
"-lcurl"
],
}],
['OS=="win"', {
"libraries": [
"<(module_root_dir)/deps/transmission/build/libtransmission/Release/transmission.lib",
"<(module_root_dir)/deps/transmission/build/third-party/dht.bld/pfx/lib/dht.lib",
"<(module_root_dir)/deps/transmission/build/third-party/jsonsl/Release/jsonsl.lib",
"<(module_root_dir)/deps/transmission/build/third-party/libb64.bld/src/Release/b64.lib",
"<(module_root_dir)/deps/transmission/build/third-party/libdeflate.bld/pfx/lib/deflatestatic.lib",
"<(module_root_dir)/deps/transmission/build/third-party/libevent.bld/pfx/lib/event.lib",
"<(module_root_dir)/deps/transmission/build/third-party/libnatpmp.bld/pfx/lib/natpmp.lib",
"<(module_root_dir)/deps/transmission/build/third-party/libpsl.bld/pfx/lib/psl.lib",
"<(module_root_dir)/deps/transmission/build/third-party/libutp.bld/Release/utp.lib",
"<(module_root_dir)/deps/transmission/build/third-party/miniupnpc.bld/pfx/lib/miniupnpc.lib",
"<(module_root_dir)/deps/transmission/build/third-party/wildmat/Release/wildmat.lib",
"$(VCPKG_INSTALLATION_ROOT)/installed/x64-windows-static/lib/libcurl.lib",
"$(VCPKG_INSTALLATION_ROOT)/installed/x64-windows-static/lib/zlib.lib",
"$(VCPKG_INSTALLATION_ROOT)/installed/x64-windows-static/lib/libcrypto.lib",
"$(VCPKG_INSTALLATION_ROOT)/installed/x64-windows-static/lib/libssl.lib",
"ws2_32.lib",
"Crypt32.lib",
"Iphlpapi.lib",
]
}],
],
"sources": [
"binding.cc"
],
}]
}