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

Side by Side Diff: build_gyp/gyp_pdfium

Issue 1904563002: Standalone GN build. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « DEPS ('k') | build_gyp/standalone.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2014 PDFium Authors. All rights reserved. 3 # Copyright 2014 PDFium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # This script is wrapper for PDFium that adds some support for how GYP 7 # This script is wrapper for PDFium that adds some support for how GYP
8 # is invoked by PDFium beyond what can be done in the gclient hooks. 8 # is invoked by PDFium beyond what can be done in the gclient hooks.
9 9
10 import os 10 import os
11 import platform 11 import platform
12 import sys 12 import sys
13 13
14 script_dir = os.path.dirname(os.path.realpath(__file__)) 14 script_dir = os.path.dirname(os.path.realpath(__file__))
15 pdfium_root = os.path.abspath(os.path.join(script_dir, os.pardir)) 15 pdfium_root = os.path.abspath(os.path.join(script_dir, os.pardir))
16 16
17 sys.path.insert(0, os.path.join(pdfium_root, 'build_gyp', 'gyp', 'pylib')) 17 sys.path.insert(0, os.path.join(pdfium_root, 'tools', 'gyp', 'pylib'))
18 import gyp 18 import gyp
19 19
20 20
21 def run_gyp(args): 21 def run_gyp(args):
22 rc = gyp.main(args) 22 rc = gyp.main(args)
23 if rc != 0: 23 if rc != 0:
24 print 'Error running GYP' 24 print 'Error running GYP'
25 sys.exit(rc) 25 sys.exit(rc)
26 26
27 27
(...skipping 15 matching lines...) Expand all
43 os.environ['GYP_GENERATORS'] = 'ninja' 43 os.environ['GYP_GENERATORS'] = 'ninja'
44 44
45 print 'Updating projects from gyp files...' 45 print 'Updating projects from gyp files...'
46 sys.stdout.flush() 46 sys.stdout.flush()
47 47
48 run_gyp(args) 48 run_gyp(args)
49 49
50 50
51 if __name__ == '__main__': 51 if __name__ == '__main__':
52 sys.exit(main()) 52 sys.exit(main())
OLDNEW
« no previous file with comments | « DEPS ('k') | build_gyp/standalone.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698