aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ijar/BUILD
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-12-21 18:29:04 +0100
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-12-21 18:29:04 +0100
commitf1ce35f4691fa5cd8849bf8944d1a4bdd2393690 (patch)
tree8687d77030d82048b53612e0bce816555dd46dd2 /third_party/ijar/BUILD
parentb649428620711c12ba18f7f1477d36742f267a31 (diff)
Commit 6d31cb was an internal reorganization of google repository that should have resulted in no change. Due to a bug in our export process it deleted several files in third_party.
Diffstat (limited to 'third_party/ijar/BUILD')
-rw-r--r--third_party/ijar/BUILD77
1 files changed, 77 insertions, 0 deletions
diff --git a/third_party/ijar/BUILD b/third_party/ijar/BUILD
new file mode 100644
index 0000000000..41376208aa
--- /dev/null
+++ b/third_party/ijar/BUILD
@@ -0,0 +1,77 @@
+package(
+ default_visibility = [
+ "//src:__subpackages__",
+ "//third_party/ijar:__subpackages__",
+ ],
+)
+
+licenses(["notice"]) # Apache 2.0
+
+cc_library(
+ name = "zip",
+ srcs = [
+ "zip.cc",
+ ] + select({
+ "//src:windows": [
+ "mapped_file_windows.cc",
+ ],
+ "//src:windows_msvc": [
+ "mapped_file_windows.cc",
+ ],
+ "//conditions:default": [
+ "mapped_file_unix.cc",
+ ],
+ }),
+ hdrs = [
+ "common.h",
+ "mapped_file.h",
+ "zip.h",
+ ],
+ deps = [
+ ":platform_utils",
+ ":zlib_client",
+ ],
+)
+
+cc_library(
+ name = "zlib_client",
+ srcs = ["zlib_client.cc"],
+ hdrs = [
+ "common.h",
+ "zlib_client.h",
+ ],
+ deps = ["//third_party/zlib"],
+)
+
+cc_library(
+ name = "platform_utils",
+ srcs = ["platform_utils.cc"],
+ hdrs = [
+ "common.h",
+ "platform_utils.h",
+ ],
+ visibility = ["//visibility:private"],
+)
+
+cc_binary(
+ name = "zipper",
+ srcs = ["zip_main.cc"],
+ visibility = ["//visibility:public"],
+ deps = [":zip"],
+)
+
+cc_binary(
+ name = "ijar",
+ srcs = [
+ "classfile.cc",
+ "ijar.cc",
+ ],
+ visibility = ["//visibility:public"],
+ deps = [":zip"],
+)
+
+filegroup(
+ name = "srcs",
+ srcs = glob(["**"]) + ["//third_party/ijar/test:srcs"],
+ visibility = ["//third_party:__pkg__"],
+)