Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 1 | // |
| 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. |
Yi Jin | 18678bd | 2018-04-27 11:51:13 -0700 | [diff] [blame] | 15 | cc_defaults { |
| 16 | name: "libprotoutil_defaults", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 17 | |
| 18 | cflags: [ |
| 19 | "-Wall", |
| 20 | "-Werror", |
| 21 | "-Wno-missing-field-initializers", |
| 22 | "-Wno-unused-variable", |
| 23 | "-Wunused-parameter", |
| 24 | ], |
| 25 | |
| 26 | srcs: [ |
| 27 | "src/EncodedBuffer.cpp", |
| 28 | "src/ProtoOutputStream.cpp", |
| 29 | "src/protobuf.cpp", |
| 30 | ], |
| 31 | |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 32 | shared_libs: [ |
Yi Jin | c5b71ee | 2018-04-25 16:51:40 -0700 | [diff] [blame] | 33 | "libbase", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 34 | "libcutils", |
| 35 | "liblog", |
| 36 | ], |
| 37 | } |
Yi Jin | ad3e6e5 | 2018-04-03 15:10:34 -0700 | [diff] [blame] | 38 | |
Yi Jin | 18678bd | 2018-04-27 11:51:13 -0700 | [diff] [blame] | 39 | cc_library { |
| 40 | name: "libprotoutil", |
| 41 | |
| 42 | defaults: ["libprotoutil_defaults"], |
| 43 | |
| 44 | export_include_dirs: ["include"], |
| 45 | } |
| 46 | |
Yi Jin | ad3e6e5 | 2018-04-03 15:10:34 -0700 | [diff] [blame] | 47 | cc_test { |
| 48 | name: "libprotoutil_test", |
| 49 | |
Yi Jin | 18678bd | 2018-04-27 11:51:13 -0700 | [diff] [blame] | 50 | defaults: ["libprotoutil_defaults"], |
| 51 | |
| 52 | local_include_dirs: ["include"], |
| 53 | |
Yi Jin | c3d4b28 | 2018-04-23 16:02:20 -0700 | [diff] [blame] | 54 | srcs: ["tests/*"], |
Yi Jin | ad3e6e5 | 2018-04-03 15:10:34 -0700 | [diff] [blame] | 55 | |
| 56 | shared_libs: [ |
Yi Jin | c3d4b28 | 2018-04-23 16:02:20 -0700 | [diff] [blame] | 57 | "libprotobuf-cpp-full", |
Yi Jin | ad3e6e5 | 2018-04-03 15:10:34 -0700 | [diff] [blame] | 58 | ], |
| 59 | |
| 60 | static_libs: [ |
| 61 | "libgmock", |
| 62 | ], |
Yi Jin | c3d4b28 | 2018-04-23 16:02:20 -0700 | [diff] [blame] | 63 | |
| 64 | proto: { |
| 65 | type: "full", |
| 66 | } |
Yi Jin | ad3e6e5 | 2018-04-03 15:10:34 -0700 | [diff] [blame] | 67 | } |