blob: 8ecf31592170221e8577c5d9582cd71e5bcf84ba [file] [log] [blame]
Andreas Gampe10b407e2017-03-31 13:55:03 -07001# 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 := libctsjvmtiagent
20
21# Don't include this package in any configuration by default.
22LOCAL_MODULE_TAGS := optional
23
Andreas Gampe7a10cb42017-04-05 10:20:25 -070024LOCAL_SRC_FILES := cts_agent.cpp
Andreas Gampe10b407e2017-03-31 13:55:03 -070025
Andreas Gampeb6bdec82017-04-03 15:45:24 -070026# Tagging.
27LOCAL_SRC_FILES += tagging.cpp
28
Andreas Gampee205aab2017-04-03 17:27:12 -070029# Tracking.
30LOCAL_SRC_FILES += tracking.cpp
31
Andreas Gampe6068a2a2017-04-03 17:28:23 -070032# redefinition.
33LOCAL_SRC_FILES += redefine.cpp
34
Andreas Gampe10b407e2017-03-31 13:55:03 -070035LOCAL_C_INCLUDES := $(JNI_H_INCLUDE)
36LOCAL_HEADER_LIBRARIES := libopenjdkjvmti_headers
37
38LOCAL_SHARED_LIBRARIES := liblog \
Andreas Gampe9abbbce2018-02-20 11:49:26 -080039 libdl \
40 libz
Andreas Gampe10b407e2017-03-31 13:55:03 -070041
Andreas Gampe7a10cb42017-04-05 10:20:25 -070042# The test implementation. We get this provided by ART.
43# Note: Needs to be "whole" as this exposes JNI functions.
44LOCAL_WHOLE_STATIC_LIBRARIES := libctstiagent
45
Andreas Gampebe426242018-02-12 18:26:30 -080046# Platform libraries that may not be available to apps. Link in statically.
Andreas Gampe9abbbce2018-02-20 11:49:26 -080047LOCAL_STATIC_LIBRARIES += libbase_ndk
Andreas Gampe10b407e2017-03-31 13:55:03 -070048
Andreas Gampe6068a2a2017-04-03 17:28:23 -070049LOCAL_STRIP_MODULE := keep_symbols
50
Andreas Gampe10b407e2017-03-31 13:55:03 -070051# Turn on all warnings.
Andreas Gampe89e55322017-04-04 10:49:02 -070052LOCAL_CFLAGS := -fno-rtti \
Andreas Gampe10b407e2017-03-31 13:55:03 -070053 -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 Gampe9abbbce2018-02-20 11:49:26 -080071LOCAL_SDK_VERSION := current
72LOCAL_NDK_STL_VARIANT := c++_static
Andreas Gampe10b407e2017-03-31 13:55:03 -070073
74include $(BUILD_SHARED_LIBRARY)