Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sage
Path: blob/develop/subprojects/packagefiles/maxima/meson.build
6378 views
1
project('maxima', 'c',
2
meson_version : '>=0.63.0',
3
)
4
5
mod = import('unstable-external_project')
6
7
cc = meson.get_compiler('c')
8
ecl = find_program('ecl', required: false)
9
dependencies = []
10
if ecl.found()
11
ecl = ecl.full_path()
12
else
13
ecl_proj = subproject('ecl')
14
ecl = ecl_proj.get_variable('ecl_dep').get_variable('ecl_bin')
15
# It is not possible to have an external project directly depend on another external project (actually on an InternalDependency)
16
# So we need to create a dummy library as the middleman
17
ec_lib = library('ecl_lib',
18
dependencies : [ecl_proj.get_variable('ecl_dep').partial_dependency(sources : true)],
19
)
20
dependencies += [ec_lib]
21
endif
22
proj = mod.add_project('configure',
23
configure_options : [
24
'--enable-ecl',
25
'--with-ecl=' + ecl,
26
'--disable-build-docs',
27
# Maxima configure checks for git and, if it finds it, uses
28
# versions information from the repo. See #15529. We disable this.
29
'git_found=false',
30
],
31
depends: dependencies,
32
)
33
34
maxima_fas_dep = proj.dependency('maxima').partial_dependency(sources : true)
35
maxima_dep = declare_dependency(
36
variables: {
37
'MAXIMA_FAS': meson.current_build_dir() + '/build/src/binary-ecl/maxima.fas',
38
'MAXIMA_SHARE': meson.current_build_dir() + '/dist/usr/local/share/maxima/5.47.0/share',
39
'MAXIMA_BIN': meson.current_build_dir() + '/dist/usr/local/bin/maxima',
40
},
41
dependencies: maxima_fas_dep
42
)
43
meson.override_dependency('maxima', maxima_dep)
44
45