1# Copyright (C) 2020 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 15LOCAL_DIR := $(GET_LOCAL_DIR) 16 17MODULE := $(LOCAL_DIR) 18 19PROTOBUF := $(if $(wildcard external/protobuf),external/protobuf/src,prebuilts/libprotobuf/src) 20 21MODULE_SRCS := \ 22 $(PROTOBUF)/google/protobuf/any_lite.cc \ 23 $(PROTOBUF)/google/protobuf/arena.cc \ 24 $(PROTOBUF)/google/protobuf/arenastring.cc \ 25 $(PROTOBUF)/google/protobuf/extension_set.cc \ 26 $(PROTOBUF)/google/protobuf/generated_enum_util.cc \ 27 $(PROTOBUF)/google/protobuf/generated_message_util.cc \ 28 $(PROTOBUF)/google/protobuf/implicit_weak_message.cc \ 29 $(PROTOBUF)/google/protobuf/io/coded_stream.cc \ 30 $(PROTOBUF)/google/protobuf/io/io_win32.cc \ 31 $(PROTOBUF)/google/protobuf/io/strtod.cc \ 32 $(PROTOBUF)/google/protobuf/io/zero_copy_stream.cc \ 33 $(PROTOBUF)/google/protobuf/io/zero_copy_stream_impl.cc \ 34 $(PROTOBUF)/google/protobuf/io/zero_copy_stream_impl_lite.cc \ 35 $(PROTOBUF)/google/protobuf/message_lite.cc \ 36 $(PROTOBUF)/google/protobuf/parse_context.cc \ 37 $(PROTOBUF)/google/protobuf/repeated_field.cc \ 38 $(PROTOBUF)/google/protobuf/repeated_ptr_field.cc \ 39 $(PROTOBUF)/google/protobuf/stubs/bytestream.cc \ 40 $(PROTOBUF)/google/protobuf/stubs/common.cc \ 41 $(PROTOBUF)/google/protobuf/stubs/int128.cc \ 42 $(PROTOBUF)/google/protobuf/stubs/status.cc \ 43 $(PROTOBUF)/google/protobuf/stubs/statusor.cc \ 44 $(PROTOBUF)/google/protobuf/stubs/stringpiece.cc \ 45 $(PROTOBUF)/google/protobuf/stubs/stringprintf.cc \ 46 $(PROTOBUF)/google/protobuf/stubs/structurally_valid.cc \ 47 $(PROTOBUF)/google/protobuf/stubs/strutil.cc \ 48 $(PROTOBUF)/google/protobuf/stubs/time.cc \ 49 $(PROTOBUF)/google/protobuf/wire_format_lite.cc \ 50 51MODULE_CPPFLAGS := -Wno-sign-compare 52 53MODULE_LIBRARY_DEPS := \ 54 trusty/user/base/lib/libc-trusty \ 55 trusty/user/base/lib/libstdc++-trusty \ 56 57MODULE_INCLUDES := $(LOCAL_DIR) 58 59MODULE_EXPORT_INCLUDES += \ 60 $(PROTOBUF) \ 61 62include make/library.mk 63