10529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch# Copyright 2014 The Chromium Authors. All rights reserved.
20529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch# Use of this source code is governed by a BSD-style license that can be
30529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch# found in the LICENSE file.
40529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch
50529e5d033099cbfc42635f6f6183833b09dff6eBen Murdochsource_set("os_crypt") {
60529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch  sources = [
70529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    "ie7_password_win.cc",
80529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    "ie7_password_win.h",
90529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    "keychain_password_mac.h",
100529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    "keychain_password_mac.mm",
110529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    "os_crypt.h",
120529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    "os_crypt_mac.mm",
130529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    "os_crypt_posix.cc",
140529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    "os_crypt_switches.cc",
150529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    "os_crypt_switches.h",
160529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    "os_crypt_win.cc",
170529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch  ]
180529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch
190529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch  deps = [
200529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    "//base",
210529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    "//crypto",
220529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    # TODO(tfarina): Remove this dep when http://crbug.com/363749 is fixed.
230529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    "//crypto:platform",
240529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch  ]
250529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch
260529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch  if (is_mac) {
270529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    sources -= [ "os_crypt_posix.cc" ]
280529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch  }
290529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch
300529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch  if (is_ios) {
310529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    sources += [
320529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch      "keychain_password_mac.mm",
330529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch      "os_crypt_mac.mm",
340529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch    ]
350529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch  }
360529e5d033099cbfc42635f6f6183833b09dff6eBen Murdoch}
37