[meld/windows-build-style-scheme: 3/3] build_helpers: Move style scheme files into place in Windows build
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/windows-build-style-scheme: 3/3] build_helpers: Move style scheme files into place in Windows build
- Date: Fri, 10 Jan 2020 23:43:49 +0000 (UTC)
commit 1f84a44415f882786c2df43e2aa621b481e594b9
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Jan 11 09:38:57 2020 +1000
build_helpers: Move style scheme files into place in Windows build
meld/build_helpers.py | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
---
diff --git a/meld/build_helpers.py b/meld/build_helpers.py
index 4c30ce55..158ab65f 100644
--- a/meld/build_helpers.py
+++ b/meld/build_helpers.py
@@ -89,6 +89,9 @@ class build_data(distutils.cmd.Command):
('share/meld', ['data/gschemas.compiled']),
]
+ style_source = "data/styles/*.style-scheme.xml.in"
+ style_target_dir = 'share/meld/styles'
+
# FIXME: This is way too much hard coding, but I really hope
# it also doesn't last that long.
resource_source = "meld/resources/meld.gresource.xml"
@@ -125,6 +128,21 @@ class build_data(distutils.cmd.Command):
gschemas = self.gschemas
data_files.extend(gschemas)
+ if windows_build:
+ # These should get moved/installed by i18n, but until that
+ # runs on Windows we need this hack.
+ styles = glob.glob(self.style_source)
+
+ import shutil
+ targets = []
+ for style in styles:
+ assert style.endswith('.in')
+ target = style[:-len('.in')]
+ shutil.copyfile(style, target)
+ targets.append(target)
+
+ data_files.append((self.style_target_dir, targets))
+
return data_files
def run(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]