提交 b0bfe7f6 编写于 作者: L liuqi

Fix api test BUILD file.

上级 a0952601
...@@ -7,19 +7,23 @@ package( ...@@ -7,19 +7,23 @@ package(
licenses(["notice"]) # Apache 2.0 licenses(["notice"]) # Apache 2.0
load("//mace:mace.bzl", "if_android", "if_neon_enabled", "if_openmp_enabled", "if_android_armv7", "if_hexagon_enabled")
cc_test( cc_test(
name = "mace_api_test", name = "mace_api_test",
testonly = 1, testonly = 1,
srcs = glob( srcs = ["mace_api_test.cc"],
["mace_api_test.cc"], copts = if_openmp_enabled(["-fopenmp"]) +
), if_neon_enabled(["-DMACE_ENABLE_NEON"]) +
if_android_armv7(["-mfpu=neon -mfloat-abi=softfp"]) +
if_android(["-DMACE_ENABLE_OPENCL",]) +
if_hexagon_enabled(["-DMACE_ENABLE_HEXAGON"]),
linkopts = ["-fopenmp"], linkopts = ["-fopenmp"],
linkstatic = 1, linkstatic = 1,
deps = [ deps = [
"//mace/core:core", "//mace/ops:test",
"//mace/kernels:kernels", "//mace/kernels:kernels",
"//mace/ops:ops", "//mace/ops:ops",
"//mace/ops:test",
"@gtest//:gtest_main", "@gtest//:gtest_main",
], ],
) )
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册