Builder -> Meson renaming.

pull/15/head
Jussi Pakkanen 12 years ago
parent 816752f51a
commit 603625b61c
  1. 8
      generators.py
  2. 0
      meson_install.py
  3. 0
      meson_test.py
  4. 4
      run_tests.py

@ -17,7 +17,7 @@
import os, stat, re, pickle
import interpreter, nodes
import environment
from builder_install import InstallData
from meson_install import InstallData
def shell_quote(cmdlist):
return ["'" + x + "'" for x in cmdlist]
@ -209,7 +209,7 @@ class NinjaGenerator(Generator):
def generate_install(self, outfile):
script_root = self.environment.get_script_dir()
install_script = os.path.join(script_root, 'builder_install.py')
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')
d = InstallData(self.environment.get_prefix(), depfixer, './') # Fixme
@ -274,8 +274,8 @@ class NinjaGenerator(Generator):
def generate_tests(self, outfile):
script_root = self.environment.get_script_dir()
test_script = os.path.join(script_root, 'builder_test.py')
test_data = os.path.join(self.environment.get_scratch_dir(), 'builder_test_setup.dat')
test_script = os.path.join(script_root, 'meson_test.py')
test_data = os.path.join(self.environment.get_scratch_dir(), 'meson_test_setup.dat')
outfile.write('build test: CUSTOM_COMMAND\n')
outfile.write(' COMMAND = \'%s\' \'%s\'\n\n' % (ninja_quote(test_script), ninja_quote(test_data)))
datafile = open(test_data, 'w')

@ -20,7 +20,7 @@ import os, subprocess, shutil, sys
test_build_dir = 'work area'
install_dir = os.path.join(os.path.split(os.path.abspath(__file__))[0], 'install dir')
use_shell = len(sys.argv) > 1
builder_command = './meson.py'
meson_command = './meson.py'
if use_shell:
generator_flags = ['--generator', 'shell']
compile_commands = ['compile.sh']
@ -38,7 +38,7 @@ def run_test(testdir):
os.mkdir(test_build_dir)
os.mkdir(install_dir)
print('Running test: ' + testdir)
gen_command = [builder_command, '--prefix', install_dir, testdir, test_build_dir] + generator_flags
gen_command = [meson_command, '--prefix', install_dir, testdir, test_build_dir] + generator_flags
p = subprocess.Popen(gen_command)
p.wait()
if p.returncode != 0:

Loading…
Cancel
Save