blob: e733f158dc0e2628ad6681875fa5deb3fe1343fc [file] [log] [blame]
load("//bazel:cc_binary_with_flags.bzl", "cc_binary_with_flags")
load("//bazel:macros.bzl", "exports_files_legacy", "go_binary", "go_library")
load("@rules_python//python:defs.bzl", "py_binary")
licenses(["notice"])
exports_files_legacy()
cc_binary_with_flags(
name = "bazel_test_exe",
srcs = [
"bazel_test.cpp",
],
set_flags = {
"enable_svg_canvas": ["True"],
},
deps = [
"//:skia_public",
"@libpng",
],
)
go_binary(
name = "hello_world",
embed = [":bazel_test_lib"],
visibility = ["//visibility:public"],
)
go_library(
name = "bazel_test_lib",
srcs = ["hello_world.go"],
importpath = "go.skia.org/skia/experimental/bazel_test",
visibility = ["//visibility:private"],
)
py_binary(
name = "print_os",
srcs = ["print_os.py"],
)
genrule(
name = "generate_file",
srcs = [],
outs = [
"some_file.txt",
],
cmd = "$(location :print_os) $@",
exec_tools = [":print_os"],
)
cc_binary(
name = "skia_with_pathops",
srcs = ["pathop_main.cpp"],
features = ["layering_check"],
deps = [
"//:core",
"//:default_logging",
"//:default_malloc",
"//:pathops",
],
)