Damien Martin-Guillerez | f1ce35f | 2016-12-21 18:29:04 +0100 | [diff] [blame] | 1 | package( |
| 2 | default_visibility = [ |
| 3 | "//src:__subpackages__", |
| 4 | "//third_party/ijar:__subpackages__", |
| 5 | ], |
| 6 | ) |
| 7 | |
| 8 | licenses(["notice"]) # Apache 2.0 |
| 9 | |
| 10 | cc_library( |
| 11 | name = "zip", |
| 12 | srcs = [ |
| 13 | "zip.cc", |
| 14 | ] + select({ |
| 15 | "//src:windows": [ |
| 16 | "mapped_file_windows.cc", |
| 17 | ], |
Damien Martin-Guillerez | f1ce35f | 2016-12-21 18:29:04 +0100 | [diff] [blame] | 18 | "//conditions:default": [ |
| 19 | "mapped_file_unix.cc", |
| 20 | ], |
| 21 | }), |
| 22 | hdrs = [ |
| 23 | "common.h", |
| 24 | "mapped_file.h", |
| 25 | "zip.h", |
| 26 | ], |
Laszlo Csomor | 76a76a7 | 2018-10-26 04:58:18 -0700 | [diff] [blame] | 27 | visibility = [ |
| 28 | "//src:__subpackages__", |
| 29 | "//third_party/ijar:__subpackages__", |
| 30 | "//tools/test:__pkg__", |
| 31 | ], |
Damien Martin-Guillerez | f1ce35f | 2016-12-21 18:29:04 +0100 | [diff] [blame] | 32 | deps = [ |
| 33 | ":platform_utils", |
| 34 | ":zlib_client", |
Laszlo Csomor | b2f1e19 | 2017-03-03 09:41:53 +0000 | [diff] [blame] | 35 | ] + select({ |
| 36 | "//src:windows": [ |
| 37 | "//src/main/cpp/util:errors", |
ccalvarin | ac69da0 | 2018-06-05 15:27:26 -0700 | [diff] [blame] | 38 | "//src/main/cpp/util:filesystem", |
ccalvarin | 8448f57 | 2018-04-06 12:42:09 -0700 | [diff] [blame] | 39 | "//src/main/cpp/util:logging", |
| 40 | "//src/main/cpp/util:strings", |
Laszlo Csomor | b2f1e19 | 2017-03-03 09:41:53 +0000 | [diff] [blame] | 41 | ], |
Laszlo Csomor | b2f1e19 | 2017-03-03 09:41:53 +0000 | [diff] [blame] | 42 | "//conditions:default": [ |
| 43 | ], |
| 44 | }), |
Damien Martin-Guillerez | f1ce35f | 2016-12-21 18:29:04 +0100 | [diff] [blame] | 45 | ) |
| 46 | |
| 47 | cc_library( |
| 48 | name = "zlib_client", |
| 49 | srcs = ["zlib_client.cc"], |
| 50 | hdrs = [ |
| 51 | "common.h", |
| 52 | "zlib_client.h", |
| 53 | ], |
| 54 | deps = ["//third_party/zlib"], |
| 55 | ) |
| 56 | |
| 57 | cc_library( |
| 58 | name = "platform_utils", |
| 59 | srcs = ["platform_utils.cc"], |
| 60 | hdrs = [ |
| 61 | "common.h", |
| 62 | "platform_utils.h", |
| 63 | ], |
| 64 | visibility = ["//visibility:private"], |
Laszlo Csomor | b2f1e19 | 2017-03-03 09:41:53 +0000 | [diff] [blame] | 65 | deps = [ |
| 66 | "//src/main/cpp/util:errors", |
ccalvarin | ac69da0 | 2018-06-05 15:27:26 -0700 | [diff] [blame] | 67 | "//src/main/cpp/util:filesystem", |
ccalvarin | 8448f57 | 2018-04-06 12:42:09 -0700 | [diff] [blame] | 68 | "//src/main/cpp/util:logging", |
Laszlo Csomor | b2f1e19 | 2017-03-03 09:41:53 +0000 | [diff] [blame] | 69 | ], |
Damien Martin-Guillerez | f1ce35f | 2016-12-21 18:29:04 +0100 | [diff] [blame] | 70 | ) |
| 71 | |
| 72 | cc_binary( |
| 73 | name = "zipper", |
| 74 | srcs = ["zip_main.cc"], |
| 75 | visibility = ["//visibility:public"], |
| 76 | deps = [":zip"], |
| 77 | ) |
| 78 | |
| 79 | cc_binary( |
| 80 | name = "ijar", |
| 81 | srcs = [ |
| 82 | "classfile.cc", |
| 83 | "ijar.cc", |
| 84 | ], |
| 85 | visibility = ["//visibility:public"], |
| 86 | deps = [":zip"], |
| 87 | ) |
| 88 | |
| 89 | filegroup( |
| 90 | name = "srcs", |
| 91 | srcs = glob(["**"]) + ["//third_party/ijar/test:srcs"], |
| 92 | visibility = ["//third_party:__pkg__"], |
Laszlo Csomor | 9f15d15 | 2017-03-01 15:55:34 +0000 | [diff] [blame] | 93 | ) |
Xin Gao | 33d05f6 | 2017-06-21 17:13:23 +0200 | [diff] [blame] | 94 | |
| 95 | filegroup( |
| 96 | name = "embedded_tools", |
| 97 | srcs = glob(["**"]), |
| 98 | visibility = ["//visibility:public"], |
| 99 | ) |