Debian Codegraph @

demos/gtk-demo/meson.build

raw
1
2 ## These should be in the order you want them to appear in the
3 ## demo app, which means alphabetized by demo title, not filename
4 demos = files([
5 'application_demo.c',
6 'assistant.c',
7 'builder.c',
8 'button_box.c',
9 'changedisplay.c',
10 'clipboard.c',
11 'colorsel.c',
12 'combobox.c',
13 'css_accordion.c',
14 'css_basics.c',
15 'css_blendmodes.c',
16 'css_multiplebgs.c',
17 'css_pixbufs.c',
18 'css_shadows.c',
19 'cursors.c',
20 'dialog.c',
21 'drawingarea.c',
22 'editable_cells.c',
23 'entry_buffer.c',
24 'entry_completion.c',
25 'event_axes.c',
26 'expander.c',
27 'filtermodel.c',
28 'fishbowl.c',
29 'foreigndrawing.c',
30 'gestures.c',
31 'glarea.c',
32 'headerbar.c',
33 'hypertext.c',
34 'iconview.c',
35 'iconview_edit.c',
36 'images.c',
37 'infobar.c',
38 'links.c',
39 'listbox.c',
40 'flowbox.c',
41 'list_store.c',
42 'markup.c',
43 'menus.c',
44 'modelbutton.c',
45 'offscreen_window.c',
46 'offscreen_window2.c',
47 'overlay.c',
48 'overlay2.c',
49 'paint.c',
50 'panes.c',
51 'pickers.c',
52 'pixbufs.c',
53 'popover.c',
54 'printing.c',
55 'revealer.c',
56 'rotated_text.c',
57 'scale.c',
58 'search_entry.c',
59 'search_entry2.c',
60 'shortcuts.c',
61 'sidebar.c',
62 'sizegroup.c',
63 'spinbutton.c',
64 'spinner.c',
65 'stack.c',
66 'tabs.c',
67 'textmask.c',
68 'textview.c',
69 'textscroll.c',
70 'theming_style_classes.c',
71 'toolpalette.c',
72 'transparent.c',
73 'tree_store.c',
74 ])
75
76
77 gtkdemo_deps = [libgtk_dep]
78
79 if pango_dep.version().version_compare('>=1.44.0') and harfbuzz_dep.found() and cc.has_header_symbol(
80 'hb-ot.h',
81 'hb_ot_var_get_axis_count',
82 dependencies: harfbuzz_dep
83 )
84 demos += files('font_features.c')
85 elif harfbuzz_dep.found() and pangoft_dep.found()
86 demos += files('font_features.c')
87 gtkdemo_deps += [harfbuzz_dep, pangoft_dep]
88 endif
89
90 if os_unix
91 demos += files('pagesetup.c')
92 endif
93
94 gtkdemo_sources = demos + files([
95 'gtkfishbowl.c',
96 'gtkfishbowl.h',
97 'main.c',
98 ])
99
100
101 geninclude = find_program('geninclude.py')
102 demos_h = custom_target(
103 'gtk3 demo header',
104 output : 'demos.h',
105 input : demos,
106 command : [geninclude, '@OUTPUT@', '@INPUT@'],
107 )
108
109 gtkdemo_resources = gnome.compile_resources(
110 'gtkdemo_resources',
111 'demo.gresource.xml',
112 source_dir: '.'
113 )
114
115 gtkdemo = executable(
116 'gtk3-demo',
117 gtkdemo_sources,
118 demos_h,
119 gtkdemo_resources,
120 dependencies: gtkdemo_deps,
121 include_directories : confinc,
122 install: true
123 )
124
125 gtkapplicationdemo = executable(
126 'gtk3-demo-application',
127 'application.c',
128 demos_h,
129 gtkdemo_resources,
130 dependencies: gtkdemo_deps,
131 include_directories : confinc,
132 install: true
133 )
134
135 gtk_settings_schemas = [
136 'org.gtk.Settings.FileChooser.gschema.xml',
137 'org.gtk.Settings.ColorChooser.gschema.xml',
138 'org.gtk.Settings.EmojiChooser.gschema.xml',
139 'org.gtk.Settings.Debug.gschema.xml',
140 ]
141
142 foreach s: [ '16', '22', '24', '32', '48', '256']
143 icon_destdir = join_paths(gtk_datadir, 'icons', 'hicolor', '@0@x@0@'.format(s), 'apps')
144 icons = [join_paths('data', '@0@x@0@'.format(s), 'gtk3-demo.png'),
145 join_paths('data', '@0@x@0@'.format(s), 'gtk3-demo-symbolic.symbolic.png')]
146 install_data(icons, install_dir: icon_destdir)
147 endforeach
148
149 # desktop file
150 install_data('gtk3-demo.desktop', install_dir: gtk_applicationsdir)
151
152 # GSettings
153 install_data('org.gtk.Demo.gschema.xml', install_dir: gtk_schemasdir)
154 gnome.compile_schemas(depend_files: files(['org.gtk.Demo.gschema.xml']))