Andreas Gampe | 10b407e | 2017-03-31 13:55:03 -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 := libctsjvmtiagent |
| 20 | |
| 21 | # Don't include this package in any configuration by default. |
| 22 | LOCAL_MODULE_TAGS := optional |
| 23 | |
Andreas Gampe | 7a10cb4 | 2017-04-05 10:20:25 -0700 | [diff] [blame] | 24 | LOCAL_SRC_FILES := cts_agent.cpp |
Andreas Gampe | 10b407e | 2017-03-31 13:55:03 -0700 | [diff] [blame] | 25 | |
Andreas Gampe | b6bdec8 | 2017-04-03 15:45:24 -0700 | [diff] [blame] | 26 | # Tagging. |
| 27 | LOCAL_SRC_FILES += tagging.cpp |
| 28 | |
Andreas Gampe | e205aab | 2017-04-03 17:27:12 -0700 | [diff] [blame] | 29 | # Tracking. |
| 30 | LOCAL_SRC_FILES += tracking.cpp |
| 31 | |
Andreas Gampe | 6068a2a | 2017-04-03 17:28:23 -0700 | [diff] [blame] | 32 | # redefinition. |
| 33 | LOCAL_SRC_FILES += redefine.cpp |
| 34 | |
Andreas Gampe | 10b407e | 2017-03-31 13:55:03 -0700 | [diff] [blame] | 35 | LOCAL_C_INCLUDES := $(JNI_H_INCLUDE) |
| 36 | LOCAL_HEADER_LIBRARIES := libopenjdkjvmti_headers |
| 37 | |
| 38 | LOCAL_SHARED_LIBRARIES := liblog \ |
Andreas Gampe | 9abbbce | 2018-02-20 11:49:26 -0800 | [diff] [blame^] | 39 | libdl \ |
| 40 | libz |
Andreas Gampe | 10b407e | 2017-03-31 13:55:03 -0700 | [diff] [blame] | 41 | |
Andreas Gampe | 7a10cb4 | 2017-04-05 10:20:25 -0700 | [diff] [blame] | 42 | # The test implementation. We get this provided by ART. |
| 43 | # Note: Needs to be "whole" as this exposes JNI functions. |
| 44 | LOCAL_WHOLE_STATIC_LIBRARIES := libctstiagent |
| 45 | |
Andreas Gampe | be42624 | 2018-02-12 18:26:30 -0800 | [diff] [blame] | 46 | # Platform libraries that may not be available to apps. Link in statically. |
Andreas Gampe | 9abbbce | 2018-02-20 11:49:26 -0800 | [diff] [blame^] | 47 | LOCAL_STATIC_LIBRARIES += libbase_ndk |
Andreas Gampe | 10b407e | 2017-03-31 13:55:03 -0700 | [diff] [blame] | 48 | |
Andreas Gampe | 6068a2a | 2017-04-03 17:28:23 -0700 | [diff] [blame] | 49 | LOCAL_STRIP_MODULE := keep_symbols |
| 50 | |
Andreas Gampe | 10b407e | 2017-03-31 13:55:03 -0700 | [diff] [blame] | 51 | # Turn on all warnings. |
Andreas Gampe | 89e5532 | 2017-04-04 10:49:02 -0700 | [diff] [blame] | 52 | LOCAL_CFLAGS := -fno-rtti \ |
Andreas Gampe | 10b407e | 2017-03-31 13:55:03 -0700 | [diff] [blame] | 53 | -ggdb3 \ |
| 54 | -Wall \ |
| 55 | -Wextra \ |
| 56 | -Werror \ |
| 57 | -Wunreachable-code \ |
| 58 | -Wredundant-decls \ |
| 59 | -Wshadow \ |
| 60 | -Wunused \ |
| 61 | -Wimplicit-fallthrough \ |
| 62 | -Wfloat-equal \ |
| 63 | -Wint-to-void-pointer-cast \ |
| 64 | -Wused-but-marked-unused \ |
| 65 | -Wdeprecated \ |
| 66 | -Wunreachable-code-break \ |
| 67 | -Wunreachable-code-return \ |
| 68 | -g \ |
| 69 | -O0 \ |
| 70 | |
Andreas Gampe | 9abbbce | 2018-02-20 11:49:26 -0800 | [diff] [blame^] | 71 | LOCAL_SDK_VERSION := current |
| 72 | LOCAL_NDK_STL_VARIANT := c++_static |
Andreas Gampe | 10b407e | 2017-03-31 13:55:03 -0700 | [diff] [blame] | 73 | |
| 74 | include $(BUILD_SHARED_LIBRARY) |