Home | History | Annotate | Download | only in test_vendor_lib
      1 shared_library("test_vendor_lib") {
      2   sources = [
      3     "src/bt_vendor.cc",
      4     "src/command_packet.cc",
      5     "src/dual_mode_controller.cc",
      6     "src/event_packet.cc",
      7     "src/hci_transport.cc",
      8     "src/packet.cc",
      9     "src/packet_stream.cc",
     10     "src/test_channel_transport.cc",
     11     "src/vendor_manager.cc",
     12   ]
     13 
     14   include_dirs = [
     15     "include",
     16     "//",
     17 
     18     # TODO(dennischeng): Ideally we should need to have the lines below for
     19     # indirect includes.
     20     "//stack/include",
     21     "//third_party/libchrome:base",
     22   ]
     23 }
     24 
     25 executable("test_vendor_lib_test") {
     26   testonly = true
     27   sources = [
     28     "src/command_packet.cc",
     29     "src/event_packet.cc",
     30     "src/packet.cc",
     31     "src/packet_stream.cc",
     32     "test/hci_transport_unittest.cc",
     33     "test/packet_stream_unittest.cc",
     34   ]
     35 
     36   include_dirs = [
     37     "include",
     38     "//",
     39     "//btcore/include",
     40     "//hci/include",
     41     "//stack/include",
     42   ]
     43 
     44   deps = [
     45     "//third_party/googletest:gtest_main",
     46     "//third_party/libchrome:base",
     47     "//vendor_libs/test_vendor_lib",
     48   ]
     49 
     50   libs = [
     51     "-lpthread",
     52     "-lrt",
     53     "-ldl",
     54   ]
     55 }
     56