blob: a2c1db62e5ab804da0e05327f06d881639c30e23 [file] [log] [blame]
Andreas Gampe2a0f5972017-06-27 21:02:39 -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 := 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 \
Andreas Gampe9abbbce2018-02-20 11:49:26 -080030 libdl \
31 libz
Andreas Gampe2a0f5972017-06-27 21:02:39 -070032
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
Andreas Gampebe426242018-02-12 18:26:30 -080037# Platform libraries that may not be available to apps. Link in statically.
Andreas Gampe9abbbce2018-02-20 11:49:26 -080038LOCAL_STATIC_LIBRARIES += libbase_ndk
Andreas Gampe2a0f5972017-06-27 21:02:39 -070039
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
Andreas Gampe9abbbce2018-02-20 11:49:26 -080062LOCAL_SDK_VERSION := current
63LOCAL_NDK_STL_VARIANT := c++_static
Andreas Gampe2a0f5972017-06-27 21:02:39 -070064
65include $(BUILD_SHARED_LIBRARY)