blob: 3d6b1431dfc4dd2c3059f9c4051afc4cf92f5b8d [file] [log] [blame]
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
# This first example only needs the core Skia functionality and the pathops
# module. Thus, the client defines a cc_library (skia_core_and_pathops) with
# those components and then depending on that library.
cc_binary(
name = "path_combiner",
srcs = ["src/path_main.cpp"],
copts = ["-std=c++17"],
linkopts = [
"-fuse-ld=lld",
"-lpthread",
],
deps = [":skia_core_and_pathops"],
)
cc_library(
name = "skia_core_and_pathops",
deps = [
"@skia//:core",
"@skia//:pathops",
],
)
cc_binary(
name = "png_decoder",
srcs = ["src/decode_png_main.cpp"],
copts = ["-std=c++17"],
linkopts = [
"-fuse-ld=lld",
"-lpthread",
],
deps = [
"@skia//:core",
"@skia//:png_decode_codec",
],
)
cc_binary(
name = "write_text_to_png",
srcs = ["src/write_text_to_png.cpp"],
copts = ["-std=c++17"],
linkopts = [
"-fuse-ld=lld",
"-lpthread",
],
deps = [
"@skia//:core",
"@skia//:fontmgr_fontconfig_freetype",
"@skia//:png_encode_codec",
],
)