Lines Matching +full:build +full:- +full:opts
15 cmake_quote_string(value) -> str
28 cmake_quote_path(value) -> str
43 mk_quote_string_for_target(target_name) -> str
54 make_install_dir(path) -> None
103 """validate_components() -> None
105 Validate that the project components are well-defined. Among other
107 - Components have valid references.
108 - Components references do not form cycles.
142 cycle_description = ' -> '.join(
145 fatal("found cycle to %r after following: %s -> %s" % (
181 # parent edges. Haven't decided how I want to handle this -- I thought
198 print('%s%-40s (%s)' % (' '*depth, node.name, node.type_name))
227 # Generate the build files.
250 name = "component_%d" % (len(fragments) - num_common_fragments)
273 comments_map[ln[1:-2]] = comment_block
283 header_fmt = ';===- %s %s-*- Conf -*--===;'
285 header_pad = '-' * (80 - len(header_fmt % (header_name, '')))
295 ;===------------------------------------------------------------------------===;
303 ;===------------------------------------------------------------------------===;
314 if fragment is not fragments[-1][1]:
341 # Compute the llvm-config "component name". For historical reasons,
374 root_entries -= set(deps)
388 //===- llvm-build generated file --------------------------------*- C++ -*-===//
394 //===----------------------------------------------------------------------===//
438 get_required_libraries_for_component(component_info) -> iter
469 get_fragment_dependencies() -> iter
501 path = path[:-1]
537 write_cmake_fragment(output_path) -> None
542 integrates LLVMBuild, see CMakeLists.txt in the top-level.
553 #===-- %s - LLVMBuild Configuration for LLVM %s-*- CMake -*--===#'
555 header_pad = '-' * (80 - len(header_fmt % (header_name, '')))
565 #===------------------------------------------------------------------------===#
568 # consumed by the CMake based build system.
570 # This file is autogenerated by llvm-build, do not edit!
572 #===------------------------------------------------------------------------===#
620 write_cmake_exports_fragment(output_path) -> None
656 write_make_fragment(output_path) -> None
661 Makefiles integrate LLVMBuild, see Makefile.rules in the top-level.
672 #===-- %s - LLVMBuild Configuration for LLVM %s-*- Makefile -*--===#'
674 header_pad = '-' * (80 - len(header_fmt % (header_name, '')))
684 #===------------------------------------------------------------------------===#
687 # consumed by the Makefile based build system.
689 # This file is autogenerated by llvm-build, do not edit!
691 #===------------------------------------------------------------------------===#
735 def add_magic_target_components(parser, project, opts): argument
736 """add_magic_target_components(project, opts) -> None
742 the "all-targets", "Native", "NativeCodeGen", and "Engine" components.
756 'Unknown' : None }.get(opts.native_target,
757 opts.native_target)
764 opts.native_target,))
767 opts.native_target,))
770 if opts.enable_targets is None:
773 # We support both space separated and semi-colon separated lists.
774 if opts.enable_targets == '':
776 elif ' ' in opts.enable_targets:
777 enable_target_names = opts.enable_targets.split()
779 enable_target_names = opts.enable_targets.split(';')
817 all_targets = find_special_group('all-targets')
823 # all-targets list.
848 group.add_option("", "--source-root", dest="source_root", metavar="PATH",
851 group.add_option("", "--llvmbuild-source-root",
856 group.add_option("", "--build-root", dest="build_root", metavar="PATH",
857 help="Path to the build directory (if needed) [%default]",
862 group.add_option("", "--print-tree", dest="print_tree",
865 group.add_option("", "--write-llvmbuild", dest="write_llvmbuild",
868 group.add_option("", "--write-library-table",
872 group.add_option("", "--write-cmake-fragment",
876 group.add_option("", "--write-cmake-exports-fragment",
880 group.add_option("", "--write-make-fragment",
884 group.add_option("", "--configure-target-def-file",
889 example, targets with AsmPrinters) and write the result to the build root (as
890 given by --build-root) at the same SUBPATH""",
895 group.add_option("", "--native-target",
900 group.add_option("", "--enable-targets",
902 help=("Enable the given space or semi-colon separated "
905 group.add_option("", "--enable-optional-components",
907 help=("Enable the given space or semi-colon separated "
912 (opts, args) = parser.parse_args()
915 source_root = opts.source_root
930 llvmbuild_source_root = opts.llvmbuild_source_root or source_root
935 add_magic_target_components(parser, project_info, opts)
941 if opts.print_tree:
944 # Write out the components, if requested. This is useful for auto-upgrading
946 if opts.write_llvmbuild:
947 project_info.write_components(opts.write_llvmbuild)
950 if opts.write_library_table:
951 project_info.write_library_table(opts.write_library_table,
952 opts.optional_components)
955 if opts.write_make_fragment:
956 project_info.write_make_fragment(opts.write_make_fragment,
957 opts.optional_components)
960 if opts.write_cmake_fragment:
961 project_info.write_cmake_fragment(opts.write_cmake_fragment,
962 opts.optional_components)
963 if opts.write_cmake_exports_fragment:
964 project_info.write_cmake_exports_fragment(opts.write_cmake_exports_fragment,
965 opts.optional_components)
968 if opts.configure_target_def_files:
969 # Verify we were given a build root.
970 if not opts.build_root:
971 parser.error("must specify --build-root when using "
972 "--configure-target-def-file")
995 for subpath in opts.configure_target_def_files:
997 outpath = os.path.join(opts.build_root, subpath)