2017-11-15 20:40:10 +01:00
|
|
|
respack = find_program('../../tools/respack.py')
|
2017-11-15 17:25:11 +01:00
|
|
|
|
|
|
|
resrc = [
|
|
|
|
custom_target('bitmap.{cpp,h}',
|
2019-01-30 22:58:31 +01:00
|
|
|
command: [respack, '@INPUT@', '@OUTPUT@'],
|
|
|
|
input: files('../bitmaps/manifest.respack'),
|
|
|
|
output: ['bitmap.cpp', 'bitmap.h'])
|
2017-11-15 17:25:11 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
conf_platform_json = configure_file(input: 'default_config_platform.json.in',
|
2019-01-30 22:58:31 +01:00
|
|
|
output: '@BASENAME@',
|
|
|
|
configuration: conf_platform)
|
2017-11-15 17:25:11 +01:00
|
|
|
|
|
|
|
if host_machine.system() == 'darwin'
|
|
|
|
resrc += custom_target('default_config.{cpp,h}',
|
2019-01-30 22:58:31 +01:00
|
|
|
command: [respack, '@INPUT0@', '@OUTPUT@'],
|
|
|
|
input: [files('manifest_osx.respack'), conf_platform_json],
|
|
|
|
output: ['default_config.cpp', 'default_config.h'])
|
2017-11-15 17:25:11 +01:00
|
|
|
else
|
|
|
|
resrc += custom_target('default_config.{cpp,h}',
|
2019-01-30 22:58:31 +01:00
|
|
|
command: [respack, '@INPUT0@', '@OUTPUT@'],
|
|
|
|
input: [files('manifest.respack'), conf_platform_json],
|
|
|
|
output: ['default_config.cpp', 'default_config.h'])
|
2017-11-15 17:25:11 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
libresrc_inc = include_directories('.')
|
2019-01-30 22:58:31 +01:00
|
|
|
libresrc = static_library('resrc', 'libresrc.cpp', resrc, dependencies: deps)
|