Karl Wiberg | 2b85792 | 2018-03-23 14:53:54 +0100 | [diff] [blame^] | 1 | # Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license |
| 4 | # that can be found in the LICENSE file in the root of the source |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
| 8 | |
| 9 | import("../../webrtc.gni") |
| 10 | if (is_android) { |
| 11 | import("//build/config/android/config.gni") |
| 12 | import("//build/config/android/rules.gni") |
| 13 | } |
| 14 | |
| 15 | rtc_source_set("rw_lock_wrapper") { |
| 16 | public = [ |
| 17 | "rw_lock_wrapper.h", |
| 18 | ] |
| 19 | sources = [ |
| 20 | "rw_lock_wrapper.cc", |
| 21 | ] |
| 22 | deps = [ |
| 23 | "..:macromagic", |
| 24 | "../..:typedefs", |
| 25 | ] |
| 26 | if (is_win) { |
| 27 | sources += [ |
| 28 | "rw_lock_win.cc", |
| 29 | "rw_lock_win.h", |
| 30 | ] |
| 31 | deps += [ "..:logging" ] |
| 32 | } else { |
| 33 | sources += [ |
| 34 | "rw_lock_posix.cc", |
| 35 | "rw_lock_posix.h", |
| 36 | ] |
| 37 | } |
| 38 | } |