import("//mojo/public/tools/bindings/mojom.gni")
# Library works only on desktop platforms.
-if (is_win || is_linux || is_mac) {
+if (is_win || is_linux || is_mac || is_tizen) {
config("platform_support") {
visibility = [ ":serial" ]
if (is_win) {
":test_support",
"//device:device_unittests",
"//services/device/serial",
- "//tools/battor_agent:battor_agent_lib",
]
output_name = "device_serial"
"serial_device_enumerator_win.h",
"serial_io_handler.cc",
"serial_io_handler.h",
- "serial_io_handler_posix.cc",
- "serial_io_handler_posix.h",
"serial_io_handler_win.cc",
"serial_io_handler_win.h",
]
"//third_party/re2",
]
+ if (is_posix) {
+ sources += [
+ "serial_io_handler_posix.cc",
+ "serial_io_handler_posix.h",
+ ]
+ }
if (use_udev) {
deps += [ "//device/udev_linux" ]
}
"IOKit.framework",
]
}
- }
-
- static_library("test_support") {
- # TODO(leonhsl): Merge necessary parts of TestSerialIoHandler into
- # battor_connection_impl_unittest.cc to hide serial impl completely.
- visibility = [ "//tools/battor_agent:battor_agent_unittests" ]
-
- sources = [
- "test_serial_io_handler.cc",
- "test_serial_io_handler.h",
- ]
-
- public_deps = [
- ":serial",
- ]
+ if (is_tizen) {
+ set_sources_assignment_filter([])
+ sources += [
+ "serial_device_enumerator_linux.cc",
+ "serial_device_enumerator_linux.h",
+ ]
+ set_sources_assignment_filter(sources_assignment_filter)
+ }
}
}