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/crypto.gni") | 5 import("//build/config/crypto.gni") |
6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
7 | 7 |
8 gypi_values = exec_script("//build/gypi_to_gn.py", | 8 gypi_values = exec_script("//build/gypi_to_gn.py", |
9 [ rebase_path("../chrome_utility.gypi") ], | 9 [ rebase_path("../chrome_utility.gypi") ], |
10 "scope", | 10 "scope", |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 "..") | 70 "..") |
71 } | 71 } |
72 | 72 |
73 # Linux should use system libexif | 73 # Linux should use system libexif |
74 if (!is_linux) { | 74 if (!is_linux) { |
75 # TODO(thestig): Properly support building on Linux and ChromeOS. | 75 # TODO(thestig): Properly support building on Linux and ChromeOS. |
76 deps += [ "//third_party/libexif" ] | 76 deps += [ "//third_party/libexif" ] |
77 } | 77 } |
78 } | 78 } |
79 | 79 |
80 if (use_openssl) { | 80 if (use_nss_certs) { |
81 if (!is_win && !is_mac && !is_android) { | 81 sources += [ |
82 sources -= [ "importer/nss_decryptor.cc" ] | 82 "importer/nss_decryptor_system_nss.cc", |
83 } | 83 "importer/nss_decryptor_system_nss.h", |
84 } else { # !use_openssl | 84 ] |
85 if (!is_win && !is_mac) { | 85 deps += [ |
86 sources += [ | 86 "//crypto", |
87 "importer/nss_decryptor_system_nss.cc", | 87 "//crypto:platform", |
88 "importer/nss_decryptor_system_nss.h", | 88 ] |
89 ] | |
90 deps += [ | |
91 "//crypto", | |
92 "//crypto:platform", | |
93 ] | |
94 } | |
95 } | 89 } |
96 | 90 |
97 if (!enable_print_preview) { | 91 if (!enable_print_preview) { |
98 sources -= [ | 92 sources -= [ |
99 "printing_handler.cc", | 93 "printing_handler.cc", |
100 "printing_handler.h", | 94 "printing_handler.h", |
101 ] | 95 ] |
102 } | 96 } |
103 | 97 |
104 if (!enable_mdns) { | 98 if (!enable_mdns) { |
105 sources -= [ | 99 sources -= [ |
106 "local_discovery/service_discovery_message_handler.cc", | 100 "local_discovery/service_discovery_message_handler.cc", |
107 "local_discovery/service_discovery_message_handler.h", | 101 "local_discovery/service_discovery_message_handler.h", |
108 ] | 102 ] |
109 } | 103 } |
110 | 104 |
111 if (safe_browsing_mode == 1) { | 105 if (safe_browsing_mode == 1) { |
112 defines += [ "FULL_SAFE_BROWSING" ] | 106 defines += [ "FULL_SAFE_BROWSING" ] |
113 } | 107 } |
114 } | 108 } |
OLD | NEW |