forked from liberkee/openldapjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
46 lines (46 loc) · 1.37 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
{
'targets': [
{
'target_name': 'openldapjs_binding',
'conditions': [
['OS=="linux"',
{
'include_dirs' : [
"<!(node -e \"require('nan')\")",
'/usr/local/include'
],
'ldflags': [
'-Wl,-z,defs'
],
'libraries': [
'-lldap_r',
'-llber'
],
'ldflags': [
'-L/usr/local/lib'
],
}
]
],
'product_dir': '<(module_path)',
'defines': [ 'V8_DEPRECATION_WARNINGS=1',
'LDAP_DEPRECATED'
],
'sources': [ './src/binding.cc', './src/ldap_control.cc','./src/ldap_bind_progress.cc', './src/ldap_paged_search_progress.cc',
'./src/ldap_search_progress.cc','./src/ldap_add_progress.cc','./src/ldap_delete_progress.cc',
'./src/ldap_modify_progress.cc','./src/ldap_rename_progress.cc','./src/ldap_compare_progress.cc',
'./src/ldap_changePassword_progress.cc', './src/ldap_map_result.cc', './src/ldap_helper_function.cc',
'./src/ldap_extended_operation.cc', './src/expo_construct_structure.cc'
],
'cflags': [
'-Wall',
'-g',
'-std=c++11',
'-Werror',
'-Wfatal-errors'
],
'cflags!': ['-fno-exceptions'],
'cflags_cc!': ['-fno-exceptions']
}
]
}