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 15cc_library_shared { 16 name: "libctsjvmtiagent", 17 18 srcs: [ 19 "cts_agent.cpp", 20 "cts_logging.cpp", 21 "tagging.cpp", 22 "tracking.cpp", 23 "redefine.cpp", 24 ], 25 26 header_libs: [ 27 "libopenjdkjvmti_headers", 28 ], 29 30 shared_libs: [ 31 "liblog", 32 "libdl", 33 "libz", 34 ], 35 36 // The test implementation. We get this provided by ART. 37 // Note: Needs to be "whole" as this exposes JNI functions. 38 whole_static_libs: ["libctstiagent"], 39 40 // Platform libraries that may not be available to apps. Link in statically. 41 static_libs: ["libbase_ndk"], 42 43 strip: { 44 keep_symbols: true, 45 }, 46 47 cflags: [ 48 "-Wall", 49 "-Wextra", 50 "-Werror", 51 "-Wunreachable-code", 52 "-Wredundant-decls", 53 "-Wshadow", 54 "-Wunused", 55 "-Wimplicit-fallthrough", 56 "-Wfloat-equal", 57 "-Wint-to-void-pointer-cast", 58 "-Wused-but-marked-unused", 59 "-Wdeprecated", 60 "-Wunreachable-code-break", 61 "-Wunreachable-code-return", 62 "-g", 63 "-O0", 64 ], 65 66 sdk_version: "current", 67 stl: "c++_static", 68} 69