aboutsummaryrefslogtreecommitdiff
path: root/environment.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-11-03 03:03:54 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2015-11-03 03:03:54 +0200
commite2313b85d7f0d10c0995ea9887bee00c2763290a (patch)
tree84ee6761ec41ba330df81eb864b06d03aefe6988 /environment.py
parente96a31cce4bec7e734ef56624212441e4702cf0e (diff)
downloadmeson-e2313b85d7f0d10c0995ea9887bee00c2763290a.zip
meson-e2313b85d7f0d10c0995ea9887bee00c2763290a.tar.gz
meson-e2313b85d7f0d10c0995ea9887bee00c2763290a.tar.bz2
Refactored builtin options to a dictionary and created a new default library target type.
Diffstat (limited to 'environment.py')
-rw-r--r--environment.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/environment.py b/environment.py
index c4878f4..697957d 100644
--- a/environment.py
+++ b/environment.py
@@ -543,22 +543,22 @@ class Environment():
return self.object_suffix
def get_prefix(self):
- return self.coredata.prefix
+ return self.coredata.get_builtin_option('prefix')
def get_libdir(self):
- return self.coredata.libdir
+ return self.coredata.get_builtin_option('libdir')
def get_bindir(self):
- return self.coredata.bindir
+ return self.coredata.get_builtin_option('bindir')
def get_includedir(self):
- return self.coredata.includedir
+ return self.coredata.get_builtin_option('includedir')
def get_mandir(self):
- return self.coredata.mandir
+ return self.coredata.get_builtin_option('mandir')
def get_datadir(self):
- return self.coredata.datadir
+ return self.coredata.get_builtin_option('datadir')
def find_library(self, libname, dirs):
if dirs is None: