binary_resources.cpp only compiles if skia_embed_resources
Change-Id: Ib96a4646cb7b83a4039c404f547bdaf4160b4942
Reviewed-on: https://skia-review.googlesource.com/84660
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Hal Canary <halcanary@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index c9e77bd..4d1850a 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -904,17 +904,6 @@
include_dirs += [ "tools/gpu/vk" ]
}
}
- action("binary_resources.cpp") {
- script = "gn/generate_binary_asset.py"
- args = [
- rebase_path("resources"),
- "gResources",
- rebase_path("$target_gen_dir/binary_resources.cpp", root_build_dir),
- ]
- outputs = [
- "$target_gen_dir/binary_resources.cpp",
- ]
- }
action("skia.h") {
public_configs = [ ":skia.h_config" ]
skia_h = "$target_gen_dir/skia.h"
@@ -927,6 +916,20 @@
]
}
+ if (skia_embed_resources) {
+ action("binary_resources.cpp") {
+ script = "gn/generate_binary_asset.py"
+ args = [
+ rebase_path("resources"),
+ "gResources",
+ rebase_path("$target_gen_dir/binary_resources.cpp", root_build_dir),
+ ]
+ outputs = [
+ "$target_gen_dir/binary_resources.cpp",
+ ]
+ }
+ }
+
if (skia_enable_gpu && target_cpu == "x64") {
executable("fiddle") {
libs = []