-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathbinding.gyp
76 lines (76 loc) · 2.02 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
{
'variables': {
'v8_enable_pointer_compression': 0,
'v8_enable_31bit_smis_on_64bit_arch': 0,
'mobiledevice_framework_location': '/System/Library/PrivateFrameworks/MobileDevice.framework',
'new_mobiledevice_framework_location': '/Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework'
},
'conditions': [
['OS=="mac"', {
'targets': [
{
'target_name': 'node_ios_device',
'defines': [
"NODE_IOS_DEVICE_VERSION=\"<!(node -e \"console.log(require(\'./package.json\').version)\")\"",
"NODE_IOS_DEVICE_URL=\"<!(node -e \"console.log(require(\'./package.json\').homepage)\")\""
],
'sources': [
'src/device.cpp',
'src/device.h',
'src/device-interface.cpp',
'src/device-interface.h',
'src/deviceman.cpp',
'src/deviceman.h',
'src/mobiledevice.h',
'src/node-ios-device.cpp',
'src/node-ios-device.h',
'src/relay.cpp',
'src/relay.h'
],
'libraries': [
'/System/Library/Frameworks/CoreFoundation.framework',
'MobileDevice.framework'
],
'mac_framework_dirs': [
'<(module_root_dir)/build'
],
'include_dirs': [
'<!(node -e "require(\'napi-macros\')")'
],
'cflags': [
'-Wl,-whole-archive -Wl,--no-whole-archive'
],
'cflags!': [
'-fno-exceptions'
],
'cflags_cc!': [
'-fno-exceptions'
],
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS' : [ '-std=c++17', '-stdlib=libc++' ],
'OTHER_LDFLAGS': [ '-stdlib=libc++' ],
'MACOSX_DEPLOYMENT_TARGET': '10.11',
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
},
'actions': [
{
'action_name': 'copy_mobiledevice',
'inputs': [ ],
'outputs': [ '<(module_root_dir)/build/' ],
'action': [
'./copy-framework.sh', '<@(mobiledevice_framework_location)', '<@(new_mobiledevice_framework_location)', '<@(_outputs)'
]
}
]
}
]
}, {
'targets': [
{
'target_name': 'node_ios_device',
'type': 'none'
}
]
}]
]
}