1 # Copyright (C) 2017 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 LOCAL_PATH:= $(call my-dir) 16 17 include $(CLEAR_VARS) 18 19 LOCAL_MODULE := libctsjvmtiagent 20 21 # Don't include this package in any configuration by default. 22 LOCAL_MODULE_TAGS := optional 23 24 LOCAL_SRC_FILES := cts_agent.cpp 25 26 # Tagging. 27 LOCAL_SRC_FILES += tagging.cpp 28 29 # Tracking. 30 LOCAL_SRC_FILES += tracking.cpp 31 32 # redefinition. 33 LOCAL_SRC_FILES += redefine.cpp 34 35 LOCAL_C_INCLUDES := $(JNI_H_INCLUDE) 36 LOCAL_HEADER_LIBRARIES := libopenjdkjvmti_headers 37 38 LOCAL_SHARED_LIBRARIES := liblog \ 39 libdl 40 41 # The test implementation. We get this provided by ART. 42 # Note: Needs to be "whole" as this exposes JNI functions. 43 LOCAL_WHOLE_STATIC_LIBRARIES := libctstiagent 44 45 # Platform libraries that are not available to apps. Link in statically. 46 LOCAL_STATIC_LIBRARIES += libbase 47 48 LOCAL_STRIP_MODULE := keep_symbols 49 50 # Turn on all warnings. 51 LOCAL_CFLAGS := -fno-rtti \ 52 -ggdb3 \ 53 -Wall \ 54 -Wextra \ 55 -Werror \ 56 -Wunreachable-code \ 57 -Wredundant-decls \ 58 -Wshadow \ 59 -Wunused \ 60 -Wimplicit-fallthrough \ 61 -Wfloat-equal \ 62 -Wint-to-void-pointer-cast \ 63 -Wused-but-marked-unused \ 64 -Wdeprecated \ 65 -Wunreachable-code-break \ 66 -Wunreachable-code-return \ 67 -g \ 68 -O0 \ 69 70 LOCAL_CXX_STL := libc++_static 71 72 include $(BUILD_SHARED_LIBRARY) 73