forked from phako/garmintools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
22 lines (16 loc) · 673 Bytes
/
meson.build
File metadata and controls
22 lines (16 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
project('garmintools', ['c'], version : '0.13.0', default_options : ['c_std=gnu11'])
cc = meson.get_compiler('c')
config = configuration_data()
config.set_quoted('GARMINTOOLS_VERSION_STRING', meson.project_version())
if host_machine.endian() == 'big'
config.set('WORDS_BIGENDIAN', '1')
endif
usb = dependency('libusb-1.0')
math = cc.find_library('m', required: false)
# generate config.h include header
configure_file(output: 'config.h', configuration: config)
config = declare_dependency(include_directories : include_directories('.'))
subdir('src')
subdir('python')
subdir('doc')
meson.add_install_script('build-aux/meson/postinstall.py', get_option('bindir'))