orotool/src/meson.build

67 lines
1.6 KiB
Meson
Raw Normal View History

2020-06-20 00:15:24 +02:00
restc_cpp_dep = dependency('restc-cpp', version: '>=0.1.1',
fallback: ['restc-cpp', 'restc_cpp_dep'],
default_options: [
'restc_cpp_with_unit_tests=false',
2020-08-09 22:55:25 +01:00
'restc_cpp_log_with_boost_log=false',
2020-06-20 00:15:24 +02:00
],
)
2020-06-23 10:58:19 +02:00
sqlitecpp_dep = dependency('sqlitecpp', version: '>=3.0.0',
fallback: ['SQLiteCpp', 'sqlitecpp_dep'],
)
ev_dep = dependency('libev', version: '>=4.31')
threads_dep = dependency('threads')
boost_dep = dependency('boost')
base_url = get_option('base_url').strip()
if not base_url.endswith('/')
base_url = base_url + '/'
endif
conf = configuration_data()
conf.set_quoted('BASE_URL', base_url)
conf.set_quoted('DATABASE', get_option('database_file'))
2020-08-10 12:44:54 +01:00
conf.set_quoted('CONFIG_FILE_PATH', get_option('prefix') / get_option('sysconfdir') / meson.project_name() + '.conf')
project_config_file = configure_file(
input: 'config.hpp.in',
output: meson.project_name() + '_config.hpp',
configuration: conf,
)
2020-08-10 02:35:27 +01:00
gnulib_conf = configuration_data()
gnulib_conf.set('_GL_ATTRIBUTE_CONST', '__attribute__ ((__const__))')
configure_file(output : 'config.h', configuration : gnulib_conf)
lib_deps = [
restc_cpp_dep,
sqlitecpp_dep,
ev_dep,
threads_dep,
boost_dep,
]
2020-06-20 00:15:24 +02:00
executable(meson.project_name(),
'main.cpp',
'ini_file.cpp',
2020-06-20 01:27:47 +02:00
'oro/datatypes.cpp',
'oro/api.cpp',
'oro/dateconv.cpp',
2020-06-22 20:53:56 +02:00
'oro/items.cpp',
2020-06-23 10:19:02 +02:00
'oro/shops.cpp',
'evloop.cpp',
'eventia/eventia.cpp',
'eventia/timer.cpp',
2020-08-09 20:47:04 +01:00
'timer_items.cpp',
2020-08-10 02:34:09 +01:00
'timer_icons.cpp',
'timer_base.cpp',
2020-08-10 02:34:09 +01:00
'oro/originsdb.cpp',
2020-08-10 02:35:27 +01:00
'gnulib/lib/base64.c',
2020-08-10 02:47:55 +01:00
'base64.cpp',
project_config_file,
2020-06-20 00:15:24 +02:00
install: true,
dependencies: lib_deps,
2020-06-20 00:15:24 +02:00
include_directories: date_incdir,
cpp_args: ['-DEV_USE_STDEXCEPT'],
2020-06-20 00:15:24 +02:00
)