From 7ffb52fe784fee2965e5317c039a64a438dce86e Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Mon, 6 Jul 2020 20:16:07 +0530 Subject: config: Don't set prefix for Windows builds We've been doing this since the beginning to ensure correct paths inside various files such as .pc and .la, but we this is not needed anymore for two reasons: 1. We ship pkg-config with --define-prefix enabled 2. MSI supports installing into any location So, always use dirs inside the build/ directory. Part-of: --- cerbero/config.py | 4 ---- config/cross-win-arm64.cbc | 1 - config/cross-win-armv7.cbc | 1 - config/win32.cbc | 1 - config/win64.cbc | 1 - 5 files changed, 8 deletions(-) diff --git a/cerbero/config.py b/cerbero/config.py index cb404ee6..59e29e41 100644 --- a/cerbero/config.py +++ b/cerbero/config.py @@ -710,10 +710,6 @@ class Config (object): raise ConfigurationError('vs_install_path was set, but vs_install_version was not') else: target_platform = 'mingw' - # If the cmd config set the prefix, append the variant modifier to - # it so that we don't clobber different toolchain builds - if self.prefix is not None: - self.prefix += '.' + target_platform self.set_property('prefix', os.path.join(self.home_dir, "dist", "%s_%s" % (target_platform, self.target_arch))) self.set_property('sources', os.path.join(self.home_dir, "sources", diff --git a/config/cross-win-arm64.cbc b/config/cross-win-arm64.cbc index c31a9c48..f3cb44f4 100644 --- a/config/cross-win-arm64.cbc +++ b/config/cross-win-arm64.cbc @@ -1,3 +1,2 @@ -prefix='c:/gstreamer/1.0/arm64' from cerbero.config import Architecture target_arch = Architecture.ARM64 diff --git a/config/cross-win-armv7.cbc b/config/cross-win-armv7.cbc index 2d5998e5..b5f0c257 100644 --- a/config/cross-win-armv7.cbc +++ b/config/cross-win-armv7.cbc @@ -1,3 +1,2 @@ -prefix='c:/gstreamer/1.0/armv7' from cerbero.config import Architecture target_arch = Architecture.ARMv7 diff --git a/config/win32.cbc b/config/win32.cbc index 16012585..680729b2 100644 --- a/config/win32.cbc +++ b/config/win32.cbc @@ -1,3 +1,2 @@ -prefix='c:/gstreamer/1.0/x86' from cerbero.config import Architecture target_arch = Architecture.X86 diff --git a/config/win64.cbc b/config/win64.cbc index 1a609234..9cd377a1 100644 --- a/config/win64.cbc +++ b/config/win64.cbc @@ -1,4 +1,3 @@ -prefix='c:/gstreamer/1.0/x86_64' from cerbero.config import Architecture arch = Architecture.X86_64 target_arch = Architecture.X86_64 -- cgit v1.2.3