Vendor dependencies
Let's see how I like this workflow.
This commit is contained in:
parent
34d1830413
commit
9c435dc440
7500 changed files with 1665121 additions and 99 deletions
29
vendor/cxx/tools/buck/prelude/apple/apple_resource.bzl
vendored
Normal file
29
vendor/cxx/tools/buck/prelude/apple/apple_resource.bzl
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
#
|
||||
# This source code is licensed under both the MIT license found in the
|
||||
# LICENSE-MIT file in the root directory of this source tree and the Apache
|
||||
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
||||
# of this source tree.
|
||||
|
||||
load(":apple_resource_types.bzl", "AppleResourceDestination", "AppleResourceSpec")
|
||||
load(":resource_groups.bzl", "create_resource_graph")
|
||||
|
||||
def apple_resource_impl(ctx: "context") -> ["provider"]:
|
||||
destination = ctx.attrs.destination or "resources"
|
||||
resource_spec = AppleResourceSpec(
|
||||
files = ctx.attrs.files,
|
||||
dirs = ctx.attrs.dirs,
|
||||
content_dirs = ctx.attrs.content_dirs,
|
||||
destination = AppleResourceDestination(destination),
|
||||
variant_files = ctx.attrs.variants or [],
|
||||
named_variant_files = ctx.attrs.named_variants or {},
|
||||
codesign_files_on_copy = ctx.attrs.codesign_on_copy,
|
||||
)
|
||||
graph = create_resource_graph(
|
||||
ctx = ctx,
|
||||
labels = ctx.attrs.labels,
|
||||
deps = [],
|
||||
exported_deps = [],
|
||||
resource_spec = resource_spec,
|
||||
)
|
||||
return [DefaultInfo(), graph]
|
||||
Loading…
Add table
Add a link
Reference in a new issue