OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 | 7 |
8 source_set("os_crypt") { | 8 static_library("os_crypt") { |
9 sources = [ | 9 sources = [ |
10 "ie7_password_win.cc", | 10 "ie7_password_win.cc", |
11 "ie7_password_win.h", | 11 "ie7_password_win.h", |
12 "keychain_password_mac.h", | 12 "keychain_password_mac.h", |
13 "keychain_password_mac.mm", | 13 "keychain_password_mac.mm", |
14 "os_crypt.h", | 14 "os_crypt.h", |
15 "os_crypt_mac.mm", | 15 "os_crypt_mac.mm", |
16 "os_crypt_posix.cc", | 16 "os_crypt_posix.cc", |
17 "os_crypt_switches.cc", | 17 "os_crypt_switches.cc", |
18 "os_crypt_switches.h", | 18 "os_crypt_switches.h", |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 sources += [ | 68 sources += [ |
69 "kwallet_dbus.cc", | 69 "kwallet_dbus.cc", |
70 "kwallet_dbus.h", | 70 "kwallet_dbus.h", |
71 ] | 71 ] |
72 deps += [ "//dbus" ] | 72 deps += [ "//dbus" ] |
73 defines += [ "USE_KWALLET" ] | 73 defines += [ "USE_KWALLET" ] |
74 } | 74 } |
75 } | 75 } |
76 } | 76 } |
77 | 77 |
78 source_set("test_support") { | 78 static_library("test_support") { |
79 testonly = true | 79 testonly = true |
80 sources = [ | 80 sources = [ |
81 "os_crypt_mocker.cc", | 81 "os_crypt_mocker.cc", |
82 "os_crypt_mocker.h", | 82 "os_crypt_mocker.h", |
83 ] | 83 ] |
84 deps = [ | 84 deps = [ |
85 ":os_crypt", | 85 ":os_crypt", |
86 "//base", | 86 "//base", |
87 "//testing/gtest", | 87 "//testing/gtest", |
88 ] | 88 ] |
(...skipping 27 matching lines...) Expand all Loading... |
116 sources += [ "os_crypt_linux_unittest.cc" ] | 116 sources += [ "os_crypt_linux_unittest.cc" ] |
117 defines = [] | 117 defines = [] |
118 | 118 |
119 if (use_glib) { | 119 if (use_glib) { |
120 sources += [ "os_crypt_util_linux_unittest.cc" ] | 120 sources += [ "os_crypt_util_linux_unittest.cc" ] |
121 deps += [ "//third_party/libsecret" ] | 121 deps += [ "//third_party/libsecret" ] |
122 defines += [ "USE_LIBSECRET" ] | 122 defines += [ "USE_LIBSECRET" ] |
123 } | 123 } |
124 if (use_dbus) { | 124 if (use_dbus) { |
125 sources += [ "kwallet_dbus_unittest.cc" ] | 125 sources += [ "kwallet_dbus_unittest.cc" ] |
126 deps += [ | 126 deps += [ "//dbus:test_support" ] |
127 "//dbus", | |
128 "//dbus:test_support", | |
129 ] | |
130 defines += [ "USE_KWALLET" ] | 127 defines += [ "USE_KWALLET" ] |
131 } | 128 } |
132 } | 129 } |
133 } | 130 } |
OLD | NEW |