# A c8ui app. Copy this folder and rename the app id here, in
# src/main.c (APP_ID) and in data/'s file names.
project(
'c8-template',
'c',
version: '0.1.0',
license: 'CC0-1.0',
meson_version: '>=1.3.0',
default_options: ['c_std=c11', 'warning_level=2', 'buildtype=debugoptimized'],
)
app_id = 'org.cont8nuum.Template'
add_project_arguments('-D_GNU_SOURCE', '-Wno-unused-parameter',
'-Wno-missing-field-initializers', language: 'c')
executable('c8-template', 'src/main.c',
dependencies: [dependency('c8ui'), dependency('glib-2.0')],
install: true,
)
# Start lists it; MimeType= in it makes it an app for those files
desktop = configure_file(
input: 'data' / app_id + '.desktop.in',
output: app_id + '.desktop',
configuration: {'bindir': get_option('prefix') / get_option('bindir')},
)
install_data(desktop, install_dir: get_option('datadir') / 'applications')
install_data('data' / app_id + '.svg',
install_dir: get_option('datadir') / 'icons/hicolor/scalable/apps')
# So xdg-open, Files and every other app see the MimeType= right away
gnome = import('gnome')
gnome.post_install(update_desktop_database: true)