aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ngraph/ngraph.BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/ngraph/ngraph.BUILD')
-rw-r--r--third_party/ngraph/ngraph.BUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/third_party/ngraph/ngraph.BUILD b/third_party/ngraph/ngraph.BUILD
new file mode 100644
index 0000000000..17710b2cb9
--- /dev/null
+++ b/third_party/ngraph/ngraph.BUILD
@@ -0,0 +1,45 @@
+licenses(["notice"]) # 3-Clause BSD
+
+exports_files(["license.txt"])
+
+filegroup(
+ name = "LICENSE",
+ srcs = [
+ "license.txt",
+ ],
+ visibility = ["//visibility:public"],
+)
+
+cc_library(
+ name = "ngraph_core",
+ srcs = glob([
+ "src/ngraph/*.cpp",
+ "src/ngraph/autodiff/*.cpp",
+ "src/ngraph/builder/*.cpp",
+ "src/ngraph/descriptor/*.cpp",
+ "src/ngraph/descriptor/layout/*.cpp",
+ "src/ngraph/op/*.cpp",
+ "src/ngraph/op/util/*.cpp",
+ "src/ngraph/pattern/*.cpp",
+ "src/ngraph/pattern/*.hpp",
+ "src/ngraph/pass/*.cpp",
+ "src/ngraph/pass/*.hpp",
+ "src/ngraph/runtime/*.cpp",
+ "src/ngraph/type/*.cpp",
+ "src/ngraph/runtime/interpreter/*.cpp",
+ "src/ngraph/runtime/interpreter/*.hpp",
+ ]),
+ hdrs = glob(["src/ngraph/**/*.hpp"]),
+ deps = [
+ "@eigen_archive//:eigen",
+ "@nlohmann_json_lib",
+ ],
+ copts = [
+ "-I external/ngraph/src",
+ "-I external/nlohmann_json_lib/include/",
+ '-D SHARED_LIB_EXT=\\".so\\"',
+ '-D NGRAPH_VERSION=\\"0.5.0\\"',
+ ],
+ visibility = ["//visibility:public"],
+ alwayslink=1
+)