Files
GridFire/assets/static/const/meson.build
Emily Boudreaux 4b2f9a0097 feat(assets): setup assets for resource manager
assets are broken into static (compiled into the binary) and dynamic (handled by the resource manager). All static assets should define a meson.build, all dynamic assets must have handlers written in src/resource/resourceManager and resourceManagerTypes

BREAKING CHANGE:
2025-03-20 14:24:20 -04:00

17 lines
557 B
Meson

data_file = files('const.dat')
command_file = files('format.sh')
output_file = meson.current_build_dir() + '/embedded_constants.h'
embedded_constants_h = custom_target('embed_constants',
input: data_file,
output: 'embedded_constants.h',
command: ['sh', '-c', command_file[0].full_path()+' @INPUT@ ' + output_file, '@INPUT@', '@OUTPUT@']
)
# Ensure the generated header is included
const_data_header = include_directories('.')
const_data_dep = declare_dependency(
include_directories: const_data_header,
sources: embedded_constants_h
)