gtk2/demos/gtk-demo/meson.build

140 lines
3.5 KiB
Meson
Raw Normal View History

# These should be in the order you want them to appear in the
# demo app, which means alphabetized by demo title, not filename
2016-09-20 14:29:14 +00:00
demos = files([
2016-09-20 10:13:28 +00:00
'application_demo.c',
'assistant.c',
'builder.c',
'button_box.c',
'changedisplay.c',
'clipboard.c',
'colorsel.c',
'combobox.c',
'css_accordion.c',
'css_basics.c',
'css_blendmodes.c',
'css_multiplebgs.c',
'css_pixbufs.c',
'css_shadows.c',
'cursors.c',
'dialog.c',
'drawingarea.c',
2017-12-06 00:22:06 +00:00
'dnd.c',
2016-09-20 10:13:28 +00:00
'editable_cells.c',
'entry_buffer.c',
'entry_completion.c',
'expander.c',
'filtermodel.c',
'fishbowl.c',
2016-09-20 10:13:28 +00:00
'foreigndrawing.c',
'gestures.c',
'glarea.c',
'headerbar.c',
'hypertext.c',
'iconview.c',
'iconview_edit.c',
'images.c',
'infobar.c',
'links.c',
'listbox.c',
'flowbox.c',
'list_store.c',
'markup.c',
'menus.c',
'modelbutton.c',
'overlay.c',
'overlay2.c',
2018-02-02 15:04:17 +00:00
'paint.c',
2018-02-27 01:28:55 +00:00
'paintable.c',
'paintable_animated.c',
'paintable_mediastream.c',
2016-09-20 10:13:28 +00:00
'panes.c',
'pickers.c',
'pixbufs.c',
'popover.c',
'printing.c',
'revealer.c',
'rotated_text.c',
'scale.c',
'search_entry.c',
'search_entry2.c',
'shortcuts.c',
'sidebar.c',
'sizegroup.c',
2018-06-04 03:41:44 +00:00
'sliding_puzzle.c',
2016-09-20 10:13:28 +00:00
'spinbutton.c',
'spinner.c',
'stack.c',
'tabs.c',
2016-09-20 10:13:28 +00:00
'textmask.c',
'textview.c',
'textscroll.c',
'theming_style_classes.c',
'transparent.c',
'tree_store.c',
'video_player.c',
2016-09-20 10:13:28 +00:00
])
gtkdemo_deps = [ libgtk_dep, ]
2016-09-20 14:29:14 +00:00
2018-06-04 03:41:44 +00:00
extra_demo_sources = files(['main.c', 'gtkfishbowl.c', 'fontplane.c', 'gtkgears.c', 'puzzlepiece.c'])
if harfbuzz_dep.found() and pangoft_dep.found()
2016-09-20 14:29:14 +00:00
demos += files('font_features.c')
extra_demo_sources += files(['script-names.c', 'language-names.c'])
gtkdemo_deps += [ harfbuzz_dep, ]
2016-09-20 14:29:14 +00:00
endif
if os_unix
demos += files('pagesetup.c')
endif
gtkdemo_args = [ '-DGDK_DISABLE_DEPRECATED', '-DGTK_DISABLE_DEPRECATED', ]
2016-09-20 10:13:28 +00:00
demos_h = custom_target('gtk4 demo header',
output: 'demos.h',
input: demos,
command: [ find_program('geninclude.py'), '@OUTPUT@', '@INPUT@' ])
2016-09-20 14:29:14 +00:00
gtkdemo_resources = gnome.compile_resources('gtkdemo_resources',
'demo.gresource.xml',
source_dir: '.')
executable('gtk4-demo',
demos, demos_h, extra_demo_sources, gtkdemo_resources,
c_args: gtkdemo_args,
dependencies: gtkdemo_deps,
include_directories: confinc,
gui_app: true,
link_args: extra_demo_ldflags,
install: true)
executable('gtk4-demo-application',
'application.c', gtkdemo_resources,
c_args: gtkdemo_args,
dependencies: gtkdemo_deps,
include_directories: confinc,
gui_app: true,
link_args: extra_demo_ldflags,
install: true)
# icons
icontheme_dir = join_paths(gtk_datadir, 'icons/hicolor')
foreach icon_size: [ '16x16', '22x22', '24x24', '32x32', '48x48', '256x256', ]
gtk_demo_icons_dir = join_paths(icontheme_dir, '@0@/apps'.format(icon_size))
install_data('data/@0@/gtk4-demo.png'.format(icon_size),
install_dir: gtk_demo_icons_dir)
install_data('data/@0@/gtk4-demo-symbolic.symbolic.png'.format(icon_size),
install_dir: gtk_demo_icons_dir)
endforeach
# desktop file
install_data('org.gtk.Demo.desktop', install_dir: gtk_applicationsdir)
# GSettings
install_data('org.gtk.Demo.gschema.xml', install_dir: gtk_schemasdir)
gnome.compile_schemas()
# appdata
install_data('org.gtk.Demo.appdata.xml', install_dir: gtk_appdatadir)