andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 1 | use_relative_paths = True |
| 2 | |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 3 | vars = { |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 4 | # Override root_dir in your .gclient's custom_vars to specify a custom root |
| 5 | # folder name. |
| 6 | "root_dir": "trunk", |
andrew@webrtc.org | ea5d0e5 | 2012-08-09 17:37:03 +0000 | [diff] [blame] | 7 | "extra_gyp_flag": "-Dextra_gyp_flag=0", |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 8 | |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 9 | # Use this googlecode_url variable only if there is an internal mirror for it. |
| 10 | # If you do not know, use the full path while defining your new deps entry. |
| 11 | "googlecode_url": "http://%s.googlecode.com/svn", |
| 12 | "chromium_trunk" : "http://src.chromium.org/svn/trunk", |
kjellander@webrtc.org | 75ba519 | 2013-01-11 16:04:50 +0000 | [diff] [blame] | 13 | "chromium_revision": "176094", |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 14 | |
| 15 | # External resources like video and audio files used for testing purposes. |
| 16 | # Downloaded on demand when needed. |
henrik.lundin@webrtc.org | 73deaad | 2013-01-31 13:32:51 +0000 | [diff] [blame] | 17 | "webrtc_resources_revision": "15", |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | # NOTE: Prefer revision numbers to tags for svn deps. Use http rather than |
| 21 | # https; the latter can cause problems for users behind proxies. |
| 22 | deps = { |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 23 | "../chromium_deps": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 24 | File(Var("chromium_trunk") + "/src/DEPS@" + Var("chromium_revision")), |
| 25 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 26 | "build": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 27 | Var("chromium_trunk") + "/src/build@" + Var("chromium_revision"), |
| 28 | |
andrew@webrtc.org | b9d2064 | 2012-09-19 23:08:50 +0000 | [diff] [blame] | 29 | # Needed by common.gypi. |
| 30 | "google_apis/build": |
| 31 | Var("chromium_trunk") + "/src/google_apis/build@" + Var("chromium_revision"), |
| 32 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 33 | "testing": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 34 | Var("chromium_trunk") + "/src/testing@" + Var("chromium_revision"), |
| 35 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 36 | "testing/gmock": |
| 37 | From("chromium_deps", "src/testing/gmock"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 38 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 39 | "testing/gtest": |
| 40 | From("chromium_deps", "src/testing/gtest"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 41 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 42 | "third_party/expat": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 43 | Var("chromium_trunk") + "/src/third_party/expat@" + Var("chromium_revision"), |
| 44 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 45 | "third_party/google-gflags/src": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 46 | (Var("googlecode_url") % "google-gflags") + "/trunk/src@45", |
| 47 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 48 | "third_party/libjpeg": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 49 | Var("chromium_trunk") + "/src/third_party/libjpeg@" + Var("chromium_revision"), |
| 50 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 51 | "third_party/libjpeg_turbo": |
| 52 | From("chromium_deps", "src/third_party/libjpeg_turbo"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 53 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 54 | "third_party/libvpx/source/libvpx": |
marpan@webrtc.org | 9f0fc97 | 2012-12-11 23:02:32 +0000 | [diff] [blame] | 55 | "http://git.chromium.org/webm/libvpx.git@7a09f6b8", |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 56 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 57 | "third_party/libyuv": |
fbarchard@google.com | ebc6d8f | 2013-01-17 01:43:38 +0000 | [diff] [blame] | 58 | (Var("googlecode_url") % "libyuv") + "/trunk@540", |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 59 | |
tina.legrand@webrtc.org | 1f8c02a | 2012-10-25 12:37:08 +0000 | [diff] [blame] | 60 | "third_party/opus": |
leozwang@webrtc.org | ac77084 | 2012-12-19 17:24:30 +0000 | [diff] [blame] | 61 | Var("chromium_trunk") + "/src/third_party/opus@172355", |
tina.legrand@webrtc.org | 1f8c02a | 2012-10-25 12:37:08 +0000 | [diff] [blame] | 62 | |
| 63 | "third_party/opus/src": |
leozwang@webrtc.org | ac77084 | 2012-12-19 17:24:30 +0000 | [diff] [blame] | 64 | Var("chromium_trunk") + "/deps/third_party/opus@173498", |
tina.legrand@webrtc.org | 1f8c02a | 2012-10-25 12:37:08 +0000 | [diff] [blame] | 65 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 66 | "third_party/protobuf": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 67 | Var("chromium_trunk") + "/src/third_party/protobuf@" + Var("chromium_revision"), |
| 68 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 69 | "third_party/yasm": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 70 | Var("chromium_trunk") + "/src/third_party/yasm@" + Var("chromium_revision"), |
| 71 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 72 | "third_party/yasm/source/patched-yasm": |
| 73 | From("chromium_deps", "src/third_party/yasm/source/patched-yasm"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 74 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 75 | "tools/clang": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 76 | Var("chromium_trunk") + "/src/tools/clang@" + Var("chromium_revision"), |
| 77 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 78 | "tools/gyp": |
| 79 | From("chromium_deps", "src/tools/gyp"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 80 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 81 | "tools/python": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 82 | Var("chromium_trunk") + "/src/tools/python@" + Var("chromium_revision"), |
| 83 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 84 | "tools/valgrind": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 85 | Var("chromium_trunk") + "/src/tools/valgrind@" + Var("chromium_revision"), |
| 86 | |
| 87 | # Needed by build/common.gypi. |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 88 | "tools/win/supalink": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 89 | Var("chromium_trunk") + "/src/tools/win/supalink@" + Var("chromium_revision"), |
| 90 | } |
| 91 | |
| 92 | deps_os = { |
| 93 | "win": { |
| 94 | # Use our own, stripped down, version of Cygwin (required by GYP). |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 95 | "third_party/cygwin": |
andrew@webrtc.org | 7b2e919 | 2012-08-28 15:56:40 +0000 | [diff] [blame] | 96 | (Var("googlecode_url") % "webrtc") + "/deps/third_party/cygwin@2672", |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 97 | |
andrew@webrtc.org | 8cd18c5 | 2012-11-21 18:46:45 +0000 | [diff] [blame] | 98 | "third_party/winsdk_samples/src": |
| 99 | (Var("googlecode_url") % "webrtc") + "/deps/third_party/winsdk_samples_v71@3145", |
| 100 | |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 101 | # Used by libjpeg-turbo. |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 102 | "third_party/yasm/binaries": |
| 103 | From("chromium_deps", "src/third_party/yasm/binaries"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 104 | }, |
| 105 | "unix": { |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 106 | "third_party/gold": |
| 107 | From("chromium_deps", "src/third_party/gold"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 108 | }, |
kjellander@webrtc.org | 18a21a0 | 2013-02-11 17:43:19 +0000 | [diff] [blame] | 109 | "android": { |
| 110 | "third_party/android_tools": |
| 111 | From("chromium_deps", "src/third_party/android_tools"), |
| 112 | |
| 113 | "third_party/android_testrunner": |
| 114 | Var("chromium_trunk") + "/src/third_party/android_testrunner@" + Var("chromium_revision"), |
| 115 | |
| 116 | "third_party/WebKit/Tools/Scripts": |
| 117 | From("chromium_deps", "src/third_party/WebKit/Tools/Scripts"), |
| 118 | }, |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 119 | } |
| 120 | |
| 121 | hooks = [ |
| 122 | { |
andrew@webrtc.org | 14b43be | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 123 | # Create a supplement.gypi file under trunk/webrtc. This file will be picked |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 124 | # up by gyp and used to enable the standalone build. |
| 125 | "pattern": ".", |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 126 | "action": ["python", Var("root_dir") + "/tools/create_supplement_gypi.py", |
andrew@webrtc.org | 14b43be | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 127 | Var("root_dir") + "/webrtc/supplement.gypi"], |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 128 | }, |
| 129 | { |
| 130 | # Pull clang on mac. If nothing changed, or on non-mac platforms, this takes |
| 131 | # zero seconds to run. If something changed, it downloads a prebuilt clang. |
| 132 | "pattern": ".", |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 133 | "action": ["python", Var("root_dir") + "/tools/clang/scripts/update.py", |
| 134 | "--mac-only"], |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 135 | }, |
| 136 | { |
stefan@webrtc.org | c311583 | 2012-08-17 06:57:58 +0000 | [diff] [blame] | 137 | # Update the cygwin mount on Windows. |
| 138 | # This is necessary to get the correct mapping between e.g. /bin and the |
| 139 | # cygwin path on Windows. Without it we can't run bash scripts in actions. |
| 140 | # Ideally this should be solved in "pylib/gyp/msvs_emulation.py". |
| 141 | "pattern": ".", |
| 142 | "action": ["python", Var("root_dir") + "/build/win/setup_cygwin_mount.py", |
| 143 | "--win-only"], |
| 144 | }, |
| 145 | { |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 146 | # Download test resources, i.e. video and audio files. If the latest |
| 147 | # version is already downloaded, this takes zero seconds to run. |
| 148 | # If a newer version or no current download exists, it will download |
| 149 | # the resources and extract them. |
| 150 | "pattern": ".", |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 151 | "action": ["python", Var("root_dir") + "/tools/resources/update.py"], |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 152 | }, |
| 153 | { |
| 154 | # A change to a .gyp, .gypi, or to GYP itself should run the generator. |
| 155 | "pattern": ".", |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 156 | "action": ["python", Var("root_dir") + "/build/gyp_chromium", |
andrew@webrtc.org | ea5d0e5 | 2012-08-09 17:37:03 +0000 | [diff] [blame] | 157 | "--depth=" + Var("root_dir"), Var("root_dir") + "/webrtc.gyp", |
| 158 | Var("extra_gyp_flag")], |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 159 | }, |
| 160 | ] |
| 161 | |