Chromium Code Reviews| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 Loading... | |
| 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 |