def Build(self): util.MakeParentDir(self.GetBuildDirectory()) filecache.Purge(self.target) cmd = action.BuildCommand('mxmlc', 'flex build %s' % self.GetName()) cmd.AddParamPath('-o', self.target) for lib in self.libs: cmd.Add('-compiler.library-path+=%s' % lib.target) for ext in self.ext_libs: cmd.Add('-compiler.library-path+=%s' % ext.GetPath()) for s in self.sources: cmd.AddPath(s.GetPath()) result = cmd.Run() # Strip output on success # TODO: Move to a Flex Binary base class if result.success: if (re.search('^Loading configuration file', result.output[0]) and re.search('\.swf \(\d+ bytes\)$', result.output[1])): result.output = [] return result
def Build(self): util.MakeParentDir(self.target) filecache.Purge(self.target) cmd = action.BuildCommand('ar', 'build %s' % self.GetName()) cmd.Add('rcs') cmd.AddPath(self.target) for o in sorted(self.objects, util.CompareName): cmd.AddPath(o.GetTargetName()) return cmd.Run()
def Build(self): util.MakeDir(self.GetBuildDirectory()) for target in self.targets.values(): filecache.Purge(target.GetPath()) self.CreatePythonTrail() cmd = action.BuildCommand('protoc', 'proto-compile %s' % self.GetName()) # Protocol Buffer Compiler cmd.Add('--as3_out=%s' % util.BuildPath()) cmd.Add('--cpp_out=%s' % util.BuildPath()) cmd.Add('--python_out=%s' % util.BuildPath()) cmd.Extend('--proto_path=%s' % util.RelPath(dir) for dir in self.import_dirs) cmd.AddPath(self.source) return cmd.Run()
def Build(self): util.MakeDir(self.GetBuildDirectory()) for t in self.library_targets: filecache.Purge(t.GetPath()) # This 'installs' the libraries to our build directory (specified # by AutomakeConfig's build step. cmd = action.BuildCommand(action='make install', desc='automake %s' % self.GetName(), work_dir=self.GetBuildDirectory()) result = cmd.Run() # if an automake project succeeds, we don't care about the output if result.success and not flags.verbose: result.output = [] return result
def Build(self): util.MakeParentDir(self.target) filecache.Purge(self.target) cmd = action.BuildCommand('g++', 'compile %s' % self.GetName()) cmd.Add('-Wall') cmd.Add('-c') if flags.debug: cmd.Add('-g') cmd.AddFlags(self.cc_flags) cmd.AddParamPath('-o', self.target) cmd.AddPath(self.source) for dir in self.include_dirs: cmd.AddParamPath('-I', dir) return cmd.Run()
def Build(self): util.MakeParentDir(self.target) filecache.Purge(self.target) cmd = action.BuildCommand('g++', 'link %s' % self.GetName()) if flags.debug: cmd.Add('-g') cmd.AddFlags(self.ld_flags) cmd.AddParamPath('-o', self.target) for o in self.objects: cmd.AddPath(o.GetTargetName()) for lib in self.OrderedLibraries(): cmd.AddPath(lib.GetTargetName()) for lib in self.ext_libs: cmd.Add('-l' + lib) return cmd.Run()
def Build(self): for target in self.targets: filecache.Purge(target) shutil.copytree(self.GetDirectory(), self.GetBuildDirectory()) cmd = action.BuildCommand( action= './configure', #os.path.join(util.AbsPath(self.GetDirectory()), 'configure'), desc='configure %s' % self.GetName(), work_dir=self.GetBuildDirectory()) #cmd.Add('-C') # Cache results -- not sure if this works/helps cmd.Add('--prefix="%s"' % util.AbsPath(self.install_dir)) cmd.AddFlags(self.configure_flags) # TODO: Add optimization flags for -opt builds result = cmd.Run() # if an automake project succeeds, we don't care about the output if result.success and not flags.verbose: result.output = [] return result