mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-08 01:36:47 +08:00
Add a lot of new dependencies for the Android toolchain to setup_links.py (added for WebRTC in https://codereview.webrtc.org/2190893002 and https://codereview.webrtc.org/2215633002). There was no other way to get the Android test to build than renaming the APK to yuv_unittests. That made it possible to use build/apk_test.gypi (there's some bug somewhere that assumes names doesn't start with "lib", see http://crbug.com/543820). TBR=fbarchard@chromium.org BUG=libyuv:626 Review URL: https://codereview.chromium.org/2201893007 .
43 lines
1.4 KiB
Python
43 lines
1.4 KiB
Python
vars = {
|
|
# Override root_dir in your .gclient's custom_vars to specify a custom root
|
|
# folder name.
|
|
'root_dir': 'libyuv',
|
|
'extra_gyp_flag': '-Dextra_gyp_flag=0',
|
|
'chromium_git': 'https://chromium.googlesource.com',
|
|
|
|
# Roll the Chromium Git hash to pick up newer versions of all the
|
|
# dependencies and tools linked to in setup_links.py.
|
|
'chromium_revision': '33f87688e4d164cf8f2ada5b4d01a04468807a11',
|
|
}
|
|
|
|
# NOTE: Prefer revision numbers to tags for svn deps. Use http rather than
|
|
# https; the latter can cause problems for users behind proxies.
|
|
deps = {
|
|
Var('root_dir') + '/third_party/gflags/src':
|
|
Var('chromium_git') + '/external/github.com/gflags/gflags@03bebcb065c83beff83d50ae025a55a4bf94dfca',
|
|
}
|
|
|
|
# Define rules for which include paths are allowed in our source.
|
|
include_rules = [ '+gflags' ]
|
|
|
|
hooks = [
|
|
{
|
|
# Clone chromium and its deps.
|
|
'name': 'sync chromium',
|
|
'pattern': '.',
|
|
'action': ['python', '-u', Var('root_dir') + '/sync_chromium.py',
|
|
'--target-revision', Var('chromium_revision')],
|
|
},
|
|
{
|
|
# Create links to shared dependencies in Chromium.
|
|
'name': 'setup_links',
|
|
'pattern': '.',
|
|
'action': ['python', Var('root_dir') + '/setup_links.py'],
|
|
},
|
|
{
|
|
# A change to a .gyp, .gypi, or to GYP itself should run the generator.
|
|
'pattern': '.',
|
|
'action': ['python', Var('root_dir') + '/gyp_libyuv'],
|
|
},
|
|
]
|