This repository was archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathbinding.gyp
120 lines (120 loc) · 3.94 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"targets": [{
"target_name": "watcher",
"sources": [
"src/binding.cpp",
"src/hub.cpp",
"src/log.cpp",
"src/errable.cpp",
"src/queue.cpp",
"src/lock.cpp",
"src/message.cpp",
"src/message_buffer.cpp",
"src/thread_starter.cpp",
"src/thread.cpp",
"src/status.cpp",
"src/worker/worker_thread.cpp",
"src/worker/recent_file_cache.cpp",
"src/polling/directory_record.cpp",
"src/polling/polled_root.cpp",
"src/polling/polling_iterator.cpp",
"src/polling/polling_thread.cpp",
"src/helper/libuv.cpp",
"src/nan/async_callback.cpp",
"src/nan/all_callback.cpp",
"src/nan/functional_callback.cpp",
"src/nan/options.cpp"
],
"include_dirs": [
"<!(node -e \"require('nan')\")"
],
"conditions": [
["OS=='mac'", {
"defines": [
'PLATFORM_MACOS'
],
"sources": [
"src/helper/common_posix.cpp",
"src/helper/macos/helper.cpp",
"src/worker/macos/macos_worker_platform.cpp",
"src/worker/macos/batch_handler.cpp",
"src/worker/macos/rename_buffer.cpp",
"src/worker/macos/subscription.cpp"
],
"link_settings": {
"xcode_settings": {
"OTHER_LDFLAGS": [
"-framework CoreServices"
],
"OTHER_CFLAGS": [
"-Wno-unknown-pragmas"
]
}
},
"xcode_settings": {
'MACOSX_DEPLOYMENT_TARGET': '10.9'
}
}],
["OS=='win'", {
"defines": [
'PLATFORM_WINDOWS'
],
"sources": [
"src/helper/common_win.cpp",
"src/helper/windows/helper.cpp",
"src/worker/windows/subscription.cpp",
"src/worker/windows/windows_worker_platform.cpp"
]
}],
["OS=='linux'", {
"defines": [
'PLATFORM_LINUX'
],
"sources": [
"src/helper/common_posix.cpp",
"src/worker/linux/pipe.cpp",
"src/worker/linux/side_effect.cpp",
"src/worker/linux/cookie_jar.cpp",
"src/worker/linux/watched_directory.cpp",
"src/worker/linux/watch_registry.cpp",
"src/worker/linux/linux_worker_platform.cpp"
]
}]
],
"configurations": {
"Debug": {
"msvs_settings": {
"VCCLCompilerTool": {
"ExceptionHandling": "2",
"WarningLevel": "3",
"DebugInformationFormat": "3",
"Optimization": "0"
}
}
},
"Release": {
"msvs_settings": {
"VCCLCompilerTool": {
"ExceptionHandling": "2",
"WarningLevel": "3",
"Optimization": "3"
}
}
}
}
}],
"target_defaults": {
"cflags_cc": [
"-std=c++11",
"-Wall"
],
"conditions": [
['OS=="mac"', {
"xcode_settings": {
'CLANG_CXX_LIBRARY': 'libc++',
'CLANG_CXX_LANGUAGE_STANDARD': 'c++11'
}
}]
]
}
}