forked from MIPS/external-puffin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.bp
115 lines (111 loc) · 2.33 KB
/
Android.bp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
cc_defaults {
name: "puffin_defaults",
host_supported: true,
shared_libs: [
"libbrillo",
"libchrome",
"libprotobuf-cpp-lite",
],
static_libs: [
"libbrotli",
"libbz",
],
export_include_dirs: ["src/include"],
cflags: [
"-DUSE_BRILLO=1",
"-D_FILE_OFFSET_BITS=64",
"-DZLIB_CONST",
"-Wall",
"-Werror",
"-Wextra",
],
target: {
darwin: {
enabled: false,
},
},
}
cc_library_static {
name: "libpuffpatch",
defaults: ["puffin_defaults"],
srcs: [
"puffin/src/puffin.proto",
"src/bit_reader.cc",
"src/bit_writer.cc",
"src/huffer.cc",
"src/huffman_table.cc",
"src/puff_reader.cc",
"src/puff_writer.cc",
"src/puffer.cc",
"src/puffin_stream.cc",
"src/puffpatch.cc",
],
static_libs: [
"libbspatch",
],
proto: {
type: "lite",
export_proto_headers: true,
},
}
cc_library_static {
name: "libpuffdiff",
defaults: ["puffin_defaults"],
srcs: [
"src/file_stream.cc",
"src/memory_stream.cc",
"src/puffdiff.cc",
"src/utils.cc",
],
static_libs: [
"libbsdiff",
"libpuffpatch",
"libz",
],
}
cc_binary {
name: "puffin",
defaults: ["puffin_defaults"],
srcs: [
"src/extent_stream.cc",
"src/main.cc",
],
static_libs: [
"libbsdiff",
"libbspatch",
"libdivsufsort",
"libdivsufsort64",
"libpuffdiff",
"libpuffpatch",
"libz",
],
}
cc_test {
name: "puffin_unittest",
defaults: ["puffin_defaults"],
test_suites: ["device-tests"],
cflags: ["-Wno-sign-compare"],
srcs: [
"src/bit_io_unittest.cc",
"src/extent_stream.cc",
"src/patching_unittest.cc",
"src/puff_io_unittest.cc",
"src/puffin_unittest.cc",
"src/sample_generator.cc",
"src/stream_unittest.cc",
"src/testrunner.cc",
"src/unittest_common.cc",
"src/utils_unittest.cc",
],
shared_libs: [
"libz",
],
static_libs: [
"libbsdiff",
"libbspatch",
"libdivsufsort",
"libdivsufsort64",
"libpuffdiff",
"libpuffpatch",
],
}