49 lines
1.1 KiB
Meson
49 lines
1.1 KiB
Meson
project('me.sergiotarxz.recuento', 'vala')
|
|
compiler = meson.get_compiler('c')
|
|
ws = '/'
|
|
|
|
if compiler.has_header('windows.h')
|
|
ws = '\\\\'
|
|
endif
|
|
|
|
vapidir = meson.project_source_root() / 'vapi'
|
|
recuentodeps = [
|
|
dependency('libadwaita-1'),
|
|
dependency('glib-2.0'),
|
|
dependency('gtk4'),
|
|
dependency('gio-2.0'),
|
|
dependency('sqlite3'),
|
|
meson.get_compiler('vala').find_library('config', dirs : vapidir),
|
|
]
|
|
|
|
sources = [
|
|
'src/main.vala',
|
|
]
|
|
|
|
datadir_unix = get_option('prefix') + '/' + get_option('datadir')
|
|
datadir = get_option('prefix') + ws + get_option('datadir')
|
|
|
|
config_h = configure_file (
|
|
output : 'config.h',
|
|
configuration : {
|
|
'DATADIR' : f'"@datadir@"',
|
|
'WS': f'"@ws@"',
|
|
},
|
|
)
|
|
|
|
preloaded_images_files = [ 'psoe.jpg', 'pp.jpg', 'vox.jpg' ]
|
|
|
|
foreach i : preloaded_images_files
|
|
install_data(
|
|
'resources/preloaded_images' / i,
|
|
install_dir: datadir_unix / 'recuento/preloaded_images/',
|
|
)
|
|
endforeach
|
|
|
|
executable('recuento',
|
|
sources,
|
|
dependencies : recuentodeps,
|
|
install : true,
|
|
win_subsystem: 'windows',
|
|
)
|