Initial commit
This commit is contained in:
32
meson.build
Normal file
32
meson.build
Normal file
@@ -0,0 +1,32 @@
|
||||
project('template', 'c',
|
||||
version : '0.1',
|
||||
default_options : ['warning_level=3', 'c_std=c11'])
|
||||
|
||||
src = subproject('evol').get_variable('evolmod_subdir') + '/meson.build'
|
||||
dst = meson.current_source_dir() + '/import/'
|
||||
run_command( 'python3', meson.source_root() + '/subprojects/evol/buildscripts/copy.py', src, dst)
|
||||
subdir('import')
|
||||
|
||||
mod_src = [
|
||||
'src/template.c',
|
||||
]
|
||||
|
||||
mod_incdir = [
|
||||
'..',
|
||||
]
|
||||
|
||||
mod_deps = [
|
||||
evmod_deps,
|
||||
]
|
||||
|
||||
module = shared_module(
|
||||
'template', mod_src,
|
||||
include_directories: mod_incdir,
|
||||
dependencies: mod_deps,
|
||||
)
|
||||
|
||||
mod_dep = declare_dependency(
|
||||
include_directories: mod_incdir,
|
||||
)
|
||||
|
||||
meson.override_dependency('evmod_template', mod_dep)
|
||||
Reference in New Issue
Block a user