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

Side by Side Diff: chromium/scripts/generate_gyp.py

Issue 9325049: Fixup chromium specific bits after merge. (Closed) Base URL: ssh://gerrit.chromium.org:29418/chromium/third_party/ffmpeg.git@master
Patch Set: Code review fixes. Created 8 years, 10 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 | « chromium/scripts/copy_config.sh ('k') | ffmpeg.gyp » ('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/python 1 #!/usr/bin/python
2 # 2 #
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 The Chromium 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 """Creates a GYP include file for building FFmpeg from source. 7 """Creates a GYP include file for building FFmpeg from source.
8 8
9 The way this works is a bit silly but it's easier than reverse engineering 9 The way this works is a bit silly but it's easier than reverse engineering
10 FFmpeg's configure scripts and Makefiles. It scans through build directories for 10 FFmpeg's configure scripts and Makefiles. It scans through build directories for
(...skipping 15 matching lines...) Expand all
26 cd deps 26 cd deps
27 git clone http://git.chromium.org/chromium/third_party/ffmpeg.git 27 git clone http://git.chromium.org/chromium/third_party/ffmpeg.git
28 28
29 Step 3: Build for ia32/x64 platforms outside chroot (will need yasm in path) 29 Step 3: Build for ia32/x64 platforms outside chroot (will need yasm in path)
30 cd path/to/chromeos/deps/ffmpeg 30 cd path/to/chromeos/deps/ffmpeg
31 ./chromium/scripts/build_ffmpeg.sh linux ia32 path/to/chromeos/deps 31 ./chromium/scripts/build_ffmpeg.sh linux ia32 path/to/chromeos/deps
32 ./chromium/scripts/build_ffmpeg.sh linux x64 path/to/chromeos/deps 32 ./chromium/scripts/build_ffmpeg.sh linux x64 path/to/chromeos/deps
33 33
34 Step 4: Build and enter Chromium OS chroot: 34 Step 4: Build and enter Chromium OS chroot:
35 cd path/to/chromeos/src/scripts 35 cd path/to/chromeos/src/scripts
36 ./make_chroot 36 cros_sdk --enter
37 ./enter_chroot.sh
38 37
39 Step 5: Setup build environment for ARM: 38 Step 5: Setup build environment for ARM:
40 ./setup_board --board arm-generic 39 ./setup_board --board arm-generic
41 40
42 Step 6: Build for arm/arm-neon platforms inside chroot 41 Step 6: Build for arm/arm-neon platforms inside chroot
43 ./build_ffmpeg.sh linux arm path/to/chromeos/deps 42 ./chromium/scripts/build_ffmpeg.sh linux arm path/to/chromeos/deps
44 ./build_ffmpeg.sh linux arm-neon path/to/chromeos/deps 43 ./chromium/scripts/build_ffmpeg.sh linux arm-neon path/to/chromeos/deps
45 44
46 Step 7: Exit chroot and generate gyp file 45 Step 7: Exit chroot and generate gyp file
47 exit 46 exit
48 cd path/to/chromeos/deps/ffmpeg 47 cd path/to/chromeos/deps/ffmpeg
49 ./chromium/scripts/generate_gyp.py 48 ./chromium/scripts/generate_gyp.py
50 49
51 Phew! 50 Phew!
52 51
53 While this seems insane, reverse engineering and maintaining a gyp file by hand 52 While this seems insane, reverse engineering and maintaining a gyp file by hand
54 is significantly more painful. 53 is significantly more painful.
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 430
432 # Generate conditional stanza for each disjoint source set. 431 # Generate conditional stanza for each disjoint source set.
433 for s in CreatePairwiseDisjointSets(sets): 432 for s in CreatePairwiseDisjointSets(sets):
434 fd.write(s.GenerateGypStanza()) 433 fd.write(s.GenerateGypStanza())
435 434
436 fd.write(GYP_FOOTER) 435 fd.write(GYP_FOOTER)
437 fd.close() 436 fd.close()
438 437
439 if __name__ == '__main__': 438 if __name__ == '__main__':
440 main() 439 main()
OLDNEW
« no previous file with comments | « chromium/scripts/copy_config.sh ('k') | ffmpeg.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698