Andreas Gampe | 2a0f597 | 2017-06-27 21:02:39 -0700 | [diff] [blame] | 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 := libctsjvmtiattachagent |
| 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 | LOCAL_C_INCLUDES := $(JNI_H_INCLUDE) |
| 27 | LOCAL_HEADER_LIBRARIES := libopenjdkjvmti_headers |
| 28 | |
| 29 | LOCAL_SHARED_LIBRARIES := liblog \ |
| 30 | libdl |
| 31 | |
| 32 | # The test implementation. We get this provided by ART. |
| 33 | # Note: Needs to be "whole" as this exposes JNI functions. |
| 34 | LOCAL_WHOLE_STATIC_LIBRARIES := libctstiagent |
| 35 | |
| 36 | # Platform libraries that are not available to apps. Link in statically. |
| 37 | LOCAL_STATIC_LIBRARIES += libbase |
| 38 | |
| 39 | LOCAL_STRIP_MODULE := keep_symbols |
| 40 | |
| 41 | # Turn on all warnings. |
| 42 | LOCAL_CFLAGS := -fno-rtti \ |
| 43 | -ggdb3 \ |
| 44 | -Wall \ |
| 45 | -Wextra \ |
| 46 | -Werror \ |
| 47 | -Wunreachable-code \ |
| 48 | -Wredundant-decls \ |
| 49 | -Wshadow \ |
| 50 | -Wunused \ |
| 51 | -Wimplicit-fallthrough \ |
| 52 | -Wfloat-equal \ |
| 53 | -Wint-to-void-pointer-cast \ |
| 54 | -Wused-but-marked-unused \ |
| 55 | -Wdeprecated \ |
| 56 | -Wunreachable-code-break \ |
| 57 | -Wunreachable-code-return \ |
| 58 | -g \ |
| 59 | -O0 \ |
| 60 | |
| 61 | LOCAL_CXX_STL := libc++_static |
| 62 | |
| 63 | include $(BUILD_SHARED_LIBRARY) |