Lines Matching refs:project
225 def __init__(self, gn_target_name, project): argument
227 self.properties = project.targets[self.gn_name]
228 self.cmake_name = project.GetCMakeTargetName(self.gn_name)
233 def WriteAction(out, target, project, sources, synthetic_dependencies): argument
237 output_abs_path = project.GetAbsolutePath(output)
257 out.write(CMakeStringEscape(project.GetAbsolutePath(script)))
273 out.write(CMakeStringEscape(project.build_path))
294 def WriteActionForEach(out, target, project, sources, synthetic_dependencies): argument
300 source_abs_path = project.GetAbsolutePath(source)
306 output_abs_path = project.GetAbsolutePath(output)
327 out.write(CMakeStringEscape(project.GetAbsolutePath(script)))
346 out.write(CMakeStringEscape(project.build_path))
358 def WriteCopy(out, target, project, sources, synthetic_dependencies): argument
365 output_abs_path = project.GetAbsolutePath(output)
376 out.write(CMakeStringEscape(project.GetAbsolutePath(src)))
387 out.write(CMakeStringEscape(project.build_path))
397 def WriteCompilerFlags(out, target, project, sources): argument
422 out.write(project.GetAbsolutePath(include_dir))
472 def WriteSourceVariables(out, target, project): argument
481 source_abs_path = project.GetAbsolutePath(source)
485 input_abs_path = project.GetAbsolutePath(input_path)
493 project.GetObjectSourceDependencies(target.gn_name, object_dependencies)
495 cmake_dependency_name = project.GetCMakeTargetName(dependency)
507 def WriteTarget(out, target, project): argument
519 sources = WriteSourceVariables(out, target, project)
523 WriteAction(out, target, project, sources, synthetic_dependencies)
525 WriteActionForEach(out, target, project, sources, synthetic_dependencies)
527 WriteCopy(out, target, project, sources, synthetic_dependencies)
543 WriteCompilerFlags(out, target, project, sources)
554 project.GetObjectLibraryDependencies(target.gn_name, object_dependencies)
556 dependencies.update(project.targets.get(object_dependency).get('deps', []))
559 gn_dependency_type = project.targets.get(dependency, {}).get('type', None)
561 cmake_dependency_name = project.GetCMakeTargetName(dependency)
589 libraries.add(project.GetAbsolutePath(external_library))
618 def WriteProject(project): argument
619 out = open(posixpath.join(project.build_path, 'CMakeLists.txt'), 'w+')
629 out.write(CMakeStringEscape(project.build_path))
635 out = open(posixpath.join(project.build_path, 'CMakeLists.ext'), 'w+')
653 gn_deps_file = posixpath.join(project.build_path, 'build.ninja.d')
665 for target_name in project.targets.keys():
667 WriteTarget(out, Target(target_name, project), project)
676 project = None
678 project = json.loads(json_file.read())
680 WriteProject(Project(project))