Files
MapLibreParticleLab/render-test/BUILD.bazel
mwilsnd 20d9e1028c Platform flattening overhaul (#1393)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bart Louwers <bart@emeel.net>
2023-07-26 17:50:34 +02:00

57 lines
1.1 KiB
Python

load("//bazel:flags.bzl", "CPP_FLAGS", "MAPLIBRE_FLAGS")
cc_library(
name = "render-test-lib",
hdrs = [
"include/mbgl/render_test.hpp",
],
includes = [
"include",
],
visibility = [
"//platform/default:__pkg__",
"//render-test/ios:__pkg__",
],
)
cc_library(
name = "render-test-srcs",
srcs = glob(
[
"*.cpp",
"*.hpp",
],
) + [
"include/mbgl/render_test.hpp",
],
copts = CPP_FLAGS + MAPLIBRE_FLAGS,
includes = [
"include",
],
visibility = [
"//render-test/ios:__pkg__",
],
deps = [
"//expression-test:test_runner_common",
] + select({
"//:ios": ["//platform:ios-sdk"],
"//:linux": ["//platform/linux:impl"],
}),
)
cc_test(
name = "render-test",
args = [
"--manifestPath",
"metrics/linux-gcc8-release-style.json",
],
data = [
"//metrics:render-test-files",
],
deps = [
"render-test-srcs",
"//platform/default:render-test-bin",
"//vendor:mapbox-base",
],
)