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

Side by Side Diff: BUILD.gn

Issue 1395733006: Allow compiling PDFium without V8. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Renamed stub file. Created 5 years, 2 months 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("//testing/test.gni") 5 import("//testing/test.gni")
6 6
7 pdf_use_skia = false 7 pdf_use_skia = false
8 8
9 declare_args() { 9 declare_args() {
10 # On Android there's no system FreeType. On Windows and Mac, only a few 10 # On Android there's no system FreeType. On Windows and Mac, only a few
11 # methods are used from it. 11 # methods are used from it.
12 pdfium_bundle_freetype = !is_linux 12 pdfium_bundle_freetype = !is_linux
13 } 13 }
14 14
15 config("pdfium_config") { 15 config("pdfium_config") {
16 cflags = [] 16 cflags = []
17 include_dirs = [ "third_party/freetype/include" ] 17 include_dirs = [ "third_party/freetype/include" ]
18 defines = [ 18 defines = [
19 "OPJ_STATIC", 19 "OPJ_STATIC",
20 "PDF_ENABLE_V8",
20 "V8_DEPRECATION_WARNINGS", 21 "V8_DEPRECATION_WARNINGS",
21 "_CRT_SECURE_NO_WARNINGS", 22 "_CRT_SECURE_NO_WARNINGS",
22 ] 23 ]
23 24
24 if (pdf_use_skia) { 25 if (pdf_use_skia) {
25 defines += [ "_SKIA_SUPPORT_" ] 26 defines += [ "_SKIA_SUPPORT_" ]
26 } 27 }
27 28
28 if (is_linux) { 29 if (is_linux) {
29 if (current_cpu == "x64") { 30 if (current_cpu == "x64") {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 ":fdrm", 105 ":fdrm",
105 ":formfiller", 106 ":formfiller",
106 ":fpdfapi", 107 ":fpdfapi",
107 ":fpdfdoc", 108 ":fpdfdoc",
108 ":fpdftext", 109 ":fpdftext",
109 ":fxcodec", 110 ":fxcodec",
110 ":fxcrt", 111 ":fxcrt",
111 ":fxedit", 112 ":fxedit",
112 ":fxge", 113 ":fxge",
113 ":javascript", 114 ":javascript",
114 ":jsapi",
115 ":pdfwindow", 115 ":pdfwindow",
116 ] 116 ]
117 117
118 if (is_win) { 118 if (is_win) {
119 libs += [ 119 libs += [
120 "advapi32.lib", 120 "advapi32.lib",
121 "gdi32.lib", 121 "gdi32.lib",
122 "user32.lib", 122 "user32.lib",
123 ] 123 ]
124 } 124 }
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 "fpdfsdk/src/javascript/event.cpp", 664 "fpdfsdk/src/javascript/event.cpp",
665 "fpdfsdk/src/javascript/event.h", 665 "fpdfsdk/src/javascript/event.h",
666 "fpdfsdk/src/javascript/global.cpp", 666 "fpdfsdk/src/javascript/global.cpp",
667 "fpdfsdk/src/javascript/global.h", 667 "fpdfsdk/src/javascript/global.h",
668 "fpdfsdk/src/javascript/report.cpp", 668 "fpdfsdk/src/javascript/report.cpp",
669 "fpdfsdk/src/javascript/report.h", 669 "fpdfsdk/src/javascript/report.h",
670 "fpdfsdk/src/javascript/resource.cpp", 670 "fpdfsdk/src/javascript/resource.cpp",
671 "fpdfsdk/src/javascript/resource.h", 671 "fpdfsdk/src/javascript/resource.h",
672 "fpdfsdk/src/javascript/util.cpp", 672 "fpdfsdk/src/javascript/util.cpp",
673 "fpdfsdk/src/javascript/util.h", 673 "fpdfsdk/src/javascript/util.h",
674 ]
675
676 configs -= [ "//build/config/compiler:chromium_code" ]
677 configs += [
678 ":pdfium_config",
679 "//build/config/compiler:no_chromium_code",
680 ]
681 include_dirs = [
682 "//v8",
683 "//v8/include",
684 ]
685
686 public_deps = [
687 "//v8",
688 ]
689 }
690
691 static_library("jsapi") {
692 sources = [
693 "fpdfsdk/include/jsapi/fxjs_v8.h", 674 "fpdfsdk/include/jsapi/fxjs_v8.h",
694 "fpdfsdk/src/jsapi/fxjs_v8.cpp", 675 "fpdfsdk/src/jsapi/fxjs_v8.cpp",
695 ] 676 ]
696 677
697 configs -= [ "//build/config/compiler:chromium_code" ] 678 configs -= [ "//build/config/compiler:chromium_code" ]
698 configs += [ 679 configs += [
699 ":pdfium_config", 680 ":pdfium_config",
700 "//build/config/compiler:no_chromium_code", 681 "//build/config/compiler:no_chromium_code",
701 ] 682 ]
702 include_dirs = [ 683 include_dirs = [
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 "//v8", 778 "//v8",
798 "//v8/include", 779 "//v8/include",
799 "." 780 "."
800 ] 781 ]
801 configs -= [ "//build/config/compiler:chromium_code" ] 782 configs -= [ "//build/config/compiler:chromium_code" ]
802 configs += [ 783 configs += [
803 ":pdfium_config", 784 ":pdfium_config",
804 "//build/config/compiler:no_chromium_code", 785 "//build/config/compiler:no_chromium_code",
805 ] 786 ]
806 } 787 }
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/include/javascript/IJavaScript.h » ('j') | fpdfsdk/src/javascript/JS_Runtime_Stub.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698