2018-09-11 15:27:47 -07:00
|
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
2016-07-25 06:31:32 -07:00
|
|
|
#
|
2018-02-16 18:24:55 -08:00
|
|
|
# This source code is licensed under the MIT license found in the
|
|
|
|
# LICENSE file in the root directory of this source tree.
|
2019-07-04 18:56:08 -07:00
|
|
|
load("//tools/build_defs/oss:yoga_defs.bzl", "YOGA_ROOTS", "subdir_glob", "yoga_cxx_library", "yoga_prebuilt_cxx_library")
|
2016-08-16 03:47:40 -07:00
|
|
|
|
2016-07-25 06:31:32 -07:00
|
|
|
COMPILER_FLAGS = [
|
2019-03-16 02:21:26 -07:00
|
|
|
"-std=c++14",
|
2017-02-24 21:40:45 -08:00
|
|
|
"-Wno-missing-prototypes",
|
2016-07-25 06:31:32 -07:00
|
|
|
]
|
|
|
|
|
2019-07-04 18:56:08 -07:00
|
|
|
yoga_prebuilt_cxx_library(
|
|
|
|
name = "pthread",
|
|
|
|
exported_linker_flags = [
|
|
|
|
"-lpthread",
|
|
|
|
],
|
|
|
|
header_only = True,
|
|
|
|
)
|
|
|
|
|
2018-04-14 12:39:23 -07:00
|
|
|
yoga_cxx_library(
|
2017-02-24 21:40:45 -08:00
|
|
|
name = "gtest",
|
|
|
|
srcs = glob(["googletest/googletest/src/*.cc"]),
|
2017-09-25 10:10:19 -07:00
|
|
|
header_namespace = "",
|
2017-02-24 21:40:45 -08:00
|
|
|
exported_headers = subdir_glob([
|
|
|
|
("googletest/googletest/include", "**/*.h"),
|
|
|
|
("googletest/googletest", "src/*.h"),
|
|
|
|
("googletest/googletest", "src/*.cc"),
|
|
|
|
]),
|
2017-09-25 10:10:19 -07:00
|
|
|
compiler_flags = COMPILER_FLAGS,
|
2017-03-16 10:40:58 -07:00
|
|
|
visibility = YOGA_ROOTS,
|
2019-07-04 18:56:08 -07:00
|
|
|
deps = [
|
|
|
|
":pthread",
|
|
|
|
],
|
2016-07-25 06:31:32 -07:00
|
|
|
)
|