This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
binding.gyp
94 lines (94 loc) · 2.68 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
{
"includes": [ "common.gypi" ],
"variables": {
"module_name":"osmium",
"module_path":"./lib/binding"
},
"targets": [
{
"target_name": "<(module_name)",
"sources": [
"src/apply.cpp",
"src/buffer_wrap.cpp",
"src/file_wrap.cpp",
"src/filter.cpp",
"src/handler.cpp",
"src/location_handler_wrap.cpp",
"src/multipolygon_collector_wrap.cpp",
"src/multipolygon_handler_wrap.cpp",
"src/node_osmium.cpp",
"src/osm_area_wrap.cpp",
"src/osm_changeset_wrap.cpp",
"src/osm_entity_wrap.cpp",
"src/osm_node_wrap.cpp",
"src/osm_object_wrap.cpp",
"src/osm_relation_wrap.cpp",
"src/osm_way_wrap.cpp",
"src/basic_reader_wrap.cpp",
"src/flex_reader_wrap.cpp",
"src/utils.cpp"
],
"include_dirs": [
"../protozero/include/",
"../libosmium/include/",
"./src/",
"<!(node -e \"require('nan')\")"
],
"defines": [
"_LARGEFILE_SOURCE",
"_FILE_OFFSET_BITS=64",
"OSMIUM_WITH_SPARSEHASH"
],
"conditions" : [
["OS=='win'",
{
'include_dirs':[
'<!(echo %LODEPSDIR%)/boost',
'<!(echo %LODEPSDIR%)/sparsehash/include',
'<!(echo %LODEPSDIR%)/bzip2/include',
'<!(echo %LODEPSDIR%)/zlib/include',
'<!(echo %LODEPSDIR%)/expat/include',
'<!(echo %LODEPSDIR%)/protozero/include',
],
"libraries": [
"Ws2_32.lib",
"<!(echo %LODEPSDIR%)/expat/lib/libexpat.lib",
"<!(echo %LODEPSDIR%)/zlib/lib/zlibwapi.lib",
"<!(echo %LODEPSDIR%)/bzip2/lib/libbz2.lib"
],
"defines": [
"NOMINMAX"
]
},{
"libraries": [
"-lexpat",
"-lz",
"-lbz2"
]
}
]
],
"xcode_settings": {
"GCC_ENABLE_CPP_RTTI": "YES",
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
'CLANG_CXX_LIBRARY': 'libc++',
"CLANG_CXX_LANGUAGE_STANDARD":"c++11",
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
"MACOSX_DEPLOYMENT_TARGET":"10.9"
},
"cflags_cc!": ["-fno-rtti", "-fno-exceptions"],
"cflags_cc" : ["-std=c++11", "-Wno-return-type", "-Wno-stringop-overflow"],
},
{
"target_name": "action_after_build",
"type": "none",
"dependencies": [ "<(module_name)" ],
"copies": [
{
"files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
"destination": "<(module_path)"
}
]
}
]
}