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

Side by Side Diff: experimental/webtry/gyp_for_webtry

Issue 553333004: gyp build of skfiddle apps, take 2 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix error from patch getting conffused by safec++ Created 6 years, 3 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
(Empty)
1 #!/usr/bin/python
2 import os
3 import sys
4
5 script_dir = os.path.dirname(__file__)
6
7 skia_src = os.path.abspath(os.environ.get('SKIA_SRC', os.path.join( script_dir, "..", "..") ))
jcgregorio 2014/09/17 15:00:07 No space after join( Nor between ) ))
humper 2014/09/17 15:08:23 Done.
8 gyp_source_dir = os.path.join(skia_src, 'third_party', 'externals', 'gyp')
9
10 sys.path.insert(0, os.path.abspath(os.path.join(gyp_source_dir, 'pylib')))
11 import gyp
12
13 if __name__ == '__main__':
14 args = sys.argv[2:]
jcgregorio 2014/09/17 15:00:07 Check for correct # of args and exit if not correc
humper 2014/09/17 15:08:23 Done.
15
16 if not os.environ.get('GYP_GENERATORS'):
17 os.environ['GYP_GENERATORS'] = 'ninja'
18
19 args.append('--check')
20 args.append('-I%s/gyp/common.gypi' % skia_src)
21 args.extend(['--depth', '.'])
22 webtry_cache_dir = os.path.abspath(os.environ.get('WEBTRY_CACHE', os.path.join ( script_dir, "..", "..", "..", "cache" ) ))
jcgregorio 2014/09/17 15:00:07 Getting a little long, maybe break out os.path.joi
humper 2014/09/17 15:08:23 Done.
23 webtry_inout_dir = os.path.abspath(os.environ.get('WEBTRY_INOUT', os.path.join ( script_dir, "..", "..", "..", "inout" ) ))
24
25 args.append('-Goutput_dir=%s' % webtry_inout_dir )
26
27 args.append(os.path.join(webtry_cache_dir, '%s.gyp' % sys.argv[1] ))
28
29 # gyp is really picky about the current working directory having src/ under it
30 os.chdir(webtry_cache_dir)
31
32 os.environ['CC'] = '../../skia/experimental/webtry/safec'
33 os.environ['CXX'] = '../../skia/experimental/webtry/safec++'
34 os.environ['LD'] = '../../skia/experimental/webtry/safec++'
35
36 sys.exit(gyp.main(args))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698