Blame SOURCES/0040-add-GRUB_WINDOWS_EXTRA_DIST-to-allow-shipping-runtim.patch

23d2ea
From 290dac0294fcf7a441e80f10a59ffdea61a1c422 Mon Sep 17 00:00:00 2001
39700a
From: Andrey Borzenkov <arvidjaar@gmail.com>
39700a
Date: Tue, 21 Jan 2014 20:54:09 +0400
27a4da
Subject: [PATCH 040/260] add GRUB_WINDOWS_EXTRA_DIST to allow shipping runtime
39700a
 files
39700a
39700a
Not all toolkits provide static libraries. This patch enables creation of self
39700a
contained distribution that does not require pre-existing runtime libraries.
39700a
Intended usage is
39700a
39700a
export GRUB_WINDOWS_EXTRA_DIST="/path/to/liblzma.dll /path/to/libintl.dll"
39700a
make
39700a
make windowszip
39700a
39700a
As those libraries and locations are dependent on toolchain in use, trying
39700a
to autodetect them is likely impossible. So just provide a simple way to
39700a
package everything in one step.
39700a
39700a
Also remove $(windowsdir) after ZIP was created same as other "make dist"
39700a
targets.
39700a
---
39700a
 ChangeLog   | 5 +++++
39700a
 Makefile.am | 4 ++++
39700a
 2 files changed, 9 insertions(+)
39700a
39700a
diff --git a/ChangeLog b/ChangeLog
27a4da
index 3ba57aed8..1ede37091 100644
39700a
--- a/ChangeLog
39700a
+++ b/ChangeLog
39700a
@@ -1,5 +1,10 @@
39700a
 2014-01-21  Andrey Borzenkov <arvidjaar@gmail.com>
39700a
 
39700a
+	* Makefile.am: Allow adding extra files to generated Windows ZIP
39700a
+	archive by setting GRUB_WINDOWS_EXTRA_DIST.
39700a
+
39700a
+2014-01-21  Andrey Borzenkov <arvidjaar@gmail.com>
39700a
+
39700a
 	* configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
39700a
 	Show detected font path in summary.
39700a
 
39700a
diff --git a/Makefile.am b/Makefile.am
27a4da
index 97c062d7d..f02ae0a39 100644
39700a
--- a/Makefile.am
39700a
+++ b/Makefile.am
39700a
@@ -420,10 +420,14 @@ windowsdir: $(PROGRAMS) $(starfield_DATA) $(platform_DATA)
39700a
 	for x in $(starfield_DATA); do \
39700a
 		cp -fp $$x $(windowsdir)/themes/starfield/$$(basename $$x); \
39700a
 	done
39700a
+	for x in $(GRUB_WINDOWS_EXTRA_DIST); do \
39700a
+		cp -fp $$x $(windowsdir); \
39700a
+	done
39700a
 
39700a
 windowszip=$(top_builddir)/$(PACKAGE)-$(VERSION)-for-windows.zip
39700a
 windowszip: windowsdir
39700a
 	test -f $(windowszip) && rm $(windowszip) || true
39700a
 	zip -r $(windowszip) $(windowsdir)
39700a
+	rm -rf $(windowsdir)
39700a
 
39700a
 EXTRA_DIST += linguas.sh
39700a
-- 
27a4da
2.13.0
39700a