2020-09-02 23:48:47 +00:00
|
|
|
project('megapixels', 'c')
|
2020-09-18 14:10:15 +00:00
|
|
|
gnome = import('gnome')
|
2020-01-23 22:04:36 +00:00
|
|
|
gtkdep = dependency('gtk+-3.0')
|
2020-09-26 21:30:15 +00:00
|
|
|
tiff = dependency('libtiff-4')
|
2020-09-08 12:35:34 +00:00
|
|
|
|
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
libm = cc.find_library('m', required: false)
|
|
|
|
|
2020-09-18 14:10:15 +00:00
|
|
|
resources = gnome.compile_resources('megapixels-resources', 'org.postmarketos.Megapixels.gresource.xml')
|
2020-01-24 00:03:47 +00:00
|
|
|
|
2020-09-21 23:14:15 +00:00
|
|
|
conf = configuration_data()
|
|
|
|
conf.set_quoted('DATADIR', join_paths(get_option('prefix'), get_option('datadir')))
|
|
|
|
conf.set_quoted('SYSCONFDIR', get_option('sysconfdir'))
|
|
|
|
configure_file(
|
|
|
|
output: 'config.h',
|
|
|
|
configuration: conf )
|
|
|
|
|
2020-09-26 21:30:15 +00:00
|
|
|
executable('megapixels', 'main.c', 'ini.c', 'quickdebayer.c', resources, dependencies : [gtkdep, libm, tiff], install : true)
|
2020-09-03 15:42:03 +00:00
|
|
|
|
|
|
|
install_data(['org.postmarketos.Megapixels.desktop'],
|
|
|
|
install_dir : get_option('datadir') / 'applications')
|
2020-09-03 16:11:15 +00:00
|
|
|
|
|
|
|
install_data('org.postmarketos.Megapixels.svg',
|
|
|
|
install_dir: join_paths(get_option('datadir'), 'icons/hicolor/scalable/apps')
|
|
|
|
)
|
2020-09-18 15:13:46 +00:00
|
|
|
|
|
|
|
install_data([
|
|
|
|
'config/pine64,pinephone-1.0.ini',
|
|
|
|
'config/pine64,pinephone-1.1.ini',
|
|
|
|
'config/pine64,pinephone-1.2.ini',
|
2020-09-23 16:43:08 +00:00
|
|
|
'config/pine64,pinetab.ini',
|
2020-09-18 15:13:46 +00:00
|
|
|
],
|
|
|
|
install_dir : get_option('datadir') / 'megapixels/config/')
|