2016-07-25 06:31:32 -07:00
|
|
|
# Copyright (c) 2014-present, Facebook, Inc.
|
|
|
|
#
|
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.
|
2016-07-25 06:31:32 -07:00
|
|
|
|
2018-04-14 12:39:23 -07:00
|
|
|
load("//:yoga_defs.bzl", "yoga_cxx_library", "YOGA_ROOTS")
|
2016-08-16 03:47:40 -07:00
|
|
|
|
2016-07-25 06:31:32 -07:00
|
|
|
COMPILER_FLAGS = [
|
2017-02-24 21:40:45 -08:00
|
|
|
"-std=c++11",
|
|
|
|
"-Wno-missing-prototypes",
|
2016-07-25 06:31:32 -07:00
|
|
|
]
|
|
|
|
|
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,
|
2017-02-24 21:40:45 -08:00
|
|
|
deps = [],
|
2016-07-25 06:31:32 -07:00
|
|
|
)
|