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 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
68 if (is_win) { | 69 if (is_win) { |
69 defines = [ "COMPILE_CONTENT_STATICALLY" ] | 70 defines = [ "COMPILE_CONTENT_STATICALLY" ] |
70 cflags = [ "/wd4267" ] # TODO(jschuh) size_t to int truncations. | 71 cflags = [ "/wd4267" ] # TODO(jschuh) size_t to int truncations. |
71 } | 72 } |
72 | 73 |
| 74 if (pdf_use_xfa == 1) { |
| 75 defines += [ "PDF_USE_XFA" ] |
| 76 } |
| 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', |
78 ## Strip the shipping binary of symbols so "Foxit" doesn't appear in | 83 ## Strip the shipping binary of symbols so "Foxit" doesn't appear in |
79 ## the binary. Symbols are stored in a separate .dSYM. | 84 ## the binary. Symbols are stored in a separate .dSYM. |
80 #'variables': { | 85 #'variables': { |
81 # 'mac_real_dsym': 1, | 86 # 'mac_real_dsym': 1, |
82 #}, | 87 #}, |
83 #'sources+': [ | 88 #'sources+': [ |
84 # 'Info.plist' | 89 # 'Info.plist' |
85 #] | 90 #] |
86 #'xcode_settings': { | 91 #'xcode_settings': { |
87 # 'INFOPLIST_FILE': 'Info.plist', | 92 # 'INFOPLIST_FILE': 'Info.plist', |
88 #}, | 93 #}, |
89 } | 94 } |
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. |
OLD | NEW |