1 # 2 # Copyright (C) 2015 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. 15 # 16 17 LOCAL_PATH := $(call my-dir) 18 19 include $(CLEAR_VARS) 20 21 LOCAL_SRC_FILES := \ 22 crash_dispatcher.cc \ 23 24 LOCAL_CPP_EXTENSION := cc 25 26 LOCAL_CPPFLAGS := \ 27 -W \ 28 -Wall \ 29 -Wextra \ 30 -Wunused \ 31 -Werror \ 32 -Wno-unused-parameter \ 33 34 LOCAL_SHARED_LIBRARIES := \ 35 libbase \ 36 liblog \ 37 38 LOCAL_MODULE := crash_dispatcher 39 40 include $(BUILD_EXECUTABLE) 41 42 43 include $(CLEAR_VARS) 44 45 LOCAL_SRC_FILES := \ 46 crash_collector.cc \ 47 coredump_writer.cc \ 48 49 LOCAL_CPP_EXTENSION := cc 50 51 LOCAL_CPPFLAGS := \ 52 -W \ 53 -Wall \ 54 -Wextra \ 55 -Wunused \ 56 -Werror \ 57 -Wno-unused-parameter \ 58 59 LOCAL_SHARED_LIBRARIES := \ 60 libbase \ 61 libcutils \ 62 liblog \ 63 libutils \ 64 65 LOCAL_STATIC_LIBRARIES := \ 66 breakpad_client \ 67 68 LOCAL_MODULE := crash_collector 69 LOCAL_MODULE_STEM_32 := crash_collector32 70 LOCAL_MODULE_STEM_64 := crash_collector64 71 LOCAL_MULTILIB := both 72 73 include $(BUILD_EXECUTABLE) 74 75 76 include $(CLEAR_VARS) 77 78 LOCAL_MODULE := crash-report-provider 79 LOCAL_SRC_FILES := $(call all-java-files-under, src) 80 81 include $(BUILD_STATIC_JAVA_LIBRARY) 82 83 84 include $(CLEAR_VARS) 85 86 LOCAL_MODULE_TAGS := optional 87 LOCAL_STATIC_JAVA_LIBRARIES := crash-report-provider 88 LOCAL_PACKAGE_NAME := CrashReportProvider 89 LOCAL_CERTIFICATE := platform 90 91 include $(BUILD_PACKAGE) 92