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 source_set("os_crypt") { | 5 source_set("os_crypt") { |
6 sources = [ | 6 sources = [ |
7 "ie7_password_win.cc", | 7 "ie7_password_win.cc", |
8 "ie7_password_win.h", | 8 "ie7_password_win.h", |
9 "keychain_password_mac.h", | 9 "keychain_password_mac.h", |
10 "keychain_password_mac.mm", | 10 "keychain_password_mac.mm", |
11 "os_crypt.h", | 11 "os_crypt.h", |
12 "os_crypt_mac.mm", | 12 "os_crypt_mac.mm", |
13 "os_crypt_posix.cc", | 13 "os_crypt_posix.cc", |
14 "os_crypt_switches.cc", | 14 "os_crypt_switches.cc", |
15 "os_crypt_switches.h", | 15 "os_crypt_switches.h", |
16 "os_crypt_win.cc", | 16 "os_crypt_win.cc", |
17 ] | 17 ] |
18 | 18 |
19 deps = [ | 19 deps = [ |
20 "//base", | 20 "//base", |
21 "//crypto", | 21 "//crypto", |
22 | 22 |
23 # TODO(tfarina): Remove this dep when http://crbug.com/363749 is fixed. | 23 # TODO(tfarina): Remove this dep when http://crbug.com/363749 is fixed. |
24 "//crypto:platform", | 24 "//crypto:platform", |
25 ] | 25 ] |
26 | 26 |
27 if (is_mac) { | 27 if (is_mac || is_ios) { |
28 sources -= [ "os_crypt_posix.cc" ] | 28 sources -= [ "os_crypt_posix.cc" ] |
29 } | 29 } |
30 | 30 |
31 if (is_ios) { | 31 if (is_ios) { |
| 32 set_sources_assignment_filter([]) |
32 sources += [ | 33 sources += [ |
33 "keychain_password_mac.mm", | 34 "keychain_password_mac.mm", |
34 "os_crypt_mac.mm", | 35 "os_crypt_mac.mm", |
35 ] | 36 ] |
| 37 set_sources_assignment_filter(sources_assignment_filter) |
36 } | 38 } |
37 } | 39 } |
38 | 40 |
39 source_set("unit_tests") { | 41 source_set("unit_tests") { |
40 testonly = true | 42 testonly = true |
41 sources = [ | 43 sources = [ |
42 "ie7_password_win_unittest.cc", | 44 "ie7_password_win_unittest.cc", |
43 "keychain_password_mac_unittest.mm", | 45 "keychain_password_mac_unittest.mm", |
44 "os_crypt_unittest.cc", | 46 "os_crypt_unittest.cc", |
45 ] | 47 ] |
46 deps = [ | 48 deps = [ |
47 ":os_crypt", | 49 ":os_crypt", |
48 "//base", | 50 "//base", |
49 "//crypto", | 51 "//crypto", |
50 "//testing/gtest", | 52 "//testing/gtest", |
51 ] | 53 ] |
52 } | 54 } |
OLD | NEW |