Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Gnome/demos/gtk-demo/   (Gnome Linux Desktop Version 4.23.2©)  Datei vom 30.5.2026 mit Größe 4 kB image not shown  

Quelle  meson.build   Sprache: unbekannt

 
Spracherkennung für: .build vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

# These should be in the order you want them to appear in the
# demo app, which means alphabetized by demo title, not filename
demos = files([
  'application_demo.c',
  'aspect_frame.c',
  'assistant.c',
  'builder.c',
  'clipboard.c',
  'combobox.c',
  'constraints.c',
  'constraints_interactive.c',
  'constraints_vfl.c',
  'constraints_builder.c',
  'css_accordion.c',
  'css_basics.c',
  'css_blendmodes.c',
  'css_multiplebgs.c',
  'css_pixbufs.c',
  'css_shadows.c',
  'cursors.c',
  'dialog.c',
  'dnd.c',
  'drawingarea.c',
  'editable_cells.c',
  'entry_completion.c',
  'entry_undo.c',
  'errorstates.c',
  'expander.c',
  'filtermodel.c',
  'fishbowl.c',
  'fixed.c',
  'fixed2.c',
  'flowbox.c',
  'fontrendering.c',
  'font_features.c',
  'frames.c',
  'gears.c',
  'gestures.c',
  'glarea.c',
  'headerbar.c',
  'hypertext.c',
  'iconscroll.c',
  'iconview.c',
  'iconview_edit.c',
  'image_filtering.c',
  'image_scaling.c',
  'images.c',
  'infobar.c',
  'layoutmanager.c',
  'layoutmanager2.c',
  'links.c',
  'listbox.c',
  'listbox_controls.c',
  'list_store.c',
  'listview_applauncher.c',
  'listview_clocks.c',
  'listview_colors.c',
  'listview_filebrowser.c',
  'listview_minesweeper.c',
  'listview_selections.c',
  'listview_settings.c',
  'listview_settings2.c',
  'listview_ucd.c',
  'listview_weather.c',
  'listview_words.c',
  'markup.c',
  'mask.c',
  'overlay.c',
  'overlay_decorative.c',
  'paint.c',
  'paintable.c',
  'paintable_animated.c',
  'paintable_emblem.c',
  'paintable_mediastream.c',
  'paintable_svg.c',
  'paintable_symbolic.c',
  'panes.c',
  'password_entry.c',
  'path_explorer_demo.c',
  'path_fill.c',
  'path_maze.c',
  'path_spinner.c',
  'path_sweep.c',
  'path_text.c',
  'path_walk.c',
  'peg_solitaire.c',
  'pickers.c',
  'printing.c',
  'read_more.c',
  'revealer.c',
  'rotated_text.c',
  'scale.c',
  'search_entry.c',
  'shadertoy.c',
  'shortcuts.c',
  'shortcut_triggers.c',
  'sidebar.c',
  'sizegroup.c',
  'sliding_puzzle.c',
  'snapping.c',
  'spinbutton.c',
  'spinner.c',
  'stack.c',
  'svg_widget.c',
  'tabs.c',
  'tagged_entry.c',
  'textmask.c',
  'textundo.c',
  'textview.c',
  'textscroll.c',
  'themes.c',
  'theming_style_classes.c',
  'transparent.c',
  'tree_store.c',
  'video_player.c',
])

gtkdemo_deps = [ libgtk_dep, gmodule_headers_dep ]

extra_demo_sources = files([
  'demochild.c',
  'demoimage.c',
  'demolayout.c',
  'demotaggedentry.c',
  'demowidget.c',
  'demo2layout.c',
  'demo2widget.c',
  'demo4widget.c',
  'filter_paintable.c',
  'fontify.c',
  'fontplane.c',
  'four_point_transform.c',
  'graphwidget.c',
  'gtkfishbowl.c',
  'gtkshadertoy.c',
  'gtkgears.c',
  'hsla.c',
  'imageview.c',
  'language-names.c',
  'main.c',
  'nodewidget.c',
  'path_explorer.c',
  'pixbufpaintable.c',
  'puzzlepiece.c',
  'range-editor.c',
  'script-names.c',
  'settings-key.c',
  'singular_value_decomposition.c',
  'suggestionentry.c',
  'unicode-names.c',
  'component_filter.c',
  'minigraph.c',
])

if os_unix
  demos += files('pagesetup.c')
endif

demos_h = custom_target('gtk4 demo header',
  output: 'demos.h',
  input: demos,
  command: [ find_program('geninclude.py'), '@OUTPUT@', '@INPUT@' ],
)

gtkdemo_resources = gnome.compile_resources('gtkdemo_resources',
  'demo.gresource.xml',
  source_dir: meson.current_source_dir()
)

test('gtk-demo-manifest-check',
  manifest_check,
  args: [
    meson.current_source_dir() / 'demo.gresource.xml',
    demos,
  ],
)

# Use a subset of compiler flags
demo_cflags = []
foreach flag: common_cflags
  if flag not in ['-Werror=missing-prototypes', '-Wmissing-prototypes',
                  '-Werror=missing-declarations', '-Wmissing-declarations']
    demo_cflags += flag
  endif
endforeach

demo_cflags += [ '-DGTK_COMPILATION=1' ]

gtkdemo_deps += [ profile_conf_h ]

gtk4_demo = executable('gtk4-demo',
  sources: [demos, demos_h, extra_demo_sources, gtkdemo_resources],
  c_args: demo_cflags,
  dependencies: gtkdemo_deps,
  include_directories: confinc,
  win_subsystem: 'windows',
  link_args: extra_demo_ldflags,
  install: true,
  kwargs: demo_kwargs
)

executable('gtk4-demo-application',
  sources: ['application.c', gtkdemo_resources],
  c_args: common_cflags,
  dependencies: gtkdemo_deps,
  include_directories: confinc,
  win_subsystem: 'windows',
  link_args: extra_demo_ldflags,
  install: true,
)

# 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.Demo4.desktop', install_dir: gtk_applicationsdir)

# GSettings
install_data('org.gtk.Demo4.gschema.xml', install_dir: gtk_schemasdir)
gnome.compile_schemas()

# appdata
configure_file(
  input: 'org.gtk.Demo4.appdata.xml.in',
  output: 'org.gtk.Demo4.appdata.xml',
  configuration: appdata_config,
  install_dir: gtk_appdatadir
)

if bash.found()
  install_data([ 'completion' ],
    rename: [ 'gtk4-demo' ],
    install_dir: bash_comp_inst_dir,
    install_tag: 'bin',
  )
endif

[Dauer der Verarbeitung: 0.17 Sekunden, vorverarbeitet 2026-07-02]