2017-03-12 16:27:34 +00:00
|
|
|
# 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',
|
|
|
|
'clipboard.c',
|
|
|
|
'combobox.c',
|
2019-06-13 18:33:36 +00:00
|
|
|
'constraints.c',
|
2019-06-26 03:35:10 +00:00
|
|
|
'constraints2.c',
|
2019-06-29 17:50:55 +00:00
|
|
|
'constraints3.c',
|
2016-09-20 10:13:28 +00:00
|
|
|
'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_completion.c',
|
2019-11-01 18:20:02 +00:00
|
|
|
'entry_undo.c',
|
2016-09-20 10:13:28 +00:00
|
|
|
'expander.c',
|
|
|
|
'filtermodel.c',
|
2017-03-12 16:27:34 +00:00
|
|
|
'fishbowl.c',
|
2019-04-02 19:49:35 +00:00
|
|
|
'fixed.c',
|
2018-07-27 22:42:22 +00:00
|
|
|
'fontrendering.c',
|
2020-04-13 00:39:03 +00:00
|
|
|
'gears.c',
|
2016-09-20 10:13:28 +00:00
|
|
|
'gestures.c',
|
|
|
|
'glarea.c',
|
|
|
|
'headerbar.c',
|
|
|
|
'hypertext.c',
|
2019-10-11 21:35:58 +00:00
|
|
|
'iconscroll.c',
|
2016-09-20 10:13:28 +00:00
|
|
|
'iconview.c',
|
|
|
|
'iconview_edit.c',
|
|
|
|
'images.c',
|
|
|
|
'infobar.c',
|
|
|
|
'links.c',
|
|
|
|
'listbox.c',
|
|
|
|
'flowbox.c',
|
|
|
|
'list_store.c',
|
|
|
|
'markup.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',
|
2018-02-27 02:09:33 +00:00
|
|
|
'paintable_animated.c',
|
2018-02-27 02:58:52 +00:00
|
|
|
'paintable_mediastream.c',
|
2016-09-20 10:13:28 +00:00
|
|
|
'panes.c',
|
2019-03-13 22:53:13 +00:00
|
|
|
'password_entry.c',
|
2020-03-01 07:45:15 +00:00
|
|
|
'peg_solitaire.c',
|
2016-09-20 10:13:28 +00:00
|
|
|
'pickers.c',
|
|
|
|
'pixbufs.c',
|
|
|
|
'printing.c',
|
|
|
|
'revealer.c',
|
|
|
|
'rotated_text.c',
|
|
|
|
'scale.c',
|
|
|
|
'search_entry.c',
|
|
|
|
'search_entry2.c',
|
|
|
|
'shortcuts.c',
|
2018-08-11 23:40:03 +00:00
|
|
|
'shortcut_triggers.c',
|
2016-09-20 10:13:28 +00:00
|
|
|
'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',
|
2017-03-12 16:27:34 +00:00
|
|
|
'tabs.c',
|
2019-03-15 14:34:06 +00:00
|
|
|
'tagged_entry.c',
|
2016-09-20 10:13:28 +00:00
|
|
|
'textmask.c',
|
2019-11-01 18:20:22 +00:00
|
|
|
'textundo.c',
|
2016-09-20 10:13:28 +00:00
|
|
|
'textview.c',
|
|
|
|
'textscroll.c',
|
2019-06-05 03:23:13 +00:00
|
|
|
'themes.c',
|
2016-09-20 10:13:28 +00:00
|
|
|
'theming_style_classes.c',
|
|
|
|
'transparent.c',
|
|
|
|
'tree_store.c',
|
2018-03-05 01:15:29 +00:00
|
|
|
'video_player.c',
|
2016-09-20 10:13:28 +00:00
|
|
|
])
|
|
|
|
|
2017-04-26 16:04:20 +00:00
|
|
|
gtkdemo_deps = [ libgtk_dep, ]
|
2016-09-20 14:29:14 +00:00
|
|
|
|
2019-03-15 14:34:06 +00:00
|
|
|
extra_demo_sources = files(['main.c',
|
|
|
|
'gtkfishbowl.c',
|
|
|
|
'fontplane.c',
|
|
|
|
'gtkgears.c',
|
|
|
|
'puzzlepiece.c',
|
|
|
|
'bluroverlay.c',
|
2020-04-26 01:16:02 +00:00
|
|
|
'demoimage.c',
|
2019-03-15 14:34:06 +00:00
|
|
|
'demotaggedentry.c'])
|
2018-03-28 04:57:28 +00:00
|
|
|
|
2016-09-24 15:35:10 +00:00
|
|
|
if harfbuzz_dep.found() and pangoft_dep.found()
|
2016-09-20 14:29:14 +00:00
|
|
|
demos += files('font_features.c')
|
2018-03-28 04:57:28 +00:00
|
|
|
extra_demo_sources += files(['script-names.c', 'language-names.c'])
|
2017-04-26 16:04:20 +00:00
|
|
|
gtkdemo_deps += [ harfbuzz_dep, ]
|
2016-09-20 14:29:14 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if os_unix
|
|
|
|
demos += files('pagesetup.c')
|
|
|
|
endif
|
|
|
|
|
2017-04-26 16:04:20 +00:00
|
|
|
gtkdemo_args = [ '-DGDK_DISABLE_DEPRECATED', '-DGTK_DISABLE_DEPRECATED', ]
|
2016-09-20 10:13:28 +00:00
|
|
|
|
2017-03-12 16:27:34 +00:00
|
|
|
demos_h = custom_target('gtk4 demo header',
|
2017-04-26 16:04:20 +00:00
|
|
|
output: 'demos.h',
|
|
|
|
input: demos,
|
|
|
|
command: [ find_program('geninclude.py'), '@OUTPUT@', '@INPUT@' ])
|
2016-09-20 14:29:14 +00:00
|
|
|
|
2017-03-12 16:27:34 +00:00
|
|
|
gtkdemo_resources = gnome.compile_resources('gtkdemo_resources',
|
2017-04-26 16:04:20 +00:00
|
|
|
'demo.gresource.xml',
|
|
|
|
source_dir: '.')
|
2017-03-12 16:27:34 +00:00
|
|
|
|
2020-03-07 14:01:21 +00:00
|
|
|
demo_cflags = []
|
|
|
|
foreach flag: common_cflags
|
|
|
|
if flag not in ['-Werror=missing-prototypes', '-Werror=missing-declarations', '-fvisibility=hidden']
|
|
|
|
demo_cflags += flag
|
|
|
|
endif
|
|
|
|
endforeach
|
|
|
|
|
2017-03-12 16:27:34 +00:00
|
|
|
executable('gtk4-demo',
|
2019-02-09 02:38:14 +00:00
|
|
|
demos, demos_h, extra_demo_sources, gtkdemo_resources,
|
2020-03-07 14:01:21 +00:00
|
|
|
c_args: gtkdemo_args + demo_cflags,
|
2017-04-26 16:04:20 +00:00
|
|
|
dependencies: gtkdemo_deps,
|
|
|
|
include_directories: confinc,
|
|
|
|
gui_app: true,
|
2018-03-28 04:13:08 +00:00
|
|
|
link_args: extra_demo_ldflags,
|
2017-04-26 16:04:20 +00:00
|
|
|
install: true)
|
2017-03-12 16:27:34 +00:00
|
|
|
|
|
|
|
executable('gtk4-demo-application',
|
2017-04-26 16:04:20 +00:00
|
|
|
'application.c', gtkdemo_resources,
|
2020-03-07 14:01:21 +00:00
|
|
|
c_args: gtkdemo_args + common_cflags,
|
2017-04-26 16:04:20 +00:00
|
|
|
dependencies: gtkdemo_deps,
|
|
|
|
include_directories: confinc,
|
|
|
|
gui_app: true,
|
2018-03-28 04:13:08 +00:00
|
|
|
link_args: extra_demo_ldflags,
|
2017-04-26 16:04:20 +00:00
|
|
|
install: true)
|
2017-03-12 16:27:34 +00:00
|
|
|
|
|
|
|
# icons
|
2017-04-26 16:04:20 +00:00
|
|
|
icontheme_dir = join_paths(gtk_datadir, 'icons/hicolor')
|
2017-03-12 16:27:34 +00:00
|
|
|
|
2019-02-06 14:37:25 +00:00
|
|
|
foreach size: ['scalable', 'symbolic']
|
2019-02-09 02:38:14 +00:00
|
|
|
install_subdir('data/' + size,
|
2019-02-06 14:37:25 +00:00
|
|
|
install_dir: icontheme_dir
|
|
|
|
)
|
2017-03-12 16:27:34 +00:00
|
|
|
endforeach
|
|
|
|
|
|
|
|
# desktop file
|
2019-04-01 22:49:09 +00:00
|
|
|
install_data('org.gtk.Demo4.desktop', install_dir: gtk_applicationsdir)
|
2017-03-12 16:27:34 +00:00
|
|
|
|
|
|
|
# GSettings
|
2019-04-01 22:49:09 +00:00
|
|
|
install_data('org.gtk.Demo4.gschema.xml', install_dir: gtk_schemasdir)
|
2017-04-26 16:04:20 +00:00
|
|
|
gnome.compile_schemas()
|
2018-03-20 23:40:30 +00:00
|
|
|
|
|
|
|
# appdata
|
2019-04-01 22:49:09 +00:00
|
|
|
install_data('org.gtk.Demo4.appdata.xml', install_dir: gtk_appdatadir)
|