-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
46 lines (32 loc) · 1.06 KB
/
meson.build
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
# basing this on of https://mesonbuild.com/IndepthTutorial
project('chump', ['c', 'cpp'],
version : '0.0.9',
default_options : ['cpp_std=c++17', 'default_library=static'],
license : '?')
add_global_arguments(language : ['c', 'cpp'])
if host_machine.system() == 'darwin'
# Set minimum macOS version only for macOS
add_project_arguments('-mmacosx-version-min=12', language : 'c')
add_project_arguments('-mmacosx-version-min=12', language : 'cpp')
endif
inc = [include_directories('include')]
subdir('include')
subdir('src')
subdir('chump-cli')
subdir('tests')
subdir('scripts')
fs = import('fs')
if build_machine.system() == 'windows'
package_dir = fs.expanduser('~/Documents/ChucK/packages')
else
package_dir = fs.expanduser('~/.chuck/packages')
endif
install_data('data/manifest.json',
install_dir : package_dir,
install_mode: 'rwxrwxrwx',
)
# Expose data for tests at local level in build dir
message('copying test data...')
fs.copyfile('tests/data/test-package-list.json')
# Chumpinate options
subdir('chumpinate')