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