forked from geo-data/node-mapserv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
92 lines (92 loc) · 3.44 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
{
"targets": [
{
"target_name": "bindings",
"sources": [
"src/node-mapserv.cpp",
"src/map.cpp",
"src/node-mapservutil.c"
],
"include_dirs": [
"<!@(python tools/config.py --include)"
],
"conditions": [
['OS=="linux"', {
'ldflags': [
'-Wl,--no-as-needed,-lmapserver',
'<!@(python tools/config.py --ldflags)'
],
'libraries': [
'<!@(python tools/config.py --libraries)'
],
'cflags': [
'<!@(python tools/config.py --cflags)',
'-Wall'
],
}],
['OS=="win"', {
"variables": {
'ms_buildkit%': 'Z:/PATH/TO/MAPSERVER_BUILDKIT',
'ms_root%': 'Z:/PATH/TO/MAPSERVER'
},
"include_dirs" : [
"<(ms_root)/",
"<(ms_buildkit)/include/"
],
"libraries" : [
'<(ms_root)/mapserver_i.lib',
'<(ms_buildkit)/lib/gdal_i.lib',
'<(ms_buildkit)/lib/agg.lib',
'<(ms_buildkit)/lib/cairo.lib',
'<(ms_buildkit)/lib/cfitsio.lib',
'<(ms_buildkit)/lib/fontconfig.lib',
'<(ms_buildkit)/lib/freetype239.lib',
'<(ms_buildkit)/lib/freexl.lib',
'<(ms_buildkit)/lib/freexl_i.lib',
'<(ms_buildkit)/lib/fribidi.lib',
'<(ms_buildkit)/lib/ftgl.lib',
'<(ms_buildkit)/lib/gd.lib',
'<(ms_buildkit)/lib/gdal_i.lib',
'<(ms_buildkit)/lib/geos_c_i.lib',
'<(ms_buildkit)/lib/giflib.lib',
'<(ms_buildkit)/lib/hdf5dll.lib',
'<(ms_buildkit)/lib/iconv.lib',
'<(ms_buildkit)/lib/libcurl_imp.lib',
'<(ms_buildkit)/lib/libeay32.lib',
'<(ms_buildkit)/lib/libecwj2.lib',
'<(ms_buildkit)/lib/libexpat.lib',
'<(ms_buildkit)/lib/libfcgi.lib',
'<(ms_buildkit)/lib/libjbig.lib',
'<(ms_buildkit)/lib/libjpeg.lib',
'<(ms_buildkit)/lib/libming.lib',
'<(ms_buildkit)/lib/libmysql.lib',
'<(ms_buildkit)/lib/libpng.lib',
'<(ms_buildkit)/lib/libpq.lib',
'<(ms_buildkit)/lib/libpqdll.lib',
'<(ms_buildkit)/lib/libtiff_i.lib',
'<(ms_buildkit)/lib/libxml2.lib',
'<(ms_buildkit)/lib/minizip.lib',
'<(ms_buildkit)/lib/netcdf.lib',
'<(ms_buildkit)/lib/openjp2.lib',
'<(ms_buildkit)/lib/openjpeg.lib',
'<(ms_buildkit)/lib/openjpegstatic.lib',
'<(ms_buildkit)/lib/pdflib.lib',
'<(ms_buildkit)/lib/pixman-1.lib',
'<(ms_buildkit)/lib/poppler.lib',
'<(ms_buildkit)/lib/proj.lib',
'<(ms_buildkit)/lib/proj_i.lib',
'<(ms_buildkit)/lib/spatialite.lib',
'<(ms_buildkit)/lib/spatialite_i.lib',
'<(ms_buildkit)/lib/sqlite3_i.lib',
'<(ms_buildkit)/lib/ssleay32.lib',
'<(ms_buildkit)/lib/vld.lib',
'<(ms_buildkit)/lib/xerces-c_2.lib',
'<(ms_buildkit)/lib/zdll.lib',
'<(ms_buildkit)/lib/zlib.lib',
'<(ms_buildkit)/lib/proj.lib'
]
}],
]
}
]
}