-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbinding.gyp
45 lines (45 loc) · 1.07 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
{
'targets': [
{
'target_name': 'app',
'type': 'shared_library',
'mac_bundle': 1,
'xcode_settings': {
'CONFIGURATION_BUILD_DIR': 'build',
'MACOSX_DEPLOYMENT_TARGET': '10.9',
'EMBEDDED_CONTENT_CONTAINS_SWIFT': 'YES',
'COMBINE_HIDPI_IMAGES': 'YES',
'LD_RUNPATH_SEARCH_PATHS': "@loader_path/Frameworks"
},
'mac_framework_headers': [
'src/app.h',
'src/next.h'
],
'sources': [
'src/app.swift',
'src/next.c'
],
},
{
'dependencies': [ 'app' ],
'target_name': 'addon',
'sources': [
'src/addon.cc'
],
'include_dirs': [
'<!(node -e \'require("nan")\')'
],
'mac_framework_dirs': [ 'build' ],
'link_settings': {
'xcode_settings': {
'CONFIGURATION_BUILD_DIR': 'build',
'MACOSX_DEPLOYMENT_TARGET': '10.9',
'OTHER_CPLUSPLUSFLAGS': [ '-std=c++11' ],
'OTHER_LDFLAGS': [
'-Wl,-rpath,<(module_root_dir)/build'
]
}
}
}
]
}