geostat/meson.build

30 wiersze
1.4 KiB
Meson
Czysty Zwykły widok Historia

2019-09-08 16:42:10 +00:00
project('geostat', 'cpp', default_options : ['cpp_std=c++2a'])
curl_dep = dependency('libcurl')
json_dep = dependency('nlohmann_json')
sqlite_dep = dependency('sqlite3')
2019-09-08 16:42:10 +00:00
#tinyxml_dep = dependency('tinyxml2')
magick_dep = dependency('Magick++', required : false)
if not magick_dep.found()
magick_dep = dependency('GraphicsMagick++', required : false)
add_global_arguments('-Dgraphicsmagick', language : 'cpp')
2019-09-08 16:42:10 +00:00
endif
if not magick_dep.found()
error('ImageMagick++ or GraphicsMagick++ not found.')
endif
link = ['-lgpx', '-lheatmap']
src = ['geostat.cpp', 'okapi.cpp', 'cache.cpp', 'debug.cpp', 'heat.cpp', 'ocdb.cpp', 'common.cpp', 'region.cpp']
src_cli = ['geostat_cli.cpp', 'okapi.cpp', 'gpx.cpp', 'cache.cpp', 'debug.cpp', 'heat.cpp', 'ocdb.cpp', 'common.cpp']
src_db = ['geodb.cpp', 'debug.cpp', 'ocdb.cpp', 'okapi.cpp', 'cache.cpp', 'common.cpp']
2019-09-08 16:42:10 +00:00
executable('geostat', src, dependencies : [curl_dep, json_dep, magick_dep, sqlite_dep], link_args: link, install: true)
executable('geostat_cli', src_cli, dependencies : [curl_dep, json_dep, magick_dep, sqlite_dep], link_args: link, install: true)
executable('geodb', src_db, dependencies : [sqlite_dep, json_dep, curl_dep], install: true)
2019-09-08 16:42:10 +00:00
configure_file(input: 'rating-star.png', output: '@PLAINNAME@', copy: true, install: true, install_dir: '.')
configure_file(input: 'geo.css', output: '@PLAINNAME@', copy: true, install: true, install_dir: '.')
subdir('maps')
subdir('geojson')