mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 17:27:05 +09:00
73 lines
2.0 KiB
Meson
73 lines
2.0 KiB
Meson
project('gsr-ui', ['c', 'cpp'], version : '1.0.0', default_options : ['warning_level=2', 'cpp_std=c++17'], subproject_dir : 'depends')
|
|
|
|
if get_option('buildtype') == 'debug'
|
|
add_project_arguments('-g3', language : ['c', 'cpp'])
|
|
elif get_option('buildtype') == 'release'
|
|
add_project_arguments('-DNDEBUG', language : ['c', 'cpp'])
|
|
endif
|
|
|
|
src = [
|
|
'src/window_texture.c',
|
|
'src/Theme.cpp',
|
|
'src/gui/Widget.cpp',
|
|
'src/gui/ScrollablePage.cpp',
|
|
'src/gui/Button.cpp',
|
|
'src/gui/RadioButton.cpp',
|
|
'src/gui/Entry.cpp',
|
|
'src/gui/CheckBox.cpp',
|
|
'src/gui/ComboBox.cpp',
|
|
'src/gui/Page.cpp',
|
|
'src/gui/StaticPage.cpp',
|
|
'src/gui/PageStack.cpp',
|
|
'src/gui/List.cpp',
|
|
'src/gui/Utils.cpp',
|
|
'src/gui/DropdownButton.cpp',
|
|
'src/gui/Label.cpp',
|
|
'src/gui/CustomRendererWidget.cpp',
|
|
'src/gui/FileChooser.cpp',
|
|
'src/gui/SettingsPage.cpp',
|
|
'src/gui/GsrPage.cpp',
|
|
'src/gui/Subsection.cpp',
|
|
'src/Utils.cpp',
|
|
'src/Config.cpp',
|
|
'src/GsrInfo.cpp',
|
|
'src/Process.cpp',
|
|
'src/Overlay.cpp',
|
|
'src/GlobalHotkeysX11.cpp',
|
|
'src/main.cpp',
|
|
]
|
|
|
|
mglpp_proj = subproject('mglpp')
|
|
mglpp_dep = mglpp_proj.get_variable('mglpp_dep')
|
|
|
|
dep = [
|
|
mglpp_dep,
|
|
dependency('xcomposite'),
|
|
]
|
|
|
|
prefix = get_option('prefix')
|
|
datadir = get_option('datadir')
|
|
gsr_ui_resources_path = join_paths(prefix, datadir, 'gsr-ui')
|
|
|
|
executable(
|
|
meson.project_name(),
|
|
src,
|
|
install : true,
|
|
dependencies : dep,
|
|
cpp_args : '-DGSR_UI_RESOURCES_PATH="' + gsr_ui_resources_path + '"',
|
|
)
|
|
|
|
executable(
|
|
'gsr-window-name',
|
|
['gsr-window-name/main.c'],
|
|
install : true,
|
|
dependencies : [dependency('x11')],
|
|
)
|
|
|
|
install_subdir('images', install_dir : gsr_ui_resources_path)
|
|
install_subdir('fonts', install_dir : gsr_ui_resources_path)
|
|
install_subdir('scripts', install_dir : gsr_ui_resources_path, install_mode : 'rwxr-xr-x')
|
|
|
|
if get_option('systemd') == true
|
|
install_data(files('extra/gpu-screen-recorder-ui.service'), install_dir : 'lib/systemd/user')
|
|
endif |