2017-10-17 18:29:33 -07:00
|
|
|
//
|
|
|
|
// Copyright (C) 2017 The Android Open Source Project
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
2018-04-27 11:51:13 -07:00
|
|
|
cc_defaults {
|
|
|
|
name: "libprotoutil_defaults",
|
2017-10-17 18:29:33 -07:00
|
|
|
|
|
|
|
cflags: [
|
|
|
|
"-Wall",
|
|
|
|
"-Werror",
|
|
|
|
"-Wno-missing-field-initializers",
|
|
|
|
"-Wno-unused-variable",
|
|
|
|
"-Wunused-parameter",
|
|
|
|
],
|
|
|
|
|
|
|
|
srcs: [
|
|
|
|
"src/EncodedBuffer.cpp",
|
2019-02-11 15:55:13 +00:00
|
|
|
"src/ProtoFileReader.cpp",
|
2017-10-17 18:29:33 -07:00
|
|
|
"src/ProtoOutputStream.cpp",
|
2019-02-11 15:55:13 +00:00
|
|
|
"src/ProtoReader.cpp",
|
2017-10-17 18:29:33 -07:00
|
|
|
"src/protobuf.cpp",
|
|
|
|
],
|
|
|
|
|
|
|
|
shared_libs: [
|
2018-04-25 16:51:40 -07:00
|
|
|
"libbase",
|
2019-02-11 15:55:13 +00:00
|
|
|
"libutils",
|
2017-10-17 18:29:33 -07:00
|
|
|
"libcutils",
|
|
|
|
"liblog",
|
|
|
|
],
|
|
|
|
}
|
2018-04-03 15:10:34 -07:00
|
|
|
|
2018-04-27 11:51:13 -07:00
|
|
|
cc_library {
|
|
|
|
name: "libprotoutil",
|
|
|
|
|
|
|
|
defaults: ["libprotoutil_defaults"],
|
|
|
|
|
|
|
|
export_include_dirs: ["include"],
|
|
|
|
}
|
|
|
|
|
2018-04-03 15:10:34 -07:00
|
|
|
cc_test {
|
|
|
|
name: "libprotoutil_test",
|
|
|
|
|
2018-04-27 11:51:13 -07:00
|
|
|
defaults: ["libprotoutil_defaults"],
|
|
|
|
|
|
|
|
local_include_dirs: ["include"],
|
|
|
|
|
2018-04-23 16:02:20 -07:00
|
|
|
srcs: ["tests/*"],
|
2018-04-03 15:10:34 -07:00
|
|
|
|
|
|
|
shared_libs: [
|
2018-04-23 16:02:20 -07:00
|
|
|
"libprotobuf-cpp-full",
|
2018-04-03 15:10:34 -07:00
|
|
|
],
|
|
|
|
|
|
|
|
static_libs: [
|
|
|
|
"libgmock",
|
|
|
|
],
|
2018-04-23 16:02:20 -07:00
|
|
|
|
|
|
|
proto: {
|
|
|
|
type: "full",
|
|
|
|
}
|
2018-04-03 15:10:34 -07:00
|
|
|
}
|