blob: 16f2bc1725fe1e6946368ab968646ff228a2e9da [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 \
30 libdl
31
32# The test implementation. We get this provided by ART.
33# Note: Needs to be "whole" as this exposes JNI functions.
34LOCAL_WHOLE_STATIC_LIBRARIES := libctstiagent
35
36# Platform libraries that are not available to apps. Link in statically.
37LOCAL_STATIC_LIBRARIES += libbase
38
39LOCAL_STRIP_MODULE := keep_symbols
40
41# Turn on all warnings.
42LOCAL_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
61LOCAL_CXX_STL := libc++_static
62
63include $(BUILD_SHARED_LIBRARY)