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