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

Side by Side Diff: BUILD.gn

Issue 1517653003: Fix BUILD.gn to load the correct V8 snapshot configuration (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years 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 | samples/BUILD.gn » ('j') | no next file with comments »
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 import("//build_overrides/v8.gni")
5 import("//testing/test.gni") 6 import("//testing/test.gni")
6 import("pdfium.gni") 7 import("pdfium.gni")
7 8
8 config("pdfium_config") { 9 config("pdfium_config") {
9 cflags = [] 10 cflags = []
10 include_dirs = [ 11 include_dirs = [
11 ".", 12 ".",
12 "third_party/freetype/include", 13 "third_party/freetype/include",
13 "third_party/freetype/include/freetype", 14 "third_party/freetype/include/freetype",
14 ] 15 ]
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 include_dirs = [] 177 include_dirs = []
177 if (pdf_enable_v8) { 178 if (pdf_enable_v8) {
178 deps += [ 179 deps += [
179 "//v8", 180 "//v8",
180 "//v8:v8_libplatform", 181 "//v8:v8_libplatform",
181 ] 182 ]
182 include_dirs += [ 183 include_dirs += [
183 "//v8", 184 "//v8",
184 "//v8/include", 185 "//v8/include",
185 ] 186 ]
187 configs += [ "//v8:external_startup_data" ]
186 } 188 }
187 configs += [ ":pdfium_config" ] 189 configs += [ ":pdfium_config" ]
188 } 190 }
189 191
190 # Targets below this are only visible within this file (and to the 192 # Targets below this are only visible within this file (and to the
191 # top-level gn_visibility target used to help gn_all build everything). 193 # top-level gn_visibility target used to help gn_all build everything).
192 visibility = [ 194 visibility = [
193 ":*", 195 ":*",
194 "//:gn_visibility", 196 "//:gn_visibility",
195 ] 197 ]
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 "fpdfsdk/src/javascript/util.h", 720 "fpdfsdk/src/javascript/util.h",
719 "fpdfsdk/src/jsapi/fxjs_v8.cpp", 721 "fpdfsdk/src/jsapi/fxjs_v8.cpp",
720 ] 722 ]
721 include_dirs = [ 723 include_dirs = [
722 "//v8", 724 "//v8",
723 "//v8/include", 725 "//v8/include",
724 ] 726 ]
725 public_deps = [ 727 public_deps = [
726 "//v8", 728 "//v8",
727 ] 729 ]
730 configs += [ "//v8:external_startup_data" ]
728 } else { 731 } else {
729 sources += [ "fpdfsdk/src/javascript/JS_Runtime_Stub.cpp" ] 732 sources += [ "fpdfsdk/src/javascript/JS_Runtime_Stub.cpp" ]
730 } 733 }
731 configs += [ ":pdfium_config" ] 734 configs += [ ":pdfium_config" ]
732 } 735 }
733 736
734 static_library("formfiller") { 737 static_library("formfiller") {
735 sources = [ 738 sources = [
736 "fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h", 739 "fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h",
737 "fpdfsdk/include/formfiller/FFL_CheckBox.h", 740 "fpdfsdk/include/formfiller/FFL_CheckBox.h",
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 if (pdf_enable_v8) { 1518 if (pdf_enable_v8) {
1516 sources += [ "fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp" ] 1519 sources += [ "fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp" ]
1517 deps += [ 1520 deps += [
1518 "//v8", 1521 "//v8",
1519 "//v8:v8_libplatform", 1522 "//v8:v8_libplatform",
1520 ] 1523 ]
1521 include_dirs += [ 1524 include_dirs += [
1522 "//v8", 1525 "//v8",
1523 "//v8/include", 1526 "//v8/include",
1524 ] 1527 ]
1528 configs += [ "//v8:external_startup_data" ]
1525 } 1529 }
1526 configs += [ ":pdfium_config" ] 1530 configs += [ ":pdfium_config" ]
1527 } 1531 }
OLDNEW
« no previous file with comments | « no previous file | samples/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698