commit | 652611ce81a3a86679a8e0996dba55fb56f46495 | [log] [tgz] |
---|---|---|
author | Kevin Lubick <kjlubick@google.com> | Mon Aug 01 08:47:38 2022 -0400 |
committer | Kevin Lubick <kjlubick@google.com> | Mon Aug 01 14:57:38 2022 +0000 |
tree | 3547b1bef946df6d470130352dff15d2e978f69a | |
parent | 6bb4c560b1dbf254c6e5f6493d81f4ae93cd66f5 [diff] |
[bazel] Add skottie_tool_cpu and skottie_tool_gpu rule Unlike the GN builds of these, the gpu backend is, in fact, not there in the _cpu version. Doing a release build of each, we get skottie_tool_cpu 22M skottie_tool_gpu 27M That seems a little big, but it's probably something like debug symbols still being there. I'll follow up when adding an "optimize for code size" build flag. In order to support this, I needed to add the //tools/gpu:utils rule (an analog for the current GN rule gpu_tool_utils [1]). I tested this rule on Linux and Mac and translated the other platforms from the GN rules as best I could, but these are not yet supported/tested. I also got rid of the flag "is_skia_dev_build" in favor of "enable_gpu_test_utils". The former was based on the GN flag of the same name [2], but is heavily overloaded. I plan to replace it with more precise, meaningful flags like "enable_gpu_test_utils". [1] https://github.com/google/skia/blob/f21a717e1347b022ec72f26dbb8bae66b4c6f7a2/BUILD.gn#L1802 [2] https://github.com/google/skia/blob/f21a717e1347b022ec72f26dbb8bae66b4c6f7a2/BUILD.gn#L94 Bug: skia:12541 Change-Id: Ice652a9cebb68403d09982da1f07409228fa8d7c Reviewed-on: https://skia-review.googlesource.com/c/skia/+/562936 Reviewed-by: Ben Wagner <bungeman@google.com> Reviewed-by: Florin Malita <fmalita@google.com>