Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7539142
meson.build
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
meson.build
View Options
project('ant', 'c', default_options: [
'optimization=2',
'c_std=c23'
])
include = include_directories('include')
module_files = run_command('sh', '-c',
'cd "$MESON_SOURCE_ROOT" && ls src/modules/*.c',
check: true
).stdout().strip().split()
sources = files(
'src/main.c',
'src/ant.c',
'src/runtime.c',
) + files(module_files)
# system dependencies
libsodium_dep = dependency('libsodium', required: true)
# subprojects
uuidv7_proj = subproject('uuidv7')
mongoose_proj = subproject('mongoose')
argtable3_proj = subproject('argtable3')
uuidv7_dep = uuidv7_proj.get_variable('uuidv7_dep')
mongoose_dep = mongoose_proj.get_variable('mongoose_dep')
argtable3_dep = argtable3_proj.get_variable('argtable3_dep')
git = find_program('git', required: false)
if git.found()
git_commit = run_command(git, 'rev-parse', '--short=10', 'HEAD', check: false)
if git_commit.returncode() == 0
git_hash = git_commit.stdout().strip()
else
git_hash = 'unknown'
endif
else
git_hash = 'unknown'
endif
build_date = run_command('date', '+%Y-%m-%d', check: true).stdout().strip()
version_conf = configuration_data()
version_conf.set('ANT_VERSION', '0.0.3')
version_conf.set('ANT_GIT_HASH', git_hash)
version_conf.set('ANT_BUILD_DATE', build_date)
config_h = configure_file(
input: 'include/config.h.in',
output: 'config.h',
configuration: version_conf
)
build_include = include_directories('.')
add_project_arguments('-D JS_DUMP', language: 'c')
executable(
'ant',
sources,
include_directories: [include, build_include],
dependencies: [
uuidv7_dep,
mongoose_dep,
argtable3_dep,
libsodium_dep
]
)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jun 17, 1:14 PM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
570356
Default Alt Text
meson.build (1 KB)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment