OLD | NEW |
1 # Getting Started | 1 # Getting Started |
2 | 2 |
3 How to get and build the libyuv code. | 3 How to get and build the libyuv code. |
4 | 4 |
5 ## Pre-requisites | 5 ## Pre-requisites |
6 | 6 |
7 You'll need to have depot tools installed: https://www.chromium.org/developers/h
ow-tos/install-depot-tools | 7 You'll need to have depot tools installed: https://www.chromium.org/developers/h
ow-tos/install-depot-tools |
8 Refer to chromium instructions for each platform for other prerequisites. | 8 Refer to chromium instructions for each platform for other prerequisites. |
9 | 9 |
10 ## Getting the Code | 10 ## Getting the Code |
(...skipping 28 matching lines...) Loading... |
39 | 39 |
40 solutions = [ | 40 solutions = [ |
41 { "name" : "libyuv", | 41 { "name" : "libyuv", |
42 "url" : "https://chromium.googlesource.com/libyuv/libyuv", | 42 "url" : "https://chromium.googlesource.com/libyuv/libyuv", |
43 "deps_file" : "DEPS", | 43 "deps_file" : "DEPS", |
44 "managed" : True, | 44 "managed" : True, |
45 "custom_deps" : { | 45 "custom_deps" : { |
46 }, | 46 }, |
47 "safesync_url": "", | 47 "safesync_url": "", |
48 }, | 48 }, |
49 ] | 49 ]; |
50 target_os = ["android", "unix"] | 50 target_os = ["android", "unix"]; |
51 | 51 |
52 Then run: | 52 Then run: |
53 | 53 |
54 export GYP_DEFINES="OS=android" | 54 export GYP_DEFINES="OS=android" |
55 gclient sync | 55 gclient sync |
56 | 56 |
57 For Windows the gclient sync must be done from an Administrator command prompt. | 57 For Windows the gclient sync must be done from an Administrator command prompt. |
58 | 58 |
59 The sync will generate native build files for your environment using gyp (Window
s: Visual Studio, OSX: XCode, Linux: make). This generation can also be forced m
anually: `gclient runhooks` | 59 The sync will generate native build files for your environment using gyp (Window
s: Visual Studio, OSX: XCode, Linux: make). This generation can also be forced m
anually: `gclient runhooks` |
60 | 60 |
(...skipping 114 matching lines...) Loading... |
175 | 175 |
176 #### Building with GN | 176 #### Building with GN |
177 | 177 |
178 call gn gen out/Release "--args=is_debug=false target_cpu=\"x86\"" | 178 call gn gen out/Release "--args=is_debug=false target_cpu=\"x86\"" |
179 call gn gen out/Debug "--args=is_debug=true target_cpu=\"x86\"" | 179 call gn gen out/Debug "--args=is_debug=true target_cpu=\"x86\"" |
180 ninja -C out/Release | 180 ninja -C out/Release |
181 ninja -C out/Debug | 181 ninja -C out/Debug |
182 | 182 |
183 ### Linux | 183 ### Linux |
184 | 184 |
185 tools/clang/scripts/update.sh | |
186 GYP_DEFINES="target_arch=x64" ./gyp_libyuv | 185 GYP_DEFINES="target_arch=x64" ./gyp_libyuv |
187 ninja -j7 -C out/Debug | 186 ninja -j7 -C out/Debug |
188 ninja -j7 -C out/Release | 187 ninja -j7 -C out/Release |
189 | 188 |
190 GYP_DEFINES="target_arch=ia32" ./gyp_libyuv | 189 GYP_DEFINES="target_arch=ia32" ./gyp_libyuv |
191 ninja -j7 -C out/Debug | 190 ninja -j7 -C out/Debug |
192 ninja -j7 -C out/Release | 191 ninja -j7 -C out/Release |
193 | 192 |
194 #### CentOS | 193 #### CentOS |
195 | 194 |
(...skipping 211 matching lines...) Loading... |
407 git checkout -b mycl -t origin/master | 406 git checkout -b mycl -t origin/master |
408 git pull | 407 git pull |
409 <edit files> | 408 <edit files> |
410 git add -u | 409 git add -u |
411 git commit -m "my change" | 410 git commit -m "my change" |
412 git cl lint | 411 git cl lint |
413 git cl try | 412 git cl try |
414 git cl upload -r a-reviewer@chomium.org -s | 413 git cl upload -r a-reviewer@chomium.org -s |
415 <once approved..> | 414 <once approved..> |
416 git cl land | 415 git cl land |
OLD | NEW |