Reorganization, replacing CPU debayering entirely
This commit is contained in:
90
meson.build
90
meson.build
@@ -1,78 +1,76 @@
|
||||
project('megapixels', 'c')
|
||||
|
||||
gnome = import('gnome')
|
||||
gtkdep = dependency('gtk4')
|
||||
tiff = dependency('libtiff-4')
|
||||
zbar = dependency('zbar')
|
||||
threads = dependency('threads')
|
||||
gl = dependency('gl')
|
||||
egl = dependency('egl')
|
||||
# gl = dependency('gl')
|
||||
epoxy = dependency('epoxy')
|
||||
|
||||
cc = meson.get_compiler('c')
|
||||
libm = cc.find_library('m', required: false)
|
||||
|
||||
resources = gnome.compile_resources('megapixels-resources', 'org.postmarketos.Megapixels.gresource.xml')
|
||||
subdir('data')
|
||||
|
||||
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 )
|
||||
configuration: conf)
|
||||
|
||||
# Define DEBUG for debug builds only (debugoptimized is not included on this one)
|
||||
if get_option('buildtype') == 'debug'
|
||||
add_global_arguments('-DDEBUG', language: 'c')
|
||||
endif
|
||||
|
||||
# Workaround for libtiff having ABI changes but not changing the internal version number
|
||||
# Workaround for libtiff having ABI changes but not changing the internal
|
||||
# version number
|
||||
if get_option('tiffcfapattern')
|
||||
add_global_arguments('-DLIBTIFF_CFA_PATTERN', language: 'c')
|
||||
endif
|
||||
|
||||
executable('megapixels',
|
||||
'main.c',
|
||||
'ini.c',
|
||||
'quickpreview.c',
|
||||
'gl_quickpreview.c',
|
||||
'gl_utils.c',
|
||||
'camera.c',
|
||||
'device.c',
|
||||
'pipeline.c',
|
||||
'camera_config.c',
|
||||
'io_pipeline.c',
|
||||
'process_pipeline.c',
|
||||
'zbar_pipeline.c',
|
||||
'matrix.c',
|
||||
resources,
|
||||
dependencies : [gtkdep, libm, tiff, zbar, threads, gl, egl],
|
||||
install : true,
|
||||
link_args : '-Wl,-ldl')
|
||||
'src/main.c',
|
||||
'src/ini.c',
|
||||
'src/gles2_debayer.c',
|
||||
'src/gl_util.c',
|
||||
'src/camera.c',
|
||||
'src/device.c',
|
||||
'src/pipeline.c',
|
||||
'src/camera_config.c',
|
||||
'src/io_pipeline.c',
|
||||
'src/process_pipeline.c',
|
||||
'src/zbar_pipeline.c',
|
||||
'src/matrix.c',
|
||||
resources,
|
||||
include_directories: 'src/',
|
||||
dependencies: [gtkdep, libm, tiff, zbar, threads, epoxy],
|
||||
install: true,
|
||||
link_args: '-Wl,-ldl')
|
||||
|
||||
install_data(['data/org.postmarketos.Megapixels.desktop'],
|
||||
install_dir : get_option('datadir') / 'applications')
|
||||
|
||||
install_data(['data/org.postmarketos.Megapixels.metainfo.xml'],
|
||||
install_dir : get_option('datadir') / 'metainfo')
|
||||
|
||||
install_data('data/org.postmarketos.Megapixels.svg',
|
||||
install_dir: join_paths(get_option('datadir'), 'icons/hicolor/scalable/apps')
|
||||
)
|
||||
|
||||
install_data([
|
||||
'config/pine64,pinephone-1.0.ini',
|
||||
'config/pine64,pinephone-1.1.ini',
|
||||
'config/pine64,pinephone-1.2.ini',
|
||||
'config/pine64,pinetab.ini',
|
||||
install_data(
|
||||
[
|
||||
'config/pine64,pinephone-1.0.ini',
|
||||
'config/pine64,pinephone-1.1.ini',
|
||||
'config/pine64,pinephone-1.2.ini',
|
||||
'config/pine64,pinetab.ini',
|
||||
],
|
||||
install_dir : get_option('datadir') / 'megapixels/config/')
|
||||
|
||||
install_data(['postprocess.sh'],
|
||||
install_dir : get_option('datadir') / 'megapixels/',
|
||||
install_mode: 'rwxr-xr-x')
|
||||
install_dir: get_option('datadir') / 'megapixels/config/')
|
||||
|
||||
# Tools
|
||||
executable('megapixels-list-devices', 'tools/list_devices.c', 'device.c', dependencies: [gtkdep], install: true)
|
||||
executable('megapixels-camera-test', 'tools/camera_test.c', 'camera.c', 'device.c', dependencies: [gtkdep], install: true)
|
||||
executable('megapixels-list-devices',
|
||||
'tools/list_devices.c',
|
||||
'src/device.c',
|
||||
include_directories: 'src/',
|
||||
dependencies: [gtkdep],
|
||||
install: true)
|
||||
|
||||
test_quickpreview = executable('test_quickpreview', 'tests/test_quickpreview.c', 'quickpreview.c', 'camera.c', dependencies: [gtkdep])
|
||||
test('quickpreview', test_quickpreview)
|
||||
executable('megapixels-camera-test',
|
||||
'tools/camera_test.c',
|
||||
'src/camera.c',
|
||||
'src/device.c',
|
||||
include_directories: 'src/',
|
||||
dependencies: [gtkdep],
|
||||
install: true)
|
||||
|
Reference in New Issue
Block a user