aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ijar/BUILD
diff options
context:
space:
mode:
authorGravatar Laszlo Csomor <laszlocsomor@google.com>2017-03-02 14:02:58 +0000
committerGravatar Yue Gan <yueg@google.com>2017-03-03 10:35:13 +0000
commit69a127b8f4e353ecb163688ed3271fb47e0f385d (patch)
tree7720104bed33eef0f82f339ec9b0f8185e20e4de /third_party/ijar/BUILD
parent55b20c4a50642d8f1ac11cb721ecd5831f02dd76 (diff)
ijar: use bazel's file utilities
This change not only implements ijar for Windows (with MSVC), but also fixes a bug in mapped_file_windows (path conversion didn't make the input path absolute, so we could not build java code with the MSYS-less bazel). Fixes https://github.com/bazelbuild/bazel/issues/2157 -- PiperOrigin-RevId: 148995025 MOS_MIGRATED_REVID=148995025
Diffstat (limited to 'third_party/ijar/BUILD')
-rw-r--r--third_party/ijar/BUILD27
1 files changed, 16 insertions, 11 deletions
diff --git a/third_party/ijar/BUILD b/third_party/ijar/BUILD
index 5e97bc84c6..7836ea1bd9 100644
--- a/third_party/ijar/BUILD
+++ b/third_party/ijar/BUILD
@@ -30,7 +30,18 @@ cc_library(
deps = [
":platform_utils",
":zlib_client",
- ],
+ ] + select({
+ "//src:windows": [
+ "//src/main/cpp/util:errors",
+ "//src/main/cpp/util:file",
+ ],
+ "//src:windows_msvc": [
+ "//src/main/cpp/util:errors",
+ "//src/main/cpp/util:file",
+ ],
+ "//conditions:default": [
+ ],
+ }),
)
cc_library(
@@ -51,16 +62,10 @@ cc_library(
"platform_utils.h",
],
visibility = ["//visibility:private"],
- deps = select({
- "//src:windows": [
- "//src/main/cpp/util:file",
- ],
- "//src:windows_msvc": [
- "//src/main/cpp/util:file",
- ],
- "//conditions:default": [
- ],
- }),
+ deps = [
+ "//src/main/cpp/util:errors",
+ "//src/main/cpp/util:file",
+ ],
)
cc_binary(