| 1 |
load("//bazel:skia_rules.bzl", "skia_cc_library", "skia_filegroup", "skia_objc_library") |
| 2 |
|
| 3 |
package( |
| 4 |
default_applicable_licenses = ["//:license"], |
| 5 |
) |
| 6 |
|
| 7 |
licenses(["notice"]) |
| 8 |
|
| 9 |
skia_cc_library( |
| 10 |
name = "sk_app", |
| 11 |
testonly = True, |
| 12 |
visibility = ["//tools:__subpackages__"], |
| 13 |
deps = select({ |
| 14 |
"@platforms//os:linux": [":sk_app_linux"], |
| 15 |
"@platforms//os:macos": [":sk_app_mac"], |
| 16 |
"@platforms//os:ios": [":sk_app_ios"], |
| 17 |
}), |
| 18 |
) |
| 19 |
|
| 20 |
skia_cc_library( |
| 21 |
name = "sk_app_linux", |
| 22 |
testonly = True, |
| 23 |
srcs = [ |
| 24 |
"CommandSet.cpp", |
| 25 |
"Window.cpp", |
| 26 |
"//tools/sk_app/unix:srcs", |
| 27 |
], |
| 28 |
hdrs = [ |
| 29 |
"Application.h", |
| 30 |
"CommandSet.h", |
| 31 |
"Window.h", |
| 32 |
], |
| 33 |
deps = [ |
| 34 |
"//tools/fonts:font_tool_utils", |
| 35 |
"//tools/skui", |
| 36 |
"//tools/timer", |
| 37 |
"//tools/window", |
| 38 |
], |
| 39 |
) |
| 40 |
|
| 41 |
skia_objc_library( |
| 42 |
name = "sk_app_mac", |
| 43 |
testonly = True, |
| 44 |
srcs = [ |
| 45 |
"CommandSet.cpp", |
| 46 |
"Window.cpp", |
| 47 |
], |
| 48 |
hdrs = [ |
| 49 |
"Application.h", |
| 50 |
"CommandSet.h", |
| 51 |
"Window.h", |
| 52 |
], |
| 53 |
non_arc_srcs = ["//tools/sk_app/mac:non_arc_srcs"], |
| 54 |
deps = [ |
| 55 |
"//tools/fonts:font_tool_utils", |
| 56 |
"//tools/skui", |
| 57 |
"//tools/timer", |
| 58 |
"//tools/window", |
| 59 |
], |
| 60 |
) |
| 61 |
|
| 62 |
skia_filegroup( |
| 63 |
name = "hdrs", |
| 64 |
srcs = [ |
| 65 |
"Window.h", |
| 66 |
], |
| 67 |
visibility = ["//tools/window:__pkg__"], |
| 68 |
) |