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", |
fischman@webrtc.org | b7a8f43 | 2013-06-04 17:10:24 +0000 | [diff] [blame] | 13 | "chromium_revision": "203806", |
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. |
solenberg@webrtc.org | 56b5f77 | 2013-04-16 10:31:56 +0000 | [diff] [blame] | 17 | "webrtc_resources_revision": "16", |
kjellander@webrtc.org | 430464c | 2013-06-04 16:29:45 +0000 | [diff] [blame] | 18 | |
| 19 | # A small subset of WebKit is needed for the Android Python test framework. |
| 20 | "webkit_trunk": "http://src.chromium.org/blink/trunk", |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 21 | } |
| 22 | |
| 23 | # NOTE: Prefer revision numbers to tags for svn deps. Use http rather than |
| 24 | # https; the latter can cause problems for users behind proxies. |
| 25 | deps = { |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 26 | "../chromium_deps": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 27 | File(Var("chromium_trunk") + "/src/DEPS@" + Var("chromium_revision")), |
| 28 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 29 | "build": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 30 | Var("chromium_trunk") + "/src/build@" + Var("chromium_revision"), |
| 31 | |
andrew@webrtc.org | b9d2064 | 2012-09-19 23:08:50 +0000 | [diff] [blame] | 32 | # Needed by common.gypi. |
| 33 | "google_apis/build": |
| 34 | Var("chromium_trunk") + "/src/google_apis/build@" + Var("chromium_revision"), |
| 35 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 36 | "testing": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 37 | Var("chromium_trunk") + "/src/testing@" + Var("chromium_revision"), |
| 38 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 39 | "testing/gmock": |
| 40 | From("chromium_deps", "src/testing/gmock"), |
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 | "testing/gtest": |
| 43 | From("chromium_deps", "src/testing/gtest"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 44 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 45 | "third_party/expat": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 46 | Var("chromium_trunk") + "/src/third_party/expat@" + Var("chromium_revision"), |
| 47 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 48 | "third_party/google-gflags/src": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 49 | (Var("googlecode_url") % "google-gflags") + "/trunk/src@45", |
| 50 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 51 | "third_party/libjpeg": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 52 | Var("chromium_trunk") + "/src/third_party/libjpeg@" + Var("chromium_revision"), |
| 53 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 54 | "third_party/libjpeg_turbo": |
| 55 | From("chromium_deps", "src/third_party/libjpeg_turbo"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 56 | |
andrew@webrtc.org | e6e344a | 2013-02-12 19:35:18 +0000 | [diff] [blame] | 57 | "third_party/libvpx": |
marpan@webrtc.org | 106afff | 2013-05-21 21:19:03 +0000 | [diff] [blame] | 58 | Var("chromium_trunk") + "/deps/third_party/libvpx@196669", |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 59 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 60 | "third_party/libyuv": |
fbarchard@google.com | 2ef9513 | 2013-06-11 22:03:29 +0000 | [diff] [blame] | 61 | (Var("googlecode_url") % "libyuv") + "/trunk@723", |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 62 | |
tina.legrand@webrtc.org | 1f8c02a | 2012-10-25 12:37:08 +0000 | [diff] [blame] | 63 | "third_party/opus": |
tina.legrand@webrtc.org | e86f43b | 2013-03-22 12:39:54 +0000 | [diff] [blame] | 64 | Var("chromium_trunk") + "/src/third_party/opus@185405", |
tina.legrand@webrtc.org | 1f8c02a | 2012-10-25 12:37:08 +0000 | [diff] [blame] | 65 | |
| 66 | "third_party/opus/src": |
tina.legrand@webrtc.org | e86f43b | 2013-03-22 12:39:54 +0000 | [diff] [blame] | 67 | Var("chromium_trunk") + "/deps/third_party/opus@185324", |
tina.legrand@webrtc.org | 1f8c02a | 2012-10-25 12:37:08 +0000 | [diff] [blame] | 68 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 69 | "third_party/protobuf": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 70 | Var("chromium_trunk") + "/src/third_party/protobuf@" + Var("chromium_revision"), |
| 71 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 72 | "third_party/yasm": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 73 | Var("chromium_trunk") + "/src/third_party/yasm@" + Var("chromium_revision"), |
| 74 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 75 | "third_party/yasm/source/patched-yasm": |
| 76 | From("chromium_deps", "src/third_party/yasm/source/patched-yasm"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 77 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 78 | "tools/clang": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 79 | Var("chromium_trunk") + "/src/tools/clang@" + Var("chromium_revision"), |
| 80 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 81 | "tools/gyp": |
| 82 | From("chromium_deps", "src/tools/gyp"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 83 | |
andrew@webrtc.org | 225f2b8 | 2013-05-20 21:12:58 +0000 | [diff] [blame] | 84 | "tools/protoc_wrapper": |
| 85 | Var("chromium_trunk") + "/src/tools/protoc_wrapper@" + Var("chromium_revision"), |
| 86 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 87 | "tools/python": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 88 | Var("chromium_trunk") + "/src/tools/python@" + Var("chromium_revision"), |
| 89 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 90 | "tools/valgrind": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 91 | Var("chromium_trunk") + "/src/tools/valgrind@" + Var("chromium_revision"), |
| 92 | |
| 93 | # Needed by build/common.gypi. |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 94 | "tools/win/supalink": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 95 | Var("chromium_trunk") + "/src/tools/win/supalink@" + Var("chromium_revision"), |
| 96 | } |
| 97 | |
| 98 | deps_os = { |
| 99 | "win": { |
| 100 | # Use our own, stripped down, version of Cygwin (required by GYP). |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 101 | "third_party/cygwin": |
andrew@webrtc.org | 7b2e919 | 2012-08-28 15:56:40 +0000 | [diff] [blame] | 102 | (Var("googlecode_url") % "webrtc") + "/deps/third_party/cygwin@2672", |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 103 | |
andrew@webrtc.org | 8cd18c5 | 2012-11-21 18:46:45 +0000 | [diff] [blame] | 104 | "third_party/winsdk_samples/src": |
| 105 | (Var("googlecode_url") % "webrtc") + "/deps/third_party/winsdk_samples_v71@3145", |
| 106 | |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 107 | # Used by libjpeg-turbo. |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 108 | "third_party/yasm/binaries": |
| 109 | From("chromium_deps", "src/third_party/yasm/binaries"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 110 | }, |
| 111 | "unix": { |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 112 | "third_party/gold": |
| 113 | From("chromium_deps", "src/third_party/gold"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 114 | }, |
kjellander@webrtc.org | 18a21a0 | 2013-02-11 17:43:19 +0000 | [diff] [blame] | 115 | "android": { |
kjellander@webrtc.org | 6cfe178 | 2013-06-18 07:14:33 +0000 | [diff] [blame] | 116 | # Precompiled tools needed for Android test execution. Needed since we can't |
| 117 | # compile them from source in WebRTC since they depend on Chromium's base. |
| 118 | "tools/android": |
| 119 | (Var("googlecode_url") % "webrtc") + "/deps/tools/android@4235", |
| 120 | |
kjellander@webrtc.org | 2d7617a | 2013-06-19 09:10:49 +0000 | [diff] [blame^] | 121 | "tools/android-dummy-test": |
| 122 | (Var("googlecode_url") % "webrtc") + "/deps/tools/android-dummy-test@4244", |
| 123 | |
kjellander@webrtc.org | 18a21a0 | 2013-02-11 17:43:19 +0000 | [diff] [blame] | 124 | "third_party/android_tools": |
| 125 | From("chromium_deps", "src/third_party/android_tools"), |
| 126 | |
| 127 | "third_party/android_testrunner": |
| 128 | Var("chromium_trunk") + "/src/third_party/android_testrunner@" + Var("chromium_revision"), |
kjellander@webrtc.org | 430464c | 2013-06-04 16:29:45 +0000 | [diff] [blame] | 129 | |
| 130 | "third_party/WebKit/Tools/Scripts": |
| 131 | Var("webkit_trunk") + "/Tools/Scripts@151677", |
kjellander@webrtc.org | 18a21a0 | 2013-02-11 17:43:19 +0000 | [diff] [blame] | 132 | }, |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 133 | } |
| 134 | |
| 135 | hooks = [ |
| 136 | { |
andrew@webrtc.org | 14b43be | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 137 | # 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] | 138 | # up by gyp and used to enable the standalone build. |
| 139 | "pattern": ".", |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 140 | "action": ["python", Var("root_dir") + "/tools/create_supplement_gypi.py", |
andrew@webrtc.org | 14b43be | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 141 | Var("root_dir") + "/webrtc/supplement.gypi"], |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 142 | }, |
| 143 | { |
| 144 | # Pull clang on mac. If nothing changed, or on non-mac platforms, this takes |
| 145 | # zero seconds to run. If something changed, it downloads a prebuilt clang. |
| 146 | "pattern": ".", |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 147 | "action": ["python", Var("root_dir") + "/tools/clang/scripts/update.py", |
| 148 | "--mac-only"], |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 149 | }, |
| 150 | { |
stefan@webrtc.org | c311583 | 2012-08-17 06:57:58 +0000 | [diff] [blame] | 151 | # Update the cygwin mount on Windows. |
| 152 | # This is necessary to get the correct mapping between e.g. /bin and the |
| 153 | # cygwin path on Windows. Without it we can't run bash scripts in actions. |
| 154 | # Ideally this should be solved in "pylib/gyp/msvs_emulation.py". |
| 155 | "pattern": ".", |
| 156 | "action": ["python", Var("root_dir") + "/build/win/setup_cygwin_mount.py", |
| 157 | "--win-only"], |
| 158 | }, |
| 159 | { |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 160 | # Download test resources, i.e. video and audio files. If the latest |
| 161 | # version is already downloaded, this takes zero seconds to run. |
| 162 | # If a newer version or no current download exists, it will download |
| 163 | # the resources and extract them. |
| 164 | "pattern": ".", |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 165 | "action": ["python", Var("root_dir") + "/tools/resources/update.py"], |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 166 | }, |
| 167 | { |
| 168 | # A change to a .gyp, .gypi, or to GYP itself should run the generator. |
| 169 | "pattern": ".", |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 170 | "action": ["python", Var("root_dir") + "/build/gyp_chromium", |
andrew@webrtc.org | ea5d0e5 | 2012-08-09 17:37:03 +0000 | [diff] [blame] | 171 | "--depth=" + Var("root_dir"), Var("root_dir") + "/webrtc.gyp", |
| 172 | Var("extra_gyp_flag")], |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 173 | }, |
| 174 | ] |
| 175 | |