blob: 91a5d9a5493a5c569d49d58ed9d0fa972f471632 [file] [log] [blame]
Tao Baoa26e32d2017-09-28 18:46:19 -07001// Copyright (C) 2017 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15cc_library_static {
16 name: "libotafault",
17
18 srcs: [
19 "config.cpp",
20 "ota_io.cpp",
21 ],
22
23 static_libs: [
24 "libbase",
25 "liblog",
26 "libziparchive",
27 ],
28
29 export_include_dirs: [
30 "include",
31 ],
32
33 cflags: [
34 "-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS",
35 "-Wall",
36 "-Werror",
37 "-Wthread-safety",
38 "-Wthread-safety-negative",
39 ],
40}
41
42cc_test {
43 name: "otafault_test",
44
45 srcs: ["test.cpp"],
46
47 cflags: [
48 "-Wall",
49 "-Werror",
50 ],
51
52 static_executable: true,
53
54 static_libs: [
55 "libotafault",
56 "libziparchive",
57 "libbase",
58 "liblog",
59 ],
60}