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.
Add minimal viewer build with Bazel.
This doesn't yet support all the slide types, but does allow us to have a GM slide (with one gm for now). I enforced IWYU on tools/viewer/ and gm/ to help resolve all deps. How we handle command line flags is a bit unfortunate (as a filegroup and not a cc_library), but I think that's pretty tough to untangle for now. We can add more slide types and gms as we see fit in future CLs. Change-Id: I41876f1b115f60e72b4b297a2106441b49cd4497 Bug: skia:13983 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/676118 Reviewed-by: Ben Wagner <[email protected]> Commit-Queue: Kevin Lubick <[email protected]>
- Loading branch information
Showing
54 changed files
with
526 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# This file will be copied into //third_party/externals/imgui via the new_git_repository | ||
# rule in //bazel/deps.bzl, so all files should be relative to that path. | ||
|
||
cc_library( | ||
name = "imgui", | ||
srcs = [ | ||
"imconfig.h", | ||
"imgui.cpp", | ||
"imgui.h", | ||
"imgui_demo.cpp", | ||
"imgui_draw.cpp", | ||
"imgui_internal.h", | ||
"imgui_tables.cpp", | ||
"imgui_widgets.cpp", | ||
"imstb_rectpack.h", | ||
"imstb_textedit.h", | ||
"imstb_truetype.h", | ||
"misc/cpp/imgui_stdlib.cpp", | ||
"misc/cpp/imgui_stdlib.h", | ||
], | ||
hdrs = ["imgui.h"], | ||
defines = ["IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS"], | ||
visibility = ["//visibility:public"], | ||
) |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
load("//bazel:skia_rules.bzl", "exports_files_legacy", "skia_cc_library") | ||
|
||
licenses(["notice"]) | ||
|
||
exports_files_legacy() | ||
|
||
filegroup( | ||
name = "gm_subset", | ||
srcs = ["bitmaprect.cpp"], | ||
visibility = ["//tools/viewer:__pkg__"], | ||
) | ||
|
||
skia_cc_library( | ||
name = "gm", | ||
testonly = True, | ||
srcs = [ | ||
"gm.cpp", | ||
"verifiers/gmverifier.cpp", | ||
"verifiers/gmverifier.h", | ||
], | ||
hdrs = ["gm.h"], | ||
visibility = ["//tools/viewer:__pkg__"], | ||
deps = [ | ||
"//:skia_internal", | ||
"//tools:registry", | ||
"//tools:tool_utils", | ||
], | ||
) |
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
Oops, something went wrong.