aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn20
1 files changed, 18 insertions, 2 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 1ee4d609c1..c687ded6de 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1311,8 +1311,8 @@ if (skia_enable_tools) {
testonly = true
}
- if (skia_enable_gpu && (is_linux || is_win || is_mac)) {
- executable("viewer") {
+ if (skia_enable_gpu && (is_android || is_linux || is_win || is_mac)) {
+ source_set("viewer_sources") {
sources = [
"tools/viewer/GMSlide.cpp",
"tools/viewer/ImageSlide.cpp",
@@ -1389,6 +1389,22 @@ if (skia_enable_tools) {
}
testonly = true
}
+
+ if (is_android) {
+ shared_library("libviewer") {
+ deps = [
+ ":viewer_sources",
+ ]
+ testonly = true
+ }
+ } else {
+ executable("viewer") {
+ deps = [
+ ":viewer_sources",
+ ]
+ testonly = true
+ }
+ }
}
if (skia_enable_gpu) {