-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathmeson.build
50 lines (37 loc) · 1.78 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
46
47
48
49
project('gsl-shell', ['cpp', 'c'], version : '2.3.7', default_options : ['cpp_std=c++11', 'c_std=gnu11'])
gsl_shell_defines = [
# '-DDISABLE_GAMMA_CORR',
# '-DDISABLE_SUBPIXEL_AA',
# '-DUSE_READLINE',
]
conf_data = configuration_data()
conf_data.set('version', meson.project_version())
conf_data.set('copyright', 'Copyright (C) 2009-2022 Francesco Abbate')
if host_machine.system() == 'darwin'
gsl_shell_defines += '-DDARWIN_MACOSX'
endif
gsl_shell_link_args = []
cc = meson.get_compiler('c')
if cc.get_id() == 'gcc' and get_option('buildtype') == 'release'
gsl_shell_link_args += ['-static-libgcc', '-static-libstdc++']
endif
gsl_shell_include = include_directories('include', 'src/gdt', 'src/agg-plot', 'src/lua-gsl')
cpp_utils_include = include_directories('src/cpp-utils')
threads_dep = dependency('threads')
freetype_dep = dependency('freetype2')
libagg_dep = dependency('libagg', fallback: ['libagg', 'libagg_dep'])
fox_project = subproject('fox', default_options: ['apps=false', 'default_library=static', 'opengl=false'])
fox_dep = fox_project.get_variable('libfox_dep')
luajit_proj = subproject('luajit', default_options: ['default_library=static', 'app=false', 'portable=true', 'shortfnsyn=true'])
luajit_dep = luajit_proj.get_variable('lua_dep')
libgsl_options = ['default_library=static', 'blas=' + get_option('blas')]
foreach module_name : ['siman', 'wavelet', 'sparse', 'ode', 'monte', 'integ', 'min', 'fit']
libgsl_options += module_name + '=false'
endforeach
libgsl_proj = subproject('gsl', default_options: libgsl_options)
libgsl_dep = libgsl_proj.get_variable('libgsl_dep').as_link_whole()
gsl_shell_bindir = 'bin'
gsl_shell_datadir = 'share/gsl-shell'
install_subdir('data', strip_directory : true, install_dir : gsl_shell_datadir)
subdir('include')
subdir('src')