| 1 |
// Copyright (C) 2019 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 |
|
| 15 |
// A convenient library to convert any JSON string to a specific Protobuf |
| 16 |
// message using reflection. |
| 17 |
|
| 18 |
cc_library_static { |
| 19 |
name: "libjsonpbparse", |
| 20 |
host_supported: true, |
| 21 |
|
| 22 |
// DO NOT make it vendor_available / recovery_available; it doesn't know |
| 23 |
// how to ignore unknown fields yet. Use it only for testing purposes. |
| 24 |
// TODO(b/123664216): Make it understand unknown fields when libprotobuf is |
| 25 |
// updated to version 3.1+, and let libprocessgroup to use this instead of |
| 26 |
// libjsoncpp. |
| 27 |
vendor_available: false, |
| 28 |
recovery_available: false, |
| 29 |
|
| 30 |
export_include_dirs: ["include"], |
| 31 |
cflags: [ |
| 32 |
"-Wall", |
| 33 |
"-Werror", |
| 34 |
"-Wno-unused-parameter", |
| 35 |
], |
| 36 |
srcs: [ |
| 37 |
"jsonpb.cpp", |
| 38 |
], |
| 39 |
shared_libs: [ |
| 40 |
"libbase", |
| 41 |
"libprotobuf-cpp-full", |
| 42 |
], |
| 43 |
} |