summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-07-25 09:28:24 +0100
committerCarl Hetherington <cth@carlh.net>2017-07-25 09:28:24 +0100
commit1a0bf77794fea36f42d8a0739981bab2246027fe (patch)
treef1a9339fbb1d714fca145bfbcd726ba0fcdfc3a0
parent2797a9b4e2db22ab8585fb451a1d86880cbef303 (diff)
Log use of deprecated properties.
-rwxr-xr-xcdist25
1 files changed, 19 insertions, 6 deletions
diff --git a/cdist b/cdist
index 3237da2..bf329a0 100755
--- a/cdist
+++ b/cdist
@@ -435,7 +435,6 @@ class WindowsTarget(Target):
self.set('PKG_CONFIG_LIBDIR', '%s/lib/pkgconfig' % self.library_prefix)
self.set('PKG_CONFIG_PATH', '%s/lib/pkgconfig:%s/bin/pkgconfig' % (self.directory, self.directory))
self.set('PATH', '%s/bin:%s:%s' % (self.library_prefix, self.tool_path, os.environ['PATH']))
- print(self.get('PATH'))
self.set('CC', '%s-gcc' % self.name)
self.set('CXX', '%s-g++' % self.name)
self.set('LD', '%s-ld' % self.name)
@@ -448,11 +447,25 @@ class WindowsTarget(Target):
self.set('LINKFLAGS', '"%s"' % link)
self.set('LDFLAGS', '"%s"' % link)
- # These are for backwards-compatibility
- self.windows_prefix = self.library_prefix
- self.mingw_prefixes = [self.library_prefix]
- self.mingw_path = self.tool_path
- self.mingw_name = self.name
+ @property
+ def windows_prefix(self):
+ log('Deprecated property windows_prefix')
+ return self.library_prefix
+
+ @property
+ def mingw_prefixes(self):
+ log('Deprecated property mingw_prefixes')
+ return [self.library_prefix]
+
+ @property
+ def mingw_path(self):
+ log('Deprecated property mingw_path')
+ return self.tool_path
+
+ @property
+ def mingw_name(self):
+ log('Deprecated property mingw_name')
+ return self.name
def command(self, c):
log('host -> %s' % c)