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/sysroot.gni") | 6 import("//build/config/sysroot.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
9 if (is_mac) { | 9 if (is_mac) { |
10 import("//build/config/mac/mac_sdk.gni") | 10 import("//build/config/mac/mac_sdk.gni") |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 "backend/print_backend_win.cc", | 116 "backend/print_backend_win.cc", |
117 "backend/win_helper.cc", | 117 "backend/win_helper.cc", |
118 "backend/win_helper.h", | 118 "backend/win_helper.h", |
119 "printing_context_system_dialog_win.cc", | 119 "printing_context_system_dialog_win.cc", |
120 "printing_context_system_dialog_win.h", | 120 "printing_context_system_dialog_win.h", |
121 "printing_context_win.cc", | 121 "printing_context_win.cc", |
122 "printing_context_win.h", | 122 "printing_context_win.h", |
123 ] | 123 ] |
124 } | 124 } |
125 | 125 |
126 if (is_chromeos) { | |
127 sources += [ | |
128 "printing_context_no_system_dialog.cc", | |
129 "printing_context_no_system_dialog.h", | |
130 ] | |
131 } | |
132 | |
133 if (use_cups) { | 126 if (use_cups) { |
134 configs += [ ":cups" ] | 127 configs += [ ":cups" ] |
135 | 128 |
136 if (is_linux) { | 129 if (is_linux) { |
137 # rebase_path does not accept an empty string | 130 # rebase_path does not accept an empty string |
138 if (use_sysroot) { | 131 if (use_sysroot) { |
139 cups_sysroot = rebase_path(sysroot) | 132 cups_sysroot = rebase_path(sysroot) |
140 } else { | 133 } else { |
141 cups_sysroot = "" | 134 cups_sysroot = "" |
142 } | 135 } |
(...skipping 27 matching lines...) Expand all Loading... |
170 } | 163 } |
171 | 164 |
172 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation | 165 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation |
173 # of the print backend and enables a custom implementation instead. | 166 # of the print backend and enables a custom implementation instead. |
174 defines += [ "PRINT_BACKEND_AVAILABLE" ] | 167 defines += [ "PRINT_BACKEND_AVAILABLE" ] |
175 | 168 |
176 sources += [ | 169 sources += [ |
177 "backend/cups_helper.cc", | 170 "backend/cups_helper.cc", |
178 "backend/cups_helper.h", | 171 "backend/cups_helper.h", |
179 "backend/print_backend_cups.cc", | 172 "backend/print_backend_cups.cc", |
| 173 "backend/print_backend_cups.h", |
180 ] | 174 ] |
181 } | 175 } |
182 | 176 |
183 if (is_chromeos) { | 177 if (is_chromeos) { |
184 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation | |
185 # of the print backend and enables a custom implementation instead. | |
186 defines += [ "PRINT_BACKEND_AVAILABLE" ] | 178 defines += [ "PRINT_BACKEND_AVAILABLE" ] |
187 | 179 |
188 sources += [ "backend/print_backend_chromeos.cc" ] | 180 sources += [ |
| 181 "backend/print_backend_chromeos.cc", |
| 182 "printing_context_no_system_dialog.cc", |
| 183 "printing_context_no_system_dialog.h", |
| 184 ] |
189 } else if (is_linux) { # Non-ChromeOS Linux. | 185 } else if (is_linux) { # Non-ChromeOS Linux. |
190 sources += [ | 186 sources += [ |
191 "printing_context_linux.cc", | 187 "printing_context_linux.cc", |
192 "printing_context_linux.h", | 188 "printing_context_linux.h", |
193 ] | 189 ] |
194 } | 190 } |
195 | 191 |
196 if (is_android) { | 192 if (is_android) { |
197 sources += [ | 193 sources += [ |
198 "printing_context_android.cc", | 194 "printing_context_android.cc", |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 "android/java/src/org/chromium/printing/PrintManagerDelegate.java", | 284 "android/java/src/org/chromium/printing/PrintManagerDelegate.java", |
289 "android/java/src/org/chromium/printing/PrintManagerDelegateImpl.java", | 285 "android/java/src/org/chromium/printing/PrintManagerDelegateImpl.java", |
290 "android/java/src/org/chromium/printing/Printable.java", | 286 "android/java/src/org/chromium/printing/Printable.java", |
291 "android/java/src/org/chromium/printing/PrintingContext.java", | 287 "android/java/src/org/chromium/printing/PrintingContext.java", |
292 "android/java/src/org/chromium/printing/PrintingContextInterface.java", | 288 "android/java/src/org/chromium/printing/PrintingContextInterface.java", |
293 "android/java/src/org/chromium/printing/PrintingController.java", | 289 "android/java/src/org/chromium/printing/PrintingController.java", |
294 "android/java/src/org/chromium/printing/PrintingControllerImpl.java", | 290 "android/java/src/org/chromium/printing/PrintingControllerImpl.java", |
295 ] | 291 ] |
296 } | 292 } |
297 } | 293 } |
OLD | NEW |