prebuilt_apple_framework()
prebuilt_apple_framework()
rule represents a set of Objective-C/C++ source files and is very similar to a prebuilt_cxx_library()
rule.Arguments
preferred_linkage
(required) #How to link to a binary: use
dynamic
for a dynamic framework, andstatic
for old universal static frameworks manually lipo-ed together.dynamic
will copy the frameworks into theFrameworks
directory of an Apple bundle, and configure framework search paths and linker flags.static
will copy the resources of the framework into an Apple bundle.visibility
(defaults to[]
) #List of build target patterns that identify the build rules that can include this rule as a dependency, for example, by listing it in their
deps
orexported_deps
attributes. For more information, see visibility.licenses
(defaults to[]
) #Set of license files for this library. To get the list of license files for a given build rule and all of its dependencies, you can use
buck query
.labels
(defaults to[]
) #Set of arbitrary strings which allow you to annotate a build rule with tags that can be searched for over an entire dependency tree using
buck query attrfilter()
.
Examples
prebuilt_apple_framework( name = 'MyPrebuiltFramework', framework = 'myPrebuiltFramework.framework', preferred_linkage = 'static', visibility = [ 'PUBLIC' ] )