diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-03-17 22:09:28 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-03-17 22:09:28 +0200 |
commit | bc97fb5c85bd7d5c1d42f8409e3cf1f7f193003e (patch) | |
tree | 360b1d019df6ba299de7da63413516570e0b3c54 /interpreter.py | |
parent | 9d32518c22b0889f91677ae0602d9324c1bdc431 (diff) | |
download | meson-bc97fb5c85bd7d5c1d42f8409e3cf1f7f193003e.zip meson-bc97fb5c85bd7d5c1d42f8409e3cf1f7f193003e.tar.gz meson-bc97fb5c85bd7d5c1d42f8409e3cf1f7f193003e.tar.bz2 |
Backend work is start.
Diffstat (limited to 'interpreter.py')
-rw-r--r-- | interpreter.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/interpreter.py b/interpreter.py index bde38c1..f1cdd8e 100644 --- a/interpreter.py +++ b/interpreter.py @@ -19,7 +19,7 @@ import dependencies import mlog import build import optinterpreter -import os, sys, platform, subprocess, shutil +import os, sys, platform, subprocess, shutil, uuid class InterpreterException(coredata.MesonException): pass @@ -857,6 +857,8 @@ class Interpreter(): for a in args: if not isinstance(a, str): raise InvalidArguments('Argument %s is not a string.' % str(a)) + if self.subproject == '': + self.build.project_name = args[0] if self.subproject in self.build.projects: raise InvalidCode('Second call to project().') self.build.projects[self.subproject] = args[0] @@ -1159,6 +1161,8 @@ class Interpreter(): self.check_sources_exist(os.path.join(self.source_root, self.subdir), sources) l = targetclass(name, self.subdir, is_cross, sources, objs, self.environment, kwargs) self.build.targets[name] = l.held_object + if name not in self.coredata.target_guids: + self.coredata.target_guids[name] = uuid.uuid4() if self.environment.is_cross_build() and l.is_cross: txt = ' cross build ' else: |