1// Copyright (C) 2021 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 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19cc_library_shared { 20 name: "libDdmsTestAgent", 21 22 srcs: [ 23 "agent/ddms_agent.cc", 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 // Platform libraries that may not be available to apps. Link in statically. 38 static_libs: ["libbase_ndk"], 39 40 strip: { 41 keep_symbols: true, 42 }, 43 44 cflags: [ 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 ], 62 63 sdk_version: "current", 64 compile_multilib: "both", 65 stl: "c++_static", 66} 67 68android_test_helper_app { 69 name: "CtsJdwpTunnelDdmsSampleApp", 70 71 dex_preopt: { 72 enabled: false, 73 }, 74 75 optimize: { 76 enabled: false, 77 }, 78 79 srcs: ["src/**/*.java"], 80 jni_libs: ["libDdmsTestAgent"], 81 82 compile_multilib: "both", 83 sdk_version: "current", 84} 85