Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/ruy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ruy/ruy_test_ext.bzl')
-rw-r--r--ruy/ruy_test_ext.bzl19
1 files changed, 19 insertions, 0 deletions
diff --git a/ruy/ruy_test_ext.bzl b/ruy/ruy_test_ext.bzl
new file mode 100644
index 0000000..263121f
--- /dev/null
+++ b/ruy/ruy_test_ext.bzl
@@ -0,0 +1,19 @@
+"""Allows to specialize the ruy BUILD to availability of external libraries"""
+
+def ruy_test_ext_defines():
+ return select({
+ "//tools/cc_target_os:windows": [],
+ "//tools/cc_target_os:wasm": [],
+ "//tools/cc_target_os:chromiumos": ["RUY_TESTING_ON_CHROMIUMOS"],
+ "//conditions:default": ["RUY_TEST_EXTERNAL_PATHS"],
+ })
+
+def ruy_test_ext_deps():
+ return select({
+ "//tools/cc_target_os:windows": [],
+ "//conditions:default": [
+ "//third_party/eigen3",
+ "//third_party/gemmlowp",
+ "//third_party/lapack:blas",
+ ],
+ })