diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-01-16 00:04:57 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-01-16 00:04:57 +0200 |
commit | 4c31e7774d09fe1a59b6cfd692de4f4cade1899c (patch) | |
tree | 9bbe3c9d0e1f7da9409345ff05da30df331d26ca /meson | |
parent | 66c01401deb186e6daa20cf4bf6a098076dda236 (diff) | |
download | meson-4c31e7774d09fe1a59b6cfd692de4f4cade1899c.zip meson-4c31e7774d09fe1a59b6cfd692de4f4cade1899c.tar.gz meson-4c31e7774d09fe1a59b6cfd692de4f4cade1899c.tar.bz2 |
Finalize moduleification so that full test suite runs.
Diffstat (limited to 'meson')
-rw-r--r-- | meson/interpreter.py | 12 | ||||
-rw-r--r-- | meson/mesonmain.py | 7 | ||||
-rw-r--r-- | meson/ninjabackend.py | 13 | ||||
-rw-r--r-- | meson/scripts/meson_install.py | 2 |
4 files changed, 25 insertions, 9 deletions
diff --git a/meson/interpreter.py b/meson/interpreter.py index 5ce2f8d..1a28f3f 100644 --- a/meson/interpreter.py +++ b/meson/interpreter.py @@ -1610,9 +1610,17 @@ class Interpreter(): regex_selector = vcs['rev_regex'] else: vcs_cmd = [' '] # executing this cmd will fail in vcstagger.py and force to use the fallback string - scriptfile = os.path.join(self.environment.get_script_dir(), 'vcstagger.py') # vcstagger.py parameters: infile, outfile, fallback, source_dir, replace_string, regex_selector, command... - kwargs['command'] = [sys.executable, scriptfile, '@INPUT0@', '@OUTPUT0@', fallback, source_dir, replace_string, regex_selector] + vcs_cmd + kwargs['command'] = [sys.executable, + self.environment.get_build_command(), + '--internal', + 'vcstagger', + '@INPUT0@', + '@OUTPUT0@', + fallback, + source_dir, + replace_string, + regex_selector] + vcs_cmd kwargs.setdefault('build_always', True) return self.func_custom_target(node, [kwargs['output']], kwargs) diff --git a/meson/mesonmain.py b/meson/mesonmain.py index 58ba06b..7b4f2c2 100644 --- a/meson/mesonmain.py +++ b/meson/mesonmain.py @@ -172,12 +172,18 @@ def run_script_command(args): elif cmdname == 'benchmark': import meson.scripts.meson_benchmark as abc cmdfunc = abc.run + elif cmdname == 'install': + import meson.scripts.meson_install as abc + cmdfunc = abc.run elif cmdname == 'commandrunner': import meson.scripts.commandrunner as abc cmdfunc = abc.run elif cmdname == 'delsuffix': import meson.scripts.delwithsuffix as abc cmdfunc = abc.run + elif cmdname == 'depfixer': + import meson.scripts.depfixer as abc + cmdfunc = abc.run elif cmdname == 'dirchanger': import meson.scripts.dirchanger as abc cmdfunc = abc.run @@ -210,7 +216,6 @@ def run(mainfile, args): handshake = True else: handshake = False - print(args) args = mesonlib.expand_arguments(args) if not args: return 1 diff --git a/meson/ninjabackend.py b/meson/ninjabackend.py index 80c94f9..36c5ce9 100644 --- a/meson/ninjabackend.py +++ b/meson/ninjabackend.py @@ -457,14 +457,14 @@ int dummy; script_root = self.environment.get_script_dir() install_script = os.path.join(script_root, 'meson_install.py') install_data_file = os.path.join(self.environment.get_scratch_dir(), 'install.dat') - depfixer = os.path.join(script_root, 'depfixer.py') + depfixer = [sys.executable, self.environment.get_build_command(), '--internal', 'depfixer'] d = InstallData(self.environment.get_source_dir(), self.environment.get_build_dir(), self.environment.get_prefix(), depfixer) elem = NinjaBuildElement('install', 'CUSTOM_COMMAND', 'PHONY') elem.add_dep('all') elem.add_item('DESC', 'Installing files.') - elem.add_item('COMMAND', [sys.executable, install_script, install_data_file]) + elem.add_item('COMMAND', [sys.executable, self.environment.get_build_command(), '--internal', 'install', install_data_file]) elem.add_item('pool', 'console') self.generate_depmf_install(d) self.generate_target_install(d) @@ -1094,9 +1094,12 @@ int dummy; scriptdir = self.environment.get_script_dir() outfile.write('\n') symrule = 'rule SHSYM\n' - symcmd = ' command = "%s" "%s" %s %s $CROSS\n' % (ninja_quote(sys.executable), - ninja_quote(os.path.join(scriptdir, 'symbolextractor.py')), - '$in', '$out') + symcmd = ' command = "%s" "%s" %s %s %s %s $CROSS\n' % (ninja_quote(sys.executable), + self.environment.get_build_command(), + '--internal', + 'symbolextractor', + '$in', + '$out') synstat = ' restat = 1\n' syndesc = ' description = Generating symbol file $out.\n' outfile.write(symrule) diff --git a/meson/scripts/meson_install.py b/meson/scripts/meson_install.py index a286864..1ede757 100644 --- a/meson/scripts/meson_install.py +++ b/meson/scripts/meson_install.py @@ -193,7 +193,7 @@ def install_targets(d): print("Symlink creation does not work on this platform.") printed_symlink_error = True if is_elf_platform(): - p = subprocess.Popen([d.depfixer, outname, install_rpath], + p = subprocess.Popen(d.depfixer + [outname, install_rpath], stdout=subprocess.PIPE, stderr=subprocess.PIPE) (stdo, stde) = p.communicate() |