forked from norman784/libimobiledevice-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
93 lines (92 loc) · 2.74 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"targets": [
{
"target_name": "imobiledevice",
"sources": [
"src/binding.cc",
"src/idevice/id.h",
"src/idevice/id.c",
"src/idevice/info.h",
"src/idevice/info.c",
"src/idevice/backup2.h",
"src/idevice/backup2.c",
"src/idevice/pair.h",
"src/idevice/pair.c",
"src/common/endianness.h",
"src/common/common_binding.h",
"src/common/common_binding.c",
"src/common/utils.h",
"src/common/utils.c",
"src/common/userpref.h",
"src/common/userpref.c",
"src/src/msc_config.h",
"src/src/msc_compat.h"
],
"include_dirs": [
"src"
],
"conditions": [
['OS=="mac"',
{ "defines": [
'HAVE_OPENSSL',
'HAVE_STPCPY'
],
"include_dirs": [
"dependencies/include"
],
"link_settings": {
"libraries": [
"<(module_root_dir)/dependencies/lib/libplist-2.0.3.dylib",
"<(module_root_dir)/dependencies/lib/libusbmuxd-2.0.6.dylib",
"<(module_root_dir)/dependencies/lib/libimobiledevice-1.0.6.dylib"
]
}
}
],
['OS=="win"',
{ "defines": [
'HAVE_OPENSSL',
'WIN32'
],
'sources' : [
"src/common/libgen.h",
"src/common/libgen.c"
],
"include_dirs": [
"dependencies/x86-windows/include",
"dependencies/libplist/include",
"dependencies/libusbmuxd/include",
"dependencies/libimobiledevice/include"
],
"libraries": [
"<(module_root_dir)/dependencies/x86-windows/lib/*.lib",
"<(module_root_dir)/dependencies/libplist/lib/plist.lib",
"<(module_root_dir)/dependencies/libusbmuxd/lib/usbmuxd.lib",
"<(module_root_dir)/dependencies/libimobiledevice/lib/imobiledevice.lib"
]
}
]
]
},
{
'target_name': 'action_after_build',
'type': 'none',
'dependencies': [ 'imobiledevice' ],
'hard_dependency': 1,
'conditions': [
['OS!="win"',
{
'actions': [
{
'action_name': 'postinstall',
'inputs': ['./scripts/postinstall.py'],
'outputs': [''],
'action': ['./scripts/postinstall.py']
}
]
}
]
]
},
]
}