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

Side by Side Diff: pdf/BUILD.gn

Issue 705823002: Add pdf layer code for PDFium XFA module (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Indent Created 6 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
« no previous file with comments | « no previous file | pdf/pdf.gyp » ('j') | pdf/pdf.gyp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 pdf_engine = 0 # 0 PDFium 5 pdf_engine = 0 # 0 PDFium
6 pdf_use_xfa = 0
6 7
7 # TODO(GYP) need support for loadable modules 8 # TODO(GYP) need support for loadable modules
8 shared_library("pdf") { 9 shared_library("pdf") {
9 sources = [ 10 sources = [
10 "button.h", 11 "button.h",
11 "button.cc", 12 "button.cc",
12 "chunk_stream.h", 13 "chunk_stream.h",
13 "chunk_stream.cc", 14 "chunk_stream.cc",
14 "control.h", 15 "control.h",
15 "control.cc", 16 "control.cc",
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 "pdfium/pdfium_mem_buffer_file_read.h", 59 "pdfium/pdfium_mem_buffer_file_read.h",
59 "pdfium/pdfium_mem_buffer_file_write.cc", 60 "pdfium/pdfium_mem_buffer_file_write.cc",
60 "pdfium/pdfium_mem_buffer_file_write.h", 61 "pdfium/pdfium_mem_buffer_file_write.h",
61 "pdfium/pdfium_page.cc", 62 "pdfium/pdfium_page.cc",
62 "pdfium/pdfium_page.h", 63 "pdfium/pdfium_page.h",
63 "pdfium/pdfium_range.cc", 64 "pdfium/pdfium_range.cc",
64 "pdfium/pdfium_range.h", 65 "pdfium/pdfium_range.h",
65 ] 66 ]
66 } 67 }
67 68
69 if(pdf_use_xfa == 1) {
Lei Zhang 2014/11/06 04:08:08 nit: space after if
70 defines += [ "_PDF_USE_XFA_" ]
Lei Zhang 2014/11/06 04:08:08 You need to start with: defines = [] after sourc
Bo Xu 2014/11/06 05:43:51 Done.
Lei Zhang 2014/11/06 19:15:29 You need to write it like: defines = [] if (condi
71 }
72
68 if (is_win) { 73 if (is_win) {
69 defines = [ "COMPILE_CONTENT_STATICALLY" ] 74 defines = [ "COMPILE_CONTENT_STATICALLY" ]
70 cflags = [ "/wd4267" ] # TODO(jschuh) size_t to int truncations. 75 cflags = [ "/wd4267" ] # TODO(jschuh) size_t to int truncations.
71 } 76 }
72 77
73 if (is_mac) { 78 if (is_mac) {
74 # TODO(GYP) 79 # TODO(GYP)
75 #'mac_bundle': 1, 80 #'mac_bundle': 1,
76 #'product_name': 'PDF', 81 #'product_name': 'PDF',
77 #'product_extension': 'plugin', 82 #'product_extension': 'plugin',
(...skipping 12 matching lines...) Expand all
90 95
91 deps = [ 96 deps = [
92 "//base", 97 "//base",
93 "//net", 98 "//net",
94 "//ppapi:ppapi_cpp", 99 "//ppapi:ppapi_cpp",
95 "//third_party/pdfium", 100 "//third_party/pdfium",
96 ] 101 ]
97 } 102 }
98 103
99 # TODO(GYP) pdf_linux_symbols target. 104 # TODO(GYP) pdf_linux_symbols target.
OLDNEW
« no previous file with comments | « no previous file | pdf/pdf.gyp » ('j') | pdf/pdf.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698