OLD | NEW |
1 #!/bin/bash -e | 1 #!/bin/bash -e |
2 | 2 |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 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 # Builds Chromium, Google Chrome and *OS FFmpeg binaries. | 7 # Builds Chromium, Google Chrome and *OS FFmpeg binaries. |
8 # | 8 # |
9 # For Windows it assumes being run from a MinGW shell with Visual Studio | 9 # For Windows it assumes being run from a MinGW shell with Visual Studio |
10 # environment (i.e., lib.exe and editbin.exe are in $PATH). | 10 # environment (i.e., lib.exe and editbin.exe are in $PATH). |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 echo "Valid target OSes are: linux, mac, win" | 47 echo "Valid target OSes are: linux, mac, win" |
48 exit 1 | 48 exit 1 |
49 fi | 49 fi |
50 | 50 |
51 # Check FFMPEG_PATH to contain this script. | 51 # Check FFMPEG_PATH to contain this script. |
52 if [ ! -f "$FFMPEG_PATH/chromium/scripts/$(basename $0)" ]; then | 52 if [ ! -f "$FFMPEG_PATH/chromium/scripts/$(basename $0)" ]; then |
53 echo "$FFMPEG_PATH doesn't appear to contain FFmpeg" | 53 echo "$FFMPEG_PATH doesn't appear to contain FFmpeg" |
54 exit 1 | 54 exit 1 |
55 fi | 55 fi |
56 | 56 |
57 # If configure & make works but this script doesn't, make sure to grep for these
. | 57 # If configure & make works but this script doesn't, make sure to grep for |
58 LIBAVCODEC_VERSION_MAJOR=53 | 58 # these. |
59 LIBAVFORMAT_VERSION_MAJOR=53 | 59 LIBAVCODEC_VERSION_MAJOR=54 |
| 60 LIBAVFORMAT_VERSION_MAJOR=54 |
60 LIBAVUTIL_VERSION_MAJOR=51 | 61 LIBAVUTIL_VERSION_MAJOR=51 |
61 | 62 |
62 case $(uname -sm) in | 63 case $(uname -sm) in |
63 Linux\ i386) | 64 Linux\ i386) |
64 HOST_OS=linux | 65 HOST_OS=linux |
65 HOST_ARCH=ia32 | 66 HOST_ARCH=ia32 |
66 JOBS=$(grep processor /proc/cpuinfo | wc -l) | 67 JOBS=$(grep processor /proc/cpuinfo | wc -l) |
67 ;; | 68 ;; |
68 Linux\ x86_64) | 69 Linux\ x86_64) |
69 HOST_OS=linux | 70 HOST_OS=linux |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 echo "Chrome configure/build:" | 385 echo "Chrome configure/build:" |
385 build Chrome $FLAGS_COMMON $FLAGS_CHROME | 386 build Chrome $FLAGS_COMMON $FLAGS_CHROME |
386 | 387 |
387 if [ "$TARGET_OS" = "linux" ]; then | 388 if [ "$TARGET_OS" = "linux" ]; then |
388 echo "ChromiumOS configure/build:" | 389 echo "ChromiumOS configure/build:" |
389 build ChromiumOS $FLAGS_COMMON $FLAGS_CHROMIUM $FLAGS_CHROMIUMOS | 390 build ChromiumOS $FLAGS_COMMON $FLAGS_CHROMIUM $FLAGS_CHROMIUMOS |
390 echo "ChromeOS configure/build:" | 391 echo "ChromeOS configure/build:" |
391 build ChromeOS $FLAGS_COMMON $FLAGS_CHROME $FLAGS_CHROMEOS | 392 build ChromeOS $FLAGS_COMMON $FLAGS_CHROME $FLAGS_CHROMEOS |
392 fi | 393 fi |
393 | 394 |
394 echo "Done. If desired you may copy config.h/config.asm into the source/config t
ree using copy_config.sh." | 395 echo "Done. If desired you may copy config.h/config.asm into the" \ |
| 396 "source/config tree using copy_config.sh." |
OLD | NEW |