Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: printing/BUILD.gn

Issue 1421493002: Printing: Move some printing code out of pdf/ and into printing/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing test file Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/ui.gni") 6 import("//build/config/ui.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 if (is_mac) { 8 if (is_mac) {
9 import("//build/config/mac/mac_sdk.gni") 9 import("//build/config/mac/mac_sdk.gni")
10 } 10 }
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 ] 177 ]
178 } 178 }
179 179
180 if (is_android) { 180 if (is_android) {
181 sources += [ 181 sources += [
182 "printing_context_android.cc", 182 "printing_context_android.cc",
183 "printing_context_android.h", 183 "printing_context_android.h",
184 ] 184 ]
185 185
186 deps += [ ":printing_jni_headers" ] 186 deps += [ ":printing_jni_headers" ]
187 } else {
188 sources += [
189 "pdf_transform.cc",
190 "pdf_transform.h",
191 ]
187 } 192 }
188 } 193 }
189 194
190 # TODO(GYP): Delete this after we've converted everything to GN. 195 # TODO(GYP): Delete this after we've converted everything to GN.
191 # The _run targets exist only for compatibility w/ GYP. 196 # The _run targets exist only for compatibility w/ GYP.
192 group("printing_unittests_run") { 197 group("printing_unittests_run") {
193 testonly = true 198 testonly = true
194 deps = [ 199 deps = [
195 ":printing_unittests", 200 ":printing_unittests",
196 ] 201 ]
197 } 202 }
198 203
199 test("printing_unittests") { 204 test("printing_unittests") {
200 sources = [ 205 sources = [
201 "emf_win_unittest.cc", 206 "emf_win_unittest.cc",
202 "page_number_unittest.cc", 207 "page_number_unittest.cc",
203 "page_range_unittest.cc", 208 "page_range_unittest.cc",
204 "page_setup_unittest.cc", 209 "page_setup_unittest.cc",
205 "pdf_metafile_cg_mac_unittest.cc", 210 "pdf_metafile_cg_mac_unittest.cc",
206 "printed_page_unittest.cc", 211 "printed_page_unittest.cc",
207 "printing_context_win_unittest.cc", 212 "printing_context_win_unittest.cc",
208 "printing_test.h", 213 "printing_test.h",
209 "printing_utils_unittest.cc", 214 "printing_utils_unittest.cc",
210 "units_unittest.cc", 215 "units_unittest.cc",
211 ] 216 ]
212 217
213 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 218 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
214 219
215 if (use_cups) {
216 configs += [ ":cups" ]
217 sources += [ "backend/cups_helper_unittest.cc" ]
218 }
219
220 deps = [ 220 deps = [
221 ":printing", 221 ":printing",
222 "//base/allocator", 222 "//base/allocator",
223 "//base/test:run_all_unittests", 223 "//base/test:run_all_unittests",
224 "//base/test:test_support", 224 "//base/test:test_support",
225 "//testing/gtest", 225 "//testing/gtest",
226 "//ui/base", 226 "//ui/base",
227 "//ui/gfx", 227 "//ui/gfx",
228 "//ui/gfx:test_support", 228 "//ui/gfx:test_support",
229 "//ui/gfx/geometry", 229 "//ui/gfx/geometry",
230 ] 230 ]
231
232 if (!is_android) {
233 sources += [ "pdf_transform_unittest.cc" ]
234 }
235
236 if (use_cups) {
237 configs += [ ":cups" ]
238 sources += [ "backend/cups_helper_unittest.cc" ]
239 }
231 } 240 }
232 241
233 if (use_cups) { 242 if (use_cups) {
234 config("cups") { 243 config("cups") {
235 defines = [ "USE_CUPS" ] 244 defines = [ "USE_CUPS" ]
236 245
237 if (is_mac) { 246 if (is_mac) {
238 libs = [ "cups" ] 247 libs = [ "cups" ]
239 lib_dirs = [ "$mac_sdk_path/usr/lib" ] 248 lib_dirs = [ "$mac_sdk_path/usr/lib" ]
240 } else { 249 } else {
(...skipping 12 matching lines...) Expand all
253 } 262 }
254 263
255 # GYP: //printing/printing.gyp:printing_java 264 # GYP: //printing/printing.gyp:printing_java
256 android_library("printing_java") { 265 android_library("printing_java") {
257 deps = [ 266 deps = [
258 "//base:base_java", 267 "//base:base_java",
259 ] 268 ]
260 DEPRECATED_java_in_dir = "android/java/src" 269 DEPRECATED_java_in_dir = "android/java/src"
261 } 270 }
262 } 271 }
OLDNEW
« no previous file with comments | « pdf/pdfium/pdfium_engine.cc ('k') | printing/pdf_transform.h » ('j') | printing/pdf_transform.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698