Files
MapLibreParticleLab/platform/ios/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

75 lines
1.6 KiB
Python

load("//bazel:flags.bzl", "CPP_FLAGS", "MAPLIBRE_FLAGS", "WARNING_FLAGS")
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_unit_test")
load(
"@build_bazel_rules_swift//swift:swift.bzl",
"swift_library",
)
objc_library(
name = "ios_tests_objc_srcs",
srcs = glob(
[
"*.h",
"*.m",
],
allow_empty = False,
exclude = [
"MLNMapViewContentInsetTests.m",
],
),
deps = [
"//platform:ios-sdk",
"//platform/darwin:test_utility",
],
)
objc_library(
name = "ios_tests_objcpp_srcs",
srcs = glob(
[
"*.mm",
"*.h",
],
allow_empty = False,
),
copts = CPP_FLAGS + MAPLIBRE_FLAGS + WARNING_FLAGS,
deps = [
"//platform:ios-sdk",
],
)
swift_library(
name = "ios_tests_swift_srcs",
testonly = True,
srcs = glob(
["*.swift"],
allow_empty = False,
) + [
"//platform/darwin:test/MLNSDKTestHelpers.swift",
],
deps = [
"//platform:ios-sdk",
],
)
ios_unit_test(
name = "ios_test",
minimum_os_version = "12.0",
runner = "@build_bazel_rules_apple//apple/testing/default_runner:ios_xctestrun_ordered_runner",
visibility = [
"@rules_xcodeproj//xcodeproj:generated",
],
deps = [
"ios_tests_objc_srcs",
"ios_tests_objcpp_srcs",
"ios_tests_swift_srcs",
"//platform/darwin:shared_tests_objc_srcs",
"//platform/darwin:shared_tests_objcpp_srcs",
"//platform/darwin:shared_tests_swift_srcs",
],
)
exports_files([
"Info.plist",
])