Skip to main content

cxx

RuleDescription
cxx_binaryA cxx_binary() rule builds a native executable from the supplied set of C/C++ source files and dependencies.
cxx_flagsA cxx_flags() target holds flags that C++ targets pull in through their flags attribute.
cxx_genruleA cxx_genrule() enables you to run shell commands as part of the Buck build process.
cxx_headers_bundleBundles transitive exported C/C++ headers from C/C++ libraries, allowing them to e.g. be consumed via the resourcess parameter in other rules.
cxx_libraryA cxx_library() rule specifies a set of C/C++ source files and also provides flags that specify how those files should be built.
cxx_precompiled_headerA cxx_precompiled_header rule specifies a single header file that can be precompiled and made available for use in other build rules such as a cxx_library() or a cxx_binary().
cxx_testA cxx_test() rule builds a C/C++ binary against a C/C++ testing framework and runs it as part of test.
cxx_toolchainA cxx_toolchain() rule declares a complete C/C++ toolchain — a set of compilers (C, C++, Objective-C, asm, CUDA, HIP, etc.), preprocessors, linker, archiver, and binary utilities (strip, objcopy, dwp, nm, etc.) — along with the flags and behavior options that control how each tool is invoked.
cxx_toolchain_override
link_group_map
llvm_link_bitcodeAn llvm_link_bitcode() rule combines a set of LLVM bitcode inputs into a single bitcode object using llvm-link.
prebuilt_cxx_libraryA prebuilt_cxx_library() rule represents a set of native libraries and C/C++ header files and provides various flags to control how they are linked and exported.
prebuilt_cxx_library_groupA prebuilt_cxx_library_group() rule represents a group of native libraries which should be handled together in a single rule, perhaps using special link-line construction.
transformation_specA transformation_spec() rule declares a list of transformation rules that map targets (by Label, by build target pattern, or by build graph pattern) to a TransformationKind (debug or optimized).
windows_resourceA windows_resource() rule specifies a set of Window's Resource File (.rc) that are compiled into object files.