-project('nageru', 'cpp', default_options: ['buildtype=debugoptimized'], version: '1.8.1')
+project('nageru', 'cpp', default_options: ['buildtype=debugoptimized'], version: '1.8.6')
cxx = meson.get_compiler('cpp')
qt5 = import('qt5')
# Make the Nageru version available as a #define.
add_project_arguments('-DNAGERU_VERSION="' + meson.project_version() + '"', language: 'cpp')
+# Make the prefix (e.g. /usr/local) available as a #define.
+add_project_arguments('-DPREFIX="' + get_option('prefix') + '"', language: 'cpp')
+
# This needs to be done before declaring any build targets.
if get_option('cef_dir') != ''
add_project_arguments('-DHAVE_CEF=1', language: 'cpp')
nageru_install_rpath = '$ORIGIN/'
endif
- cefdep = cxx.find_library('cef')
+ cefdep = cxx.find_library('cef', dirs: cef_lib_dir)
nageru_deps += cefdep
# CEF wrapper library; not built as part of the CEF binary distribution,
nageru_deps += cefdlldep
else
cmake = find_program('cmake')
- cef_compile_script = find_program('scripts/compile_cef_dll_wrapper.sh')
+ cef_compile_script = find_program('nageru/scripts/compile_cef_dll_wrapper.sh')
cef_dll_target = custom_target('libcef_dll_wrapper',
input: join_paths(cef_dir, 'libcef_dll/CMakeLists.txt'),
executable('benchmark_audio_mixer', 'nageru/benchmark_audio_mixer.cpp', dependencies: nageru_deps, include_directories: nageru_include_dirs, link_with: [audio, aux])
# These are needed for a default run.
-data_files = ['nageru/theme.lua', 'nageru/simple.lua', 'nageru/bg.jpeg', 'nageru/akai_midimix.midimapping']
+data_files = ['nageru/theme.lua', 'nageru/simple.lua', 'nageru/bg.jpeg', 'nageru/akai_midimix.midimapping', 'futatabi/behringer_cmd_pl1.midimapping']
install_data(data_files, install_dir: join_paths(get_option('prefix'), 'share/nageru'))
foreach file : data_files
run_command('ln', '-s', join_paths(meson.current_source_dir(), file), meson.current_build_dir())
# Preprocess Qt as needed.
moc_files = qt5.preprocess(
- moc_headers: ['futatabi/mainwindow.h', 'futatabi/jpeg_frame_view.h', 'futatabi/clip_list.h'],
- ui_files: ['futatabi/mainwindow.ui'],
+ moc_headers: ['futatabi/mainwindow.h', 'futatabi/jpeg_frame_view.h', 'futatabi/clip_list.h', 'futatabi/midi_mapping_dialog.h'],
+ ui_files: ['futatabi/mainwindow.ui', 'futatabi/midi_mapping.ui'],
+ qresources: ['futatabi/mainwindow.qrc'],
dependencies: qt5deps)
# Flow objects.
futatabi_srcs += ['futatabi/main.cpp', 'futatabi/player.cpp', 'futatabi/video_stream.cpp', 'futatabi/chroma_subsampler.cpp']
futatabi_srcs += ['futatabi/vaapi_jpeg_decoder.cpp', 'futatabi/db.cpp', 'futatabi/ycbcr_converter.cpp', 'futatabi/flags.cpp']
futatabi_srcs += ['futatabi/mainwindow.cpp', 'futatabi/jpeg_frame_view.cpp', 'futatabi/clip_list.cpp', 'futatabi/frame_on_disk.cpp']
-futatabi_srcs += ['futatabi/export.cpp', 'futatabi/midi_mapper.cpp']
+futatabi_srcs += ['futatabi/export.cpp', 'futatabi/midi_mapper.cpp', 'futatabi/midi_mapping_dialog.cpp']
futatabi_srcs += moc_files
futatabi_srcs += proto_generated