]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: docs/logos: install logo files
authorPavel Hrdina <phrdina@redhat.com>
Thu, 18 Jun 2020 00:31:31 +0000 (02:31 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:06 +0000 (09:27 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
docs/Makefile.am
docs/logos/meson.build [new file with mode: 0644]
docs/meson.build

index a25fe49b6b763d03c6e4bbec2fbec45fb53a4c9d..d17455f135e97b0c7ecdef61af82dc4e1933c6ab 100644 (file)
 ## License along with this library.  If not, see
 ## <http://www.gnu.org/licenses/>.
 
-all: vpathhack
-
-# This hack enables us to view the web pages
-# from within the uninstalled build tree
-vpathhack:
-       @for dir in logos; \
-       do \
-         test -e $$dir || ln -s $(srcdir)/$$dir $$dir ; \
-       done
-
-logofiles = \
-  logos/logo-base.svg \
-  logos/logo-square.svg \
-  logos/logo-square-powered.svg \
-  logos/logo-banner-dark.svg \
-  logos/logo-banner-light.svg \
-  logos/logo-square-96.png \
-  logos/logo-square-128.png \
-  logos/logo-square-192.png \
-  logos/logo-square-256.png \
-  logos/logo-square-powered-96.png \
-  logos/logo-square-powered-128.png \
-  logos/logo-square-powered-192.png \
-  logos/logo-square-powered-256.png \
-  logos/logo-banner-dark-256.png \
-  logos/logo-banner-dark-800.png \
-  logos/logo-banner-light-256.png \
-  logos/logo-banner-light-800.png
-
-logofilesdir = $(HTML_DIR)/logos
-logofiles_DATA = $(logofiles)
-
 # Sync with src/util/
 KEYCODES = linux osx atset1 atset2 atset3 xtkbd usb win32 qnum
 KEYNAMES = linux osx win32
diff --git a/docs/logos/meson.build b/docs/logos/meson.build
new file mode 100644 (file)
index 0000000..da92c39
--- /dev/null
@@ -0,0 +1,29 @@
+docs_logo_files = [
+  'logo-banner-dark-256.png',
+  'logo-banner-dark-800.png',
+  'logo-banner-dark.svg',
+  'logo-banner-light-256.png',
+  'logo-banner-light-800.png',
+  'logo-banner-light.svg',
+  'logo-base.svg',
+  'logo-square-128.png',
+  'logo-square-192.png',
+  'logo-square-256.png',
+  'logo-square-96.png',
+  'logo-square-powered-128.png',
+  'logo-square-powered-192.png',
+  'logo-square-powered-256.png',
+  'logo-square-powered-96.png',
+  'logo-square-powered.svg',
+  'logo-square.svg',
+  'logo-sticker-hexagon.svg',
+  'logo-sticker-square.svg',
+]
+
+install_data(docs_logo_files, install_dir: docs_html_dir / 'logos')
+
+# This hack enables us to view the web pages
+# from within the uninstalled build tree
+foreach file : docs_logo_files
+  configure_file(input: file, output: file, copy: true)
+endforeach
index a3d01e4ceb4125145419df75df0603687d7b509b..b8678762236aaa39fb4274fdf18b1d8af97bc701 100644 (file)
@@ -296,6 +296,7 @@ subdir('html')
 subdir('internals')
 subdir('js')
 subdir('kbase')
+subdir('logos')
 
 
 # This hack enables us to view the web pages