Path: blob/develop/subprojects/packagefiles/ecl/src/meson.build
6381 views
libpath = meson.current_build_dir() + '/dist/usr/local/lib64'1ecldir = meson.current_build_dir() + '/dist/usr/local/lib64/ecl-24.5.10'2include_path = meson.current_build_dir() + '/build'34proj = mod.add_project('configure',5configure_options : [6# ecl embeds the include path, so we have to set it to the *installed* path7# workaround for https://gitlab.com/embeddable-common-lisp/ecl/-/issues/7808'--includedir=' + include_path,9'--enable-manual=no',10'--enable-unicode=yes',11'--with-defsystem',12],13env: {14'LDFLAGS': '-Wl,-rpath,' + libpath + ' -L' + libpath,15# Workaround for https://gitlab.com/embeddable-common-lisp/ecl/-/issues/77916# Need to tell ECL where to find the fas files after installation17'CFLAGS': '-DECLDIR=\"' + ecldir + '\"',18}19)2021ecl_dep = proj.dependency('ecl')22# Ugly workaround to include the rpath in the dependency23# https://github.com/mesonbuild/meson/issues/1297024ecl_rpath_dep = declare_dependency(25link_args: '-Wl,-rpath,' + libpath + ' -L' + libpath,26include_directories: [include_directories('build')],27)28ecl_dep = declare_dependency(29dependencies : [ecl_dep, ecl_rpath_dep],30variables: {31'ecl_bin' : meson.current_build_dir() + '/dist/usr/local/bin/ecl',32'ecldir' : ecldir,33},34)35meson.override_dependency('ecl', ecl_dep)363738