2016-10-11 05:43:54 -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-10-11 05:43:54 -07:00
|
|
|
|
2018-04-14 15:27:04 -07:00
|
|
|
load("//:yoga_defs.bzl", "yoga_dep", "ANDROID", "APPLE")
|
2016-10-11 05:43:54 -07:00
|
|
|
|
|
|
|
cxx_binary(
|
2017-02-24 21:40:45 -08:00
|
|
|
name = "benchmark",
|
|
|
|
srcs = glob(["*.c"]),
|
2017-09-25 10:10:19 -07:00
|
|
|
headers = subdir_glob([("", "*.h")]),
|
|
|
|
header_namespace = "",
|
2017-02-24 21:40:45 -08:00
|
|
|
compiler_flags = [
|
|
|
|
"-fno-omit-frame-pointer",
|
|
|
|
"-fexceptions",
|
|
|
|
"-Wall",
|
|
|
|
"-Werror",
|
|
|
|
"-O3",
|
|
|
|
"-std=c11",
|
|
|
|
],
|
2018-04-14 15:27:04 -07:00
|
|
|
platforms = (ANDROID, APPLE),
|
2017-02-24 21:40:45 -08:00
|
|
|
visibility = ["PUBLIC"],
|
|
|
|
deps = [
|
|
|
|
yoga_dep(":yoga"),
|
|
|
|
],
|
2016-10-11 05:43:54 -07:00
|
|
|
)
|