forked from appjs/appjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
76 lines (75 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
{
'targets': [
{
'target_name': 'appjs',
'sources': [
'src/main.cpp',
'src/appjs.cpp',
'src/appjs_app.cpp',
'src/appjs_window.cpp',
'src/includes/cef_handler.cpp',
'src/includes/cef.cpp',
'src/includes/cef_loop.cpp',
'src/includes/cef_scheme_handler.cpp',
'src/includes/util.cpp',
],
'dependencies': [
'<(module_root_dir)/deps/cef/dll_wrapper.gyp:libcef_dll_wrapper'
],
'include_dirs': [
'src/',
'deps/cef'
],
'cflags': [
'-fPIC',
'-Wall',
'-std=c 0x'
],
'conditions': [
['OS=="mac"', {
}],
['OS=="linux"', {
'sources': [
'src/includes/cef_base_gtk.cpp',
'src/includes/cef_handler_gtk.cpp',
'src/linux/mainwindow.cpp',
],
'defines': [
'__LINUX__',
],
'cflags': [
'<!@(pkg-config --cflags gtk -2.0)',
],
'link_settings': {
'ldflags': [
'<!@(pkg-config --libs-only-L --libs-only-other gtk -2.0 gthread-2.0)',
'-Wl,-R,<(module_root_dir)/deps/cef/Release/lib.target/'
],
'libraries': [
'<!@(pkg-config --libs-only-l gtk -2.0 gthread-2.0)',
'<(module_root_dir)/deps/cef/Release/lib.target/libcef.so',
'<(module_root_dir)/build/Release/obj.target/deps/cef/cef_dll_wrapper.node'
],
},
}],
['OS=="win"', {
'sources': [
'src/includes/cef_base_win.cpp',
'src/windows/mainwindow.cpp'
],
'defines': [
'__WIN__',
'NOMINMAX',
'_WINSOCKAPI_'
],
'link_settings': {
'libraries': [
'<(module_root_dir)/deps/cef/Release/lib.target/libcef.lib',
'<(module_root_dir)/build/Release/obj.target/deps/cef/cef_dll_wrapper.node'
],
},
}]
]
}
]
}