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

Issue 1395733006: Allow compiling PDFium without V8. (Closed)

Created:
5 years, 2 months ago by Tom Sepez
Modified:
5 years, 2 months ago
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Allow compiling PDFium without V8. Original patch from issue 1391843004 at patchset 1 (http://crrev.com/1391843004#ps1) Introduce a pdf_enable_v8 GYP variable, which controls a corresponding PDF_ENABLE_V8 #define, and bring in the real JS library when set. Otherwise, link against a stub JS runtime. BUG=pdfium:211 R=dml@google.com, jochen@chromium.org, thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/f1c713663192368d26031a4caed1f9705f4510af

Patch Set 1 #

Patch Set 2 : Allow deletion from midle of context stack #

Patch Set 3 : GYP variable not inheritted. #

Patch Set 4 : Always build with V8 under GN. #

Total comments: 1

Patch Set 5 : One JS library for all, no special targets, fold in jsapi. #

Patch Set 6 : Renamed stub file. #

Total comments: 5

Patch Set 7 : address dml's comments #

Patch Set 8 : One Context Only. #

Patch Set 9 : GN #

Patch Set 10 : Fix GN #

Patch Set 11 : Fix Fix GN #

Total comments: 1

Patch Set 12 : PDFium Authors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+400 lines, -177 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 8 9 10 6 chunks +72 lines, -83 lines 0 comments Download
M fpdfsdk/include/javascript/IJavaScript.h View 1 chunk +1 line, -0 lines 0 comments Download
M fpdfsdk/src/fpdfview.cpp View 2 chunks +3 lines, -5 lines 0 comments Download
M fpdfsdk/src/javascript/JS_Runtime.cpp View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
A fpdfsdk/src/javascript/JS_Runtime_Stub.cpp View 1 2 3 4 5 6 7 1 chunk +151 lines, -0 lines 0 comments Download
A pdfium.gni View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +17 lines, -0 lines 0 comments Download
M pdfium.gyp View 1 2 3 4 7 chunks +82 lines, -76 lines 0 comments Download
M samples/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 3 chunks +16 lines, -5 lines 0 comments Download
M samples/pdfium_test.cc View 8 chunks +10 lines, -0 lines 0 comments Download
M samples/samples.gyp View 1 2 3 4 4 chunks +21 lines, -3 lines 0 comments Download
M testing/embedder_test.h View 3 chunks +11 lines, -2 lines 0 comments Download
M testing/embedder_test.cpp View 6 chunks +12 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (1 generated)
Tom Sepez
Here's my proposal for review.
5 years, 2 months ago (2015-10-08 17:39:06 UTC) #2
Tom Sepez
https://codereview.chromium.org/1395733006/diff/60001/pdfium.gyp File pdfium.gyp (right): https://codereview.chromium.org/1395733006/diff/60001/pdfium.gyp#newcode681 pdfium.gyp:681: 'target_name': 'javascript_stub', actually, I think I'll just use the ...
5 years, 2 months ago (2015-10-08 19:26:51 UTC) #3
Tom Sepez
Awright, Lei, Jochen, David, let's review ps6.
5 years, 2 months ago (2015-10-08 20:23:43 UTC) #4
David Lattimore
lgtm Thanks for doing this. https://codereview.chromium.org/1395733006/diff/100001/fpdfsdk/src/javascript/JS_Runtime_Stub.cpp File fpdfsdk/src/javascript/JS_Runtime_Stub.cpp (right): https://codereview.chromium.org/1395733006/diff/100001/fpdfsdk/src/javascript/JS_Runtime_Stub.cpp#newcode122 fpdfsdk/src/javascript/JS_Runtime_Stub.cpp:122: IJS_Runtime* m_pRuntime; This doesn't ...
5 years, 2 months ago (2015-10-08 21:11:54 UTC) #5
Tom Sepez
https://codereview.chromium.org/1395733006/diff/100001/fpdfsdk/src/javascript/JS_Runtime_Stub.cpp File fpdfsdk/src/javascript/JS_Runtime_Stub.cpp (right): https://codereview.chromium.org/1395733006/diff/100001/fpdfsdk/src/javascript/JS_Runtime_Stub.cpp#newcode122 fpdfsdk/src/javascript/JS_Runtime_Stub.cpp:122: IJS_Runtime* m_pRuntime; On 2015/10/08 21:11:54, David Lattimore wrote: > ...
5 years, 2 months ago (2015-10-08 21:25:33 UTC) #6
David Lattimore
https://codereview.chromium.org/1395733006/diff/100001/fpdfsdk/src/javascript/JS_Runtime_Stub.cpp File fpdfsdk/src/javascript/JS_Runtime_Stub.cpp (right): https://codereview.chromium.org/1395733006/diff/100001/fpdfsdk/src/javascript/JS_Runtime_Stub.cpp#newcode157 fpdfsdk/src/javascript/JS_Runtime_Stub.cpp:157: std::vector<CJS_ContextStub*> m_ContextStack; On 2015/10/08 21:25:33, Tom Sepez wrote: > ...
5 years, 2 months ago (2015-10-08 21:29:42 UTC) #7
Tom Sepez
On 2015/10/08 21:29:42, David Lattimore wrote: > https://codereview.chromium.org/1395733006/diff/100001/fpdfsdk/src/javascript/JS_Runtime_Stub.cpp > File fpdfsdk/src/javascript/JS_Runtime_Stub.cpp (right): > > https://codereview.chromium.org/1395733006/diff/100001/fpdfsdk/src/javascript/JS_Runtime_Stub.cpp#newcode157 ...
5 years, 2 months ago (2015-10-08 22:12:19 UTC) #8
David Lattimore
lgtm
5 years, 2 months ago (2015-10-08 22:15:38 UTC) #9
jochen (gone - plz use gerrit)
lgtm
5 years, 2 months ago (2015-10-09 09:51:59 UTC) #10
Tom Sepez
On 2015/10/09 09:51:59, jochen wrote: > lgtm Lei, you want to sign off on the ...
5 years, 2 months ago (2015-10-09 15:54:13 UTC) #11
Lei Zhang
On 2015/10/09 15:54:13, Tom Sepez wrote: > On 2015/10/09 09:51:59, jochen wrote: > > lgtm ...
5 years, 2 months ago (2015-10-09 17:43:31 UTC) #12
Tom Sepez
On 2015/10/09 17:43:31, Lei Zhang wrote: > On 2015/10/09 15:54:13, Tom Sepez wrote: > > ...
5 years, 2 months ago (2015-10-09 17:57:57 UTC) #13
Lei Zhang
On 2015/10/09 17:57:57, Tom Sepez wrote: > Right, I didn't think that GN needed to ...
5 years, 2 months ago (2015-10-09 18:04:48 UTC) #14
Tom Sepez
> We should keep the 2 build systems in sync, or at least add a ...
5 years, 2 months ago (2015-10-09 19:37:43 UTC) #15
Lei Zhang
lgtm https://codereview.chromium.org/1395733006/diff/200001/pdfium.gni File pdfium.gni (right): https://codereview.chromium.org/1395733006/diff/200001/pdfium.gni#newcode1 pdfium.gni:1: # Copyright 2015 The Chromium Authors. All rights ...
5 years, 2 months ago (2015-10-09 19:40:38 UTC) #16
Tom Sepez
5 years, 2 months ago (2015-10-09 19:45:21 UTC) #17
Message was sent while issue was closed.
Committed patchset #12 (id:220001) manually as
f1c713663192368d26031a4caed1f9705f4510af (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698