2022-01-06 19:26:59 +00:00
|
|
|
load("//bazel:macros.bzl", "generated_cc_atom")
|
2022-01-11 12:35:26 +00:00
|
|
|
load("//bazel:cc_binary_with_flags.bzl", "cc_binary_with_flags")
|
|
|
|
|
|
|
|
cc_binary_with_flags(
|
|
|
|
name = "hello_world",
|
|
|
|
srcs = [
|
|
|
|
"//example:HelloWorld_src",
|
|
|
|
],
|
|
|
|
linkopts = [
|
|
|
|
"-lX11",
|
|
|
|
"-lxcb",
|
|
|
|
"-lXau",
|
|
|
|
"-lXdmcp",
|
|
|
|
"-lGL",
|
|
|
|
],
|
|
|
|
set_flags = {
|
|
|
|
"gpu_backend": [
|
|
|
|
"gl_backend",
|
|
|
|
],
|
|
|
|
"with_gl_standard": [
|
|
|
|
"gl_standard",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
deps = [
|
|
|
|
"//:skia_core",
|
|
|
|
"//src/utils:json_srcs",
|
|
|
|
"//tools/sk_app",
|
|
|
|
],
|
|
|
|
)
|
2022-01-06 19:26:59 +00:00
|
|
|
|
|
|
|
generated_cc_atom(
|
|
|
|
name = "HelloWorld_hdr",
|
|
|
|
hdrs = ["HelloWorld.h"],
|
|
|
|
visibility = ["//:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"//tools/sk_app:Application_hdr",
|
|
|
|
"//tools/sk_app:Window_hdr",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
generated_cc_atom(
|
|
|
|
name = "HelloWorld_src",
|
|
|
|
srcs = ["HelloWorld.cpp"],
|
|
|
|
visibility = ["//:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
":HelloWorld_hdr",
|
|
|
|
"//include/core:SkCanvas_hdr",
|
|
|
|
"//include/core:SkFont_hdr",
|
|
|
|
"//include/core:SkGraphics_hdr",
|
|
|
|
"//include/core:SkSurface_hdr",
|
|
|
|
"//include/effects:SkGradientShader_hdr",
|
|
|
|
],
|
|
|
|
)
|