Home | History | Annotate | Download | only in files
      1 vars = {
      2   'chromium_git': 'https://chromium.googlesource.com',
      3   'chromium_revision': 'da7cc8ca4c326895886b10df62d513fac256d74f',
      4   'swarming_revision': '11e31afa5d330756ff87aa12064bb5d032896cb5',
      5   # Three lines of non-changing comments so that
      6   # the commit queue can handle CLs rolling lss
      7   # and whatever else without interference from each other.
      8   'lss_revision': '63f24c8221a229f677d26ebe8f3d1528a9d787ac',
      9   # Three lines of non-changing comments so that
     10   # the commit queue can handle CLs rolling catapult
     11   # and whatever else without interference from each other.
     12   'catapult_revision': '49eb11f63eb4d552d634833a01d2710208ba0523',
     13 }
     14 
     15 deps = {
     16   'src/build':
     17     Var('chromium_git') + '/chromium/src/build' + '@' + '15013685bdd59b8e548ffdef88b6fddae4f0e49c',
     18   'src/buildtools':
     19     Var('chromium_git') + '/chromium/buildtools.git' + '@' + '88811f48a6b79786ef35be86825642fc33011151',
     20   'src/testing':
     21     Var('chromium_git') + '/chromium/src/testing' + '@' + '6885521e316f349c47c4f23f5bce9bd44cb0eece',
     22   'src/testing/gtest':
     23     Var('chromium_git') + '/external/github.com/google/googletest.git' + '@' + '6f8a66431cb592dad629028a50b3dd418a408c87',
     24   'src/testing/gmock':
     25     Var('chromium_git') + '/external/googlemock.git' + '@' + '0421b6f358139f02e102c9c332ce19a33faf75be', # from svn revision 566
     26   'src/third_party':
     27     Var('chromium_git') + '/chromium/src/third_party' + '@' + 'be0a7d2accc6d1e69eb9fa005d98e1558b9227ff',
     28   'src/third_party/catapult':
     29    Var('chromium_git') + '/external/github.com/catapult-project/catapult.git' + '@' + Var('catapult_revision'),
     30   'src/third_party/colorama/src':
     31     Var('chromium_git') + '/external/colorama.git' + '@' + '799604a1041e9b3bc5d2789ecbd7e8db2e18e6b8',
     32   'src/third_party/libjpeg_turbo':
     33     Var('chromium_git') + '/chromium/deps/libjpeg_turbo.git' + '@' + '7260e4d8b8e1e40b17f03fafdf1cd83296900f76',
     34   'src/third_party/yasm/source/patched-yasm':
     35     Var('chromium_git') + '/chromium/deps/yasm/patched-yasm.git' + '@' + '7da28c6c7c6a1387217352ce02b31754deb54d2a',
     36   'src/tools':
     37     Var('chromium_git') + '/chromium/src/tools' + '@' + '80ce3971a8a250e9d0180e38a29553273877166c',
     38   'src/tools/gyp':
     39     Var('chromium_git') + '/external/gyp.git' + '@' + 'e7079f0e0e14108ab0dba58728ff219637458563',
     40    'src/tools/swarming_client':
     41      Var('chromium_git') + '/external/swarming.client.git' + '@' +  Var('swarming_revision'),
     42 
     43   # libyuv-only dependencies (not present in Chromium).
     44   'src/third_party/gflags':
     45     Var('chromium_git') + '/external/webrtc/deps/third_party/gflags' + '@' + '892576179b45861b53e04a112996a738309cf364',
     46   'src/third_party/gflags/src':
     47     Var('chromium_git') + '/external/github.com/gflags/gflags' + '@' + '03bebcb065c83beff83d50ae025a55a4bf94dfca',
     48   'src/third_party/gtest-parallel':
     49     Var('chromium_git') + '/external/webrtc/deps/third_party/gtest-parallel' + '@' + '1dad0e9f6d82ff994130b529d7d814b40eb32b0e',
     50 }
     51 
     52 deps_os = {
     53   'android': {
     54     'src/base':
     55       Var('chromium_git') + '/chromium/src/base' + '@' + '636a52bf9d2ab7ea4e97d0a933bbd5706acbbc7c',
     56     'src/third_party/android_tools':
     57       Var('chromium_git') + '/android_tools.git' + '@' + 'b65c4776dac2cf1b80e969b3b2d4e081b9c84f29',
     58     'src/third_party/ced/src':
     59       Var('chromium_git') + '/external/github.com/google/compact_enc_det.git' + '@' + 'e21eb6aed10b9f6e2727f136c52420033214d458',
     60     'src/third_party/icu':
     61       Var('chromium_git') + '/chromium/deps/icu.git' + '@' + 'b34251f8b762f8e2112a89c587855ca4297fed96',
     62     'src/third_party/jsr-305/src':
     63       Var('chromium_git') + '/external/jsr-305.git' + '@' + '642c508235471f7220af6d5df2d3210e3bfc0919',
     64     'src/third_party/junit/src':
     65       Var('chromium_git') + '/external/junit.git' + '@' + '64155f8a9babcfcf4263cf4d08253a1556e75481',
     66     'src/third_party/lss':
     67       Var('chromium_git') + '/linux-syscall-support.git' + '@' + Var('lss_revision'),
     68     'src/third_party/mockito/src':
     69       Var('chromium_git') + '/external/mockito/mockito.git' + '@' + 'de83ad4598ad4cf5ea53c69a8a8053780b04b850',
     70     'src/third_party/requests/src':
     71       Var('chromium_git') + '/external/github.com/kennethreitz/requests.git' + '@' + 'f172b30356d821d180fa4ecfa3e71c7274a32de4',
     72     'src/third_party/robolectric/robolectric':
     73       Var('chromium_git') + '/external/robolectric.git' + '@' + 'e38b49a12fdfa17a94f0382cc8ffaf69132fd09b',
     74   },
     75   'ios': {
     76     'src/ios':
     77       Var('chromium_git') + '/chromium/src/ios' + '@' + '9d4d917abc902ad9eb512839948b880194f76338',
     78   },
     79   'unix': {
     80     'src/third_party/lss':
     81       Var('chromium_git') + '/linux-syscall-support.git' + '@' + Var('lss_revision'),
     82   },
     83   'win': {
     84     # Dependencies used by libjpeg-turbo
     85     'src/third_party/yasm/binaries':
     86       Var('chromium_git') + '/chromium/deps/yasm/binaries.git' + '@' + '52f9b3f4b0aa06da24ef8b123058bb61ee468881',
     87   },
     88 }
     89 
     90 # Define rules for which include paths are allowed in our source.
     91 include_rules = [ '+gflags' ]
     92 
     93 pre_deps_hooks = [
     94   {
     95     # Remove any symlinks from before 177567c518b121731e507e9b9c4049c4dc96e4c8.
     96     # TODO(kjellander): Remove this in March 2017.
     97     'name': 'cleanup_links',
     98     'pattern': '.',
     99     'action': ['python', 'src/cleanup_links.py'],
    100   },
    101 ]
    102 
    103 hooks = [
    104   {
    105     # This clobbers when necessary (based on get_landmines.py). It should be
    106     # an early hook but it will need to be run after syncing Chromium and
    107     # setting up the links, so the script actually exists.
    108     'name': 'landmines',
    109     'pattern': '.',
    110     'action': [
    111         'python',
    112         'src/build/landmines.py',
    113         '--landmine-scripts',
    114         'src/tools_libyuv/get_landmines.py',
    115         '--src-dir',
    116         'src',
    117     ],
    118   },
    119   # Android dependencies. Many are downloaded using Google Storage these days.
    120   # They're copied from https://cs.chromium.org/chromium/src/DEPS for all
    121   # such dependencies we share with Chromium.
    122   {
    123     # This downloads SDK extras and puts them in the
    124     # third_party/android_tools/sdk/extras directory.
    125     'name': 'sdkextras',
    126     'pattern': '.',
    127     # When adding a new sdk extras package to download, add the package
    128     # directory and zip file to .gitignore in third_party/android_tools.
    129     'action': ['python',
    130                'src/build/android/play_services/update.py',
    131                'download'
    132     ],
    133   },
    134   {
    135     'name': 'intellij',
    136     'pattern': '.',
    137     'action': ['python',
    138                'src/build/android/update_deps/update_third_party_deps.py',
    139                'download',
    140                '-b', 'chromium-intellij',
    141                '-l', 'third_party/intellij'
    142     ],
    143   },
    144   {
    145     'name': 'javax_inject',
    146     'pattern': '.',
    147     'action': ['python',
    148                'src/build/android/update_deps/update_third_party_deps.py',
    149                'download',
    150                '-b', 'chromium-javax-inject',
    151                '-l', 'third_party/javax_inject'
    152     ],
    153   },
    154   {
    155     'name': 'hamcrest',
    156     'pattern': '.',
    157     'action': ['python',
    158                'src/build/android/update_deps/update_third_party_deps.py',
    159                'download',
    160                '-b', 'chromium-hamcrest',
    161                '-l', 'third_party/hamcrest'
    162     ],
    163   },
    164   {
    165     'name': 'guava',
    166     'pattern': '.',
    167     'action': ['python',
    168                'src/build/android/update_deps/update_third_party_deps.py',
    169                'download',
    170                '-b', 'chromium-guava',
    171                '-l', 'third_party/guava'
    172     ],
    173   },
    174   {
    175     'name': 'android_support_test_runner',
    176     'pattern': '.',
    177     'action': ['python',
    178                'src/build/android/update_deps/update_third_party_deps.py',
    179                'download',
    180                '-b', 'chromium-android-support-test-runner',
    181                '-l', 'third_party/android_support_test_runner'
    182     ],
    183   },
    184   {
    185     'name': 'byte_buddy',
    186     'pattern': '.',
    187     'action': ['python',
    188                'src/build/android/update_deps/update_third_party_deps.py',
    189                'download',
    190                '-b', 'chromium-byte-buddy',
    191                '-l', 'third_party/byte_buddy'
    192     ],
    193   },
    194   {
    195     'name': 'espresso',
    196     'pattern': '.',
    197     'action': ['python',
    198                'src/build/android/update_deps/update_third_party_deps.py',
    199                'download',
    200                '-b', 'chromium-espresso',
    201                '-l', 'third_party/espresso'
    202     ],
    203   },
    204   {
    205     'name': 'robolectric_libs',
    206     'pattern': '.',
    207     'action': ['python',
    208                'src/build/android/update_deps/update_third_party_deps.py',
    209                'download',
    210                '-b', 'chromium-robolectric',
    211                '-l', 'third_party/robolectric'
    212     ],
    213   },
    214   {
    215     'name': 'apache_velocity',
    216     'pattern': '.',
    217     'action': ['python',
    218                'src/build/android/update_deps/update_third_party_deps.py',
    219                'download',
    220                '-b', 'chromium-apache-velocity',
    221                '-l', 'third_party/apache_velocity'
    222     ],
    223   },
    224   {
    225     'name': 'ow2_asm',
    226     'pattern': '.',
    227     'action': ['python',
    228                'src/build/android/update_deps/update_third_party_deps.py',
    229                'download',
    230                '-b', 'chromium-ow2-asm',
    231                '-l', 'third_party/ow2_asm'
    232     ],
    233   },
    234   {
    235     'name': 'icu4j',
    236     'pattern': '.',
    237     'action': ['python',
    238                'src/build/android/update_deps/update_third_party_deps.py',
    239                'download',
    240                '-b', 'chromium-icu4j',
    241                '-l', 'third_party/icu4j'
    242     ],
    243   },
    244   {
    245     'name': 'accessibility_test_framework',
    246     'pattern': '.',
    247     'action': ['python',
    248                'src/build/android/update_deps/update_third_party_deps.py',
    249                'download',
    250                '-b', 'chromium-accessibility-test-framework',
    251                '-l', 'third_party/accessibility_test_framework'
    252     ],
    253   },
    254   {
    255     'name': 'bouncycastle',
    256     'pattern': '.',
    257     'action': ['python',
    258                'src/build/android/update_deps/update_third_party_deps.py',
    259                'download',
    260                '-b', 'chromium-bouncycastle',
    261                '-l', 'third_party/bouncycastle'
    262     ],
    263   },
    264   {
    265     'name': 'sqlite4java',
    266     'pattern': '.',
    267     'action': ['python',
    268                'src/build/android/update_deps/update_third_party_deps.py',
    269                'download',
    270                '-b', 'chromium-sqlite4java',
    271                '-l', 'third_party/sqlite4java'
    272     ],
    273   },
    274   {
    275     'name': 'objenesis',
    276     'pattern': '.',
    277     'action': ['python',
    278                'src/build/android/update_deps/update_third_party_deps.py',
    279                'download',
    280                '-b', 'chromium-objenesis',
    281                '-l', 'third_party/objenesis'
    282     ],
    283   },
    284   {
    285     # Downloads the current stable linux sysroot to build/linux/ if needed.
    286     # This sysroot updates at about the same rate that the chrome build deps
    287     # change. This script is a no-op except for linux users who are doing
    288     # official chrome builds or cross compiling.
    289     'name': 'sysroot',
    290     'pattern': '.',
    291     'action': ['python', 'src/build/linux/sysroot_scripts/install-sysroot.py',
    292                '--running-as-hook'],
    293   },
    294   {
    295     # Update the Windows toolchain if necessary.
    296     'name': 'win_toolchain',
    297     'pattern': '.',
    298     'action': ['python', 'src/build/vs_toolchain.py', 'update'],
    299   },
    300   # Pull binutils for linux, enabled debug fission for faster linking /
    301   # debugging when used with clang on Ubuntu Precise.
    302   # https://code.google.com/p/chromium/issues/detail?id=352046
    303   {
    304     'name': 'binutils',
    305     'pattern': 'src/third_party/binutils',
    306     'action': [
    307         'python',
    308         'src/third_party/binutils/download.py',
    309     ],
    310   },
    311   {
    312     # Pull clang if needed or requested via GYP_DEFINES.
    313     # Note: On Win, this should run after win_toolchain, as it may use it.
    314     'name': 'clang',
    315     'pattern': '.',
    316     'action': ['python', 'src/tools/clang/scripts/update.py', '--if-needed'],
    317   },
    318   {
    319     # Update LASTCHANGE.
    320     'name': 'lastchange',
    321     'pattern': '.',
    322     'action': ['python', 'src/build/util/lastchange.py',
    323                '-o', 'src/build/util/LASTCHANGE'],
    324   },
    325   # Pull GN binaries.
    326   {
    327     'name': 'gn_win',
    328     'pattern': '.',
    329     'action': [ 'download_from_google_storage',
    330                 '--no_resume',
    331                 '--platform=win32',
    332                 '--no_auth',
    333                 '--bucket', 'chromium-gn',
    334                 '-s', 'src/buildtools/win/gn.exe.sha1',
    335     ],
    336   },
    337   {
    338     'name': 'gn_mac',
    339     'pattern': '.',
    340     'action': [ 'download_from_google_storage',
    341                 '--no_resume',
    342                 '--platform=darwin',
    343                 '--no_auth',
    344                 '--bucket', 'chromium-gn',
    345                 '-s', 'src/buildtools/mac/gn.sha1',
    346     ],
    347   },
    348   {
    349     'name': 'gn_linux64',
    350     'pattern': '.',
    351     'action': [ 'download_from_google_storage',
    352                 '--no_resume',
    353                 '--platform=linux*',
    354                 '--no_auth',
    355                 '--bucket', 'chromium-gn',
    356                 '-s', 'src/buildtools/linux64/gn.sha1',
    357     ],
    358   },
    359   # Pull clang-format binaries using checked-in hashes.
    360   {
    361     'name': 'clang_format_win',
    362     'pattern': '.',
    363     'action': [ 'download_from_google_storage',
    364                 '--no_resume',
    365                 '--platform=win32',
    366                 '--no_auth',
    367                 '--bucket', 'chromium-clang-format',
    368                 '-s', 'src/buildtools/win/clang-format.exe.sha1',
    369     ],
    370   },
    371   {
    372     'name': 'clang_format_mac',
    373     'pattern': '.',
    374     'action': [ 'download_from_google_storage',
    375                 '--no_resume',
    376                 '--platform=darwin',
    377                 '--no_auth',
    378                 '--bucket', 'chromium-clang-format',
    379                 '-s', 'src/buildtools/mac/clang-format.sha1',
    380     ],
    381   },
    382   {
    383     'name': 'clang_format_linux',
    384     'pattern': '.',
    385     'action': [ 'download_from_google_storage',
    386                 '--no_resume',
    387                 '--platform=linux*',
    388                 '--no_auth',
    389                 '--bucket', 'chromium-clang-format',
    390                 '-s', 'src/buildtools/linux64/clang-format.sha1',
    391     ],
    392   },
    393   # Pull luci-go binaries (isolate, swarming) using checked-in hashes.
    394   {
    395     'name': 'luci-go_win',
    396     'pattern': '.',
    397     'action': [ 'download_from_google_storage',
    398                 '--no_resume',
    399                 '--platform=win32',
    400                 '--no_auth',
    401                 '--bucket', 'chromium-luci',
    402                 '-d', 'src/tools/luci-go/win64',
    403     ],
    404   },
    405   {
    406     'name': 'luci-go_mac',
    407     'pattern': '.',
    408     'action': [ 'download_from_google_storage',
    409                 '--no_resume',
    410                 '--platform=darwin',
    411                 '--no_auth',
    412                 '--bucket', 'chromium-luci',
    413                 '-d', 'src/tools/luci-go/mac64',
    414     ],
    415   },
    416   {
    417     'name': 'luci-go_linux',
    418     'pattern': '.',
    419     'action': [ 'download_from_google_storage',
    420                 '--no_resume',
    421                 '--platform=linux*',
    422                 '--no_auth',
    423                 '--bucket', 'chromium-luci',
    424                 '-d', 'src/tools/luci-go/linux64',
    425     ],
    426   },
    427   {
    428     'name': 'clang_format_merge_driver',
    429     'pattern': '.',
    430     'action': [ 'python',
    431                 'src/tools/clang_format_merge_driver/install_git_hook.py',
    432     ],
    433   },
    434 ]
    435 
    436 recursedeps = [
    437   # buildtools provides clang_format, libc++, and libc++abi.
    438   'src/buildtools',
    439   # android_tools manages the NDK.
    440   'src/third_party/android_tools',
    441 ]
    442