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