forked from facebook/yoga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUCK
30 lines (27 loc) · 771 Bytes
/
BUCK
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
load("//tools/build_defs/oss:yoga_defs.bzl", "GTEST_TARGET", "LIBRARY_COMPILER_FLAGS", "yoga_cxx_library", "yoga_cxx_test")
_TESTS = glob(["*Test.cpp"])
yoga_cxx_library(
name = "util",
srcs = glob(
["*.cpp"],
exclude = _TESTS,
),
header_namespace = "yoga/util",
exported_headers = glob(["*.h"]),
compiler_flags = LIBRARY_COMPILER_FLAGS,
tests = [":test"],
visibility = ["PUBLIC"],
)
yoga_cxx_test(
name = "test",
srcs = _TESTS,
compiler_flags = LIBRARY_COMPILER_FLAGS,
deps = [
":util",
GTEST_TARGET,
],
)