Port packaging to AMBuild 2 (
bug 5997 part 6, r=ds).
1 # vim: set ts=8 sts=2 sw=2 tw=99 et ft=python:
17 'admin-sql-prefetch.sp',
23 'admin-sql-threaded.sp',
27 'sql-admin-manager.sp'
31 os.path.join(builder.buildPath, SM.spcomp.binary.path),
32 'SM_GENERATED_BUILD=',
33 '-i' + os.path.relpath(os.path.join(builder.sourcePath, 'plugins', 'include'),
34 os.path.join(builder.buildPath, builder.buildFolder)),
38 def build_plugin(script_path, smx_file):
46 argv = spcomp_argv + [script_path]
47 cmd_entry, (smx_entry,) = builder.AddCommand(
53 SM.smx_files[smx_file] = smx_entry
55 for script_file in files:
56 script_path = os.path.join(builder.currentSourcePath, script_file)
57 smx_file = os.path.splitext(script_file)[0] + '.smx'
58 build_plugin(script_path, smx_file)
60 # This one has to be special.
61 build_plugin(os.path.join(builder.currentSourcePath, 'admin-flatfile', 'admin-flatfile.sp'),