blob: 7ad83ca796953809eb64b5cf0fe5e3fc455a12d5 [file] [log] [blame]
Yi Jin04625ad2017-10-17 18:29:33 -07001//
2// Copyright (C) 2017 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16cc_library {
17 name: "libprotoutil",
18
19 cflags: [
20 "-Wall",
21 "-Werror",
22 "-Wno-missing-field-initializers",
23 "-Wno-unused-variable",
24 "-Wunused-parameter",
25 ],
26
27 srcs: [
28 "src/EncodedBuffer.cpp",
29 "src/ProtoOutputStream.cpp",
30 "src/protobuf.cpp",
31 ],
32
33 export_include_dirs: ["include"],
34
35 shared_libs: [
36 "libcutils",
37 "liblog",
38 ],
39}
Yi Jinad3e6e52018-04-03 15:10:34 -070040
41cc_test {
42 name: "libprotoutil_test",
43
44 srcs: [
45 "tests/EncodedBuffer_test.cpp",
46 ],
47
48 shared_libs: [
49 "libcutils",
50 "libprotoutil",
51 ],
52
53 static_libs: [
54 "libgmock",
55 ],
56}