blob: 0415c87fdd97a67353758dab17907f6ddc78eba6 [file] [log] [blame]
Serge Bazanski140bddc2020-06-05 21:01:19 +02001Copyright 2020 The Monogon Project Authors.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14
15
16diff -urN com_github_lz4_lz4.orig/lib/BUILD com_github_lz4_lz4/lib/BUILD
17--- com_github_lz4_lz4.orig/lib/BUILD 1970-01-01 01:00:00.000000000 +0100
18+++ com_github_lz4_lz4/lib/BUILD 2020-06-05 22:00:01.056028668 +0200
19@@ -0,0 +1,19 @@
20+cc_library(
21+ name = "lib",
22+ srcs = [
23+ "lz4frame.c",
24+ "lz4.c",
25+ "lz4hc.c",
26+ "xxhash.c",
27+ ],
28+ hdrs = [
29+ # Yes, this is also a header. lib/lz4hc.c includes it.
30+ "lz4.c",
31+ "lz4.h",
32+ "lz4frame.h",
33+ "lz4hc.h",
34+ "xxhash.h",
35+ ],
36+ strip_include_prefix = "//lib",
37+ visibility = ["//visibility:public"],
38+)
39diff -urN com_github_lz4_lz4.orig/programs/BUILD com_github_lz4_lz4/programs/BUILD
40--- com_github_lz4_lz4.orig/programs/BUILD 1970-01-01 01:00:00.000000000 +0100
41+++ com_github_lz4_lz4/programs/BUILD 2020-06-05 21:59:06.233821791 +0200
42@@ -0,0 +1,22 @@
43+cc_binary(
44+ name = "lz4",
45+ srcs = [
46+ "lz4cli.c",
47+
48+ "lz4io.h",
49+ "lz4io.c",
50+
51+ "bench.h",
52+ "bench.c",
53+
54+ "datagen.h",
55+ "datagen.c",
56+
57+ "platform.h",
58+ "util.h",
59+ ],
60+ deps = [
61+ "//lib",
62+ ],
63+ visibility = ["//visibility:public"],
64+)
65diff -urN com_github_lz4_lz4.orig/WORKSPACE com_github_lz4_lz4/WORKSPACE
66--- com_github_lz4_lz4.orig/WORKSPACE 1970-01-01 01:00:00.000000000 +0100
67+++ com_github_lz4_lz4/WORKSPACE 2020-06-05 21:50:45.128930780 +0200
68@@ -0,0 +1 @@
69+workspace(name = "com_github_lz4_lz4")