| Index: pdf/BUILD.gn
|
| diff --git a/pdf/BUILD.gn b/pdf/BUILD.gn
|
| index 4ecd961fb9586e683b7284848af8d17f67411999..b028290ba2dcb805a087982c1ce7d946ca8358a6 100644
|
| --- a/pdf/BUILD.gn
|
| +++ b/pdf/BUILD.gn
|
| @@ -4,7 +4,8 @@
|
|
|
| pdf_engine = 0 # 0 PDFium
|
|
|
| -static_library("pdf") {
|
| +# TODO(GYP) need support for loadable modules
|
| +shared_library("pdf") {
|
| sources = [
|
| "button.h",
|
| "button.cc",
|
| @@ -34,6 +35,7 @@
|
| "paint_manager.h",
|
| "pdf.cc",
|
| "pdf.h",
|
| + "pdf.rc",
|
| "progress_control.cc",
|
| "progress_control.h",
|
| "pdf_engine.h",
|
| @@ -43,6 +45,8 @@
|
| "resource_consts.h",
|
| "thumbnail_control.cc",
|
| "thumbnail_control.h",
|
| + "../components/ui/zoom/page_zoom_constants.cc",
|
| + "../content/common/page_zoom.cc",
|
| ]
|
|
|
| if (pdf_engine == 0) {
|
| @@ -64,15 +68,33 @@
|
| }
|
|
|
| if (is_win) {
|
| + defines = [ "COMPILE_CONTENT_STATICALLY" ]
|
| cflags = [ "/wd4267" ] # TODO(jschuh) size_t to int truncations.
|
| + }
|
| +
|
| + if (is_mac) {
|
| + # TODO(GYP)
|
| + #'mac_bundle': 1,
|
| + #'product_name': 'PDF',
|
| + #'product_extension': 'plugin',
|
| + ## Strip the shipping binary of symbols so "Foxit" doesn't appear in
|
| + ## the binary. Symbols are stored in a separate .dSYM.
|
| + #'variables': {
|
| + # 'mac_real_dsym': 1,
|
| + #},
|
| + #'sources+': [
|
| + # 'Info.plist'
|
| + #]
|
| + #'xcode_settings': {
|
| + # 'INFOPLIST_FILE': 'Info.plist',
|
| + #},
|
| }
|
|
|
| deps = [
|
| "//base",
|
| - "//components/ui/zoom:ui_zoom",
|
| - "//content/public/common",
|
| "//net",
|
| - "//ppapi:ppapi_internal_module",
|
| + "//ppapi:ppapi_cpp",
|
| "//third_party/pdfium",
|
| ]
|
| }
|
| +# TODO(GYP) pdf_linux_symbols target.
|
|
|