Home | History | Annotate | Download | only in tests
      1 //
      2 // Copyright (C) 2016 The Android Open Source Project
      3 //
      4 // Licensed under the Apache License, Version 2.0 (the "License");
      5 // you may not use this file except in compliance with the License.
      6 // You may obtain a copy of the License at
      7 //
      8 //      http://www.apache.org/licenses/LICENSE-2.0
      9 //
     10 // Unless required by applicable law or agreed to in writing, software
     11 // distributed under the License is distributed on an "AS IS" BASIS,
     12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13 // See the License for the specific language governing permissions and
     14 // limitations under the License.
     15 //
     16 
     17 cc_test {
     18     name: "mq_test_client",
     19     srcs: ["msgq_test_client.cpp"],
     20 
     21     cflags: [
     22         "-Wall",
     23         "-Werror",
     24     ],
     25 
     26     shared_libs: [
     27         "libbase",
     28         "libcutils",
     29         "libfmq",
     30         "libhidlbase",
     31         "libhidltransport",
     32         "libhwbinder",
     33         "liblog",
     34         "libutils",
     35     ],
     36 
     37     // Allow dlsym'ing self for statically linked passthrough implementations
     38     ldflags: ["-rdynamic"],
     39 
     40     // These are static libs only for testing purposes and portability. Shared
     41     // libs should be used on device.
     42     static_libs: ["android.hardware.tests.msgq (a] 1.0"],
     43     whole_static_libs: ["android.hardware.tests.msgq (a] 1.0-impl"],
     44 }
     45 
     46 cc_test {
     47     name: "mq_test",
     48 
     49     srcs: ["mq_test.cpp"],
     50     shared_libs: [
     51         "libbase",
     52         "libcutils",
     53         "libfmq",
     54         "libhidlbase",
     55         "libhidltransport",
     56         "libhwbinder",
     57         "liblog",
     58         "libutils",
     59     ],
     60 
     61     cflags: [
     62         "-Wall",
     63         "-Werror",
     64     ],
     65 }
     66