2019-03-12 14:05:25 +00:00
|
|
|
node_editor_sources = [
|
2019-03-09 13:55:17 +00:00
|
|
|
'gtkrendererpaintable.c',
|
2019-03-12 14:05:25 +00:00
|
|
|
'main.c',
|
|
|
|
'node-editor-application.c',
|
|
|
|
'node-editor-window.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
node_editor_resources = gnome.compile_resources('node_editor_resources',
|
2020-12-15 12:31:38 +00:00
|
|
|
'node-editor.gresource.xml',
|
|
|
|
source_dir: '.',
|
|
|
|
)
|
2019-03-12 14:05:25 +00:00
|
|
|
|
|
|
|
executable('gtk4-node-editor',
|
2020-12-15 12:31:38 +00:00
|
|
|
sources: [node_editor_sources, node_editor_resources],
|
2021-02-12 04:35:26 +00:00
|
|
|
dependencies: [ libgtk_dep, demo_conf_h ],
|
2020-12-15 12:31:38 +00:00
|
|
|
include_directories: confinc,
|
|
|
|
c_args: [
|
|
|
|
'-DNODE_EDITOR_SOURCE_DIR="@0@/../../testsuite/gsk/compare/"'.format(meson.current_source_dir())
|
|
|
|
] + common_cflags,
|
2021-12-24 15:51:11 +00:00
|
|
|
win_subsystem: 'windows',
|
2020-12-15 12:31:38 +00:00
|
|
|
link_args: extra_demo_ldflags,
|
2022-05-07 03:48:40 +00:00
|
|
|
install: true,
|
2020-12-15 12:31:38 +00:00
|
|
|
)
|
2020-07-13 11:29:03 +00:00
|
|
|
|
2022-05-07 03:44:08 +00:00
|
|
|
# icons
|
|
|
|
icontheme_dir = join_paths(gtk_datadir, 'icons/hicolor')
|
|
|
|
|
|
|
|
foreach size: ['scalable', 'symbolic']
|
|
|
|
install_subdir('data/' + size, install_dir: icontheme_dir)
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
# desktop file
|
|
|
|
install_data('org.gtk.gtk4.NodeEditor.desktop', install_dir: gtk_applicationsdir)
|
|
|
|
|
|
|
|
# appdata
|
|
|
|
configure_file(
|
|
|
|
input: 'org.gtk.gtk4.NodeEditor.appdata.xml.in',
|
|
|
|
output: 'org.gtk.gtk4.NodeEditor.appdata.xml',
|
|
|
|
configuration: appdata_config,
|
|
|
|
install_dir: gtk_appdatadir
|
|
|
|
)
|
2020-07-13 11:29:03 +00:00
|
|
|
|