diff options
author | 2017-01-07 07:14:56 -0800 | |
---|---|---|
committer | 2017-01-07 07:25:59 -0800 | |
commit | 18ba73bea5864b004482efdd7de6458673eb3e1d (patch) | |
tree | 7026a016a9d4ac16a0c09b2c14ac14584c80f9f1 /tensorflow/java/BUILD | |
parent | 8047c97a98b1b569a5b37aaaadf410fa4ff076fb (diff) |
Java: Generate pom.xml with the appropriate version number.
This commit removes pom.xml and replaces it with a trivial
tool to generate it, filling in the appropriate version of
the TensorFlow runtime.
Change: 143861686
Diffstat (limited to 'tensorflow/java/BUILD')
-rw-r--r-- | tensorflow/java/BUILD | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tensorflow/java/BUILD b/tensorflow/java/BUILD index 4522c4a59e..07baa8f387 100644 --- a/tensorflow/java/BUILD +++ b/tensorflow/java/BUILD @@ -92,6 +92,20 @@ cc_binary( deps = ["//tensorflow/java/src/main/native"], ) +genrule( + name = "pom", + outs = ["pom.xml"], + cmd = "$(location generate_pom) >$@", + output_to_bindir = 1, + tools = [":generate_pom"], +) + +cc_binary( + name = "generate_pom", + srcs = ["generate_pom.cc"], + deps = ["//tensorflow/c:c_api"], +) + # System.loadLibrary() on OS X looks for ".dylib" or ".jnilib" # and no ".so". If and when https://github.com/bazelbuild/bazel/issues/914 # is resolved, perhaps this workaround rule can be removed. |