diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-02-24 22:30:02 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-02-24 22:30:02 +0200 |
commit | 7bf35b75faf79134b60067012ad2c090a18eb791 (patch) | |
tree | 080d8464593f84422d31f5271b0e90fb2aec6d84 /environment.py | |
parent | 8d6a681b237828c2f925f4f181da4995843b2f70 (diff) | |
download | meson-7bf35b75faf79134b60067012ad2c090a18eb791.zip meson-7bf35b75faf79134b60067012ad2c090a18eb791.tar.gz meson-7bf35b75faf79134b60067012ad2c090a18eb791.tar.bz2 |
Started work on CoreData.
Diffstat (limited to 'environment.py')
-rwxr-xr-x | environment.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/environment.py b/environment.py index 2a523c6..8140e89 100755 --- a/environment.py +++ b/environment.py @@ -15,6 +15,7 @@ # limitations under the License. import subprocess, os.path +import coredata build_filename = 'meson.build' @@ -232,10 +233,12 @@ class Environment(): self.source_dir = source_dir self.build_dir = build_dir self.meson_script_file = main_script_file - self.options = options self.scratch_dir = os.path.join(build_dir, 'meson-private') os.makedirs(self.scratch_dir, exist_ok=True) + self.old_coredata = coredata.CoreData(options) # FIXME: read from disk + self.new_coredata = coredata.CoreData(self.old_coredata) + self.default_c = ['cc'] self.default_cxx = ['c++'] self.default_static_linker = ['ar'] @@ -356,22 +359,22 @@ class Environment(): return self.object_suffix def get_prefix(self): - return self.options.prefix + return self.new_coredata.prefix def get_libdir(self): - return self.options.libdir + return self.new_coredata.libdir def get_bindir(self): - return self.options.bindir + return self.new_coredata.bindir def get_includedir(self): - return self.options.includedir + return self.new_coredata.includedir def get_mandir(self): - return self.options.mandir + return self.new_coredata.mandir def get_datadir(self): - return self.options.datadir + return self.new_coredata.datadir class Dependency(): def __init__(self): |