forked from google/skia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bazel] Support optional building of Ganesh Metal backend.
Change-Id: Ia321c3d67898cf15a14ad5ce8f56227ef990bac0 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/673919 Reviewed-by: Kevin Lubick <[email protected]>
- Loading branch information
Showing
19 changed files
with
172 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,29 @@ | ||
load("//bazel:skia_rules.bzl", "exports_files_legacy", "skia_filegroup") | ||
load("//bazel:skia_rules.bzl", "exports_files_legacy", "skia_filegroup", "split_srcs_and_hdrs") | ||
|
||
licenses(["notice"]) | ||
|
||
exports_files_legacy() | ||
|
||
# Not referenced by Bazel target. | ||
# for exporting to //gn/gpu.gni:skia_shared_mtl_sources. | ||
MTL_FILES = [ | ||
"MtlMemoryAllocatorImpl.h", | ||
"MtlMemoryAllocatorImpl.mm", | ||
"MtlUtils.mm", | ||
"MtlUtilsPriv.h", | ||
] | ||
|
||
split_srcs_and_hdrs( | ||
name = "mtl", | ||
files = MTL_FILES, | ||
) | ||
|
||
skia_filegroup( | ||
name = "shared_objc_srcs", | ||
srcs = [":mtl_srcs"], | ||
visibility = ["//src/gpu:__pkg__"], | ||
) | ||
|
||
skia_filegroup( | ||
name = "shared_srcs", | ||
srcs = [ | ||
"MtlMemoryAllocatorImpl.h", | ||
"MtlMemoryAllocatorImpl.mm", | ||
"MtlUtils.mm", | ||
"MtlUtilsPriv.h", | ||
], | ||
name = "private_hdrs", | ||
srcs = [":mtl_hdrs"], | ||
visibility = ["//src/gpu:__pkg__"], | ||
) |
Oops, something went wrong.