1# Copyright (C) 2016 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_PATH:= $(call my-dir) 16include $(CLEAR_VARS) 17 18LOCAL_MODULE := incidentd 19 20LOCAL_SRC_FILES := \ 21 src/FdBuffer.cpp \ 22 src/IncidentService.cpp \ 23 src/Reporter.cpp \ 24 src/Section.cpp \ 25 src/main.cpp \ 26 src/protobuf.cpp \ 27 src/report_directory.cpp \ 28 src/section_list.cpp 29 30LOCAL_CFLAGS += \ 31 -Wall -Werror -Wno-missing-field-initializers -Wno-unused-variable -Wunused-parameter 32 33ifeq (debug,) 34 LOCAL_CFLAGS += \ 35 -g -O0 36else 37 # optimize for size (protobuf glop can get big) 38 LOCAL_CFLAGS += \ 39 -Os 40endif 41 42LOCAL_SHARED_LIBRARIES := \ 43 libbase \ 44 libbinder \ 45 libcutils \ 46 libincident \ 47 liblog \ 48 libselinux \ 49 libservices \ 50 libutils 51 52ifeq (BUILD_WITH_INCIDENTD_RC,true) 53LOCAL_INIT_RC := incidentd.rc 54endif 55 56include $(BUILD_EXECUTABLE) 57