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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 "..") | 76 "..") |
77 } | 77 } |
78 | 78 |
79 # Linux should use system libexif | 79 # Linux should use system libexif |
80 if (!is_linux) { | 80 if (!is_linux) { |
81 # TODO(thestig): Properly support building on Linux and ChromeOS. | 81 # TODO(thestig): Properly support building on Linux and ChromeOS. |
82 deps += [ "//third_party/libexif" ] | 82 deps += [ "//third_party/libexif" ] |
83 } | 83 } |
84 } | 84 } |
85 | 85 |
86 if (use_openssl) { | 86 if (use_nss_certs) { |
87 if (!is_win && !is_mac && !is_android) { | 87 sources += [ |
88 sources -= [ "importer/nss_decryptor.cc" ] | 88 "importer/nss_decryptor_system_nss.cc", |
89 } | 89 "importer/nss_decryptor_system_nss.h", |
90 } else { # !use_openssl | 90 ] |
91 if (!is_win && !is_mac) { | 91 deps += [ |
92 sources += [ | 92 "//crypto", |
93 "importer/nss_decryptor_system_nss.cc", | 93 "//crypto:platform", |
94 "importer/nss_decryptor_system_nss.h", | 94 ] |
95 ] | |
96 deps += [ | |
97 "//crypto", | |
98 "//crypto:platform", | |
99 ] | |
100 } | |
101 } | 95 } |
102 | 96 |
103 if (!enable_print_preview) { | 97 if (!enable_print_preview) { |
104 sources -= [ | 98 sources -= [ |
105 "printing_handler.cc", | 99 "printing_handler.cc", |
106 "printing_handler.h", | 100 "printing_handler.h", |
107 ] | 101 ] |
108 } | 102 } |
109 | 103 |
110 if (!enable_mdns) { | 104 if (!enable_mdns) { |
111 sources -= [ | 105 sources -= [ |
112 "local_discovery/service_discovery_message_handler.cc", | 106 "local_discovery/service_discovery_message_handler.cc", |
113 "local_discovery/service_discovery_message_handler.h", | 107 "local_discovery/service_discovery_message_handler.h", |
114 ] | 108 ] |
115 } | 109 } |
116 } | 110 } |
OLD | NEW |