Home | History | Annotate | Download | only in files
      1 vars = {
      2   'chromium_git': 'https://chromium.googlesource.com',
      3   'chromium_revision': '7950721f084767700b62bb6e1c90ea155efae980',
      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': '3f6478ac95edf86cd3da300c2c0d34a438f5dbeb',
      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': '353ee60a4567ec80252bb4047e54b2df3151717e',
     13 }
     14 
     15 deps = {
     16   'src/build':
     17     Var('chromium_git') + '/chromium/src/build' + '@' + 'bf8911f59bebb1cdd075e612c78e985cb14eca29',
     18   'src/buildtools':
     19     Var('chromium_git') + '/chromium/buildtools.git' + '@' + 'b3771b1935ea74c388b6fb1750e83f5d83b39dec',
     20   'src/testing':
     21     Var('chromium_git') + '/chromium/src/testing' + '@' + 'c2c74bc1d165ccc01ed03e424f72aa313eeb9120',
     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' + '@' + '4c0908d22e7c4cd423da28f69c64c6fd293b0e99',
     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' + '@' + '14318cc69b7116d7b4aa23ee58cdf3d7c71d4038',
     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' + '@' + 'd75864a2c554db298f34b188c07a11133c8bd88b',
     56     'src/third_party/android_tools':
     57       Var('chromium_git') + '/android_tools.git' + '@' + 'b43a6a289a7588b1769814f04dd6c7d7176974cc',
     58     'src/third_party/ced/src':
     59       Var('chromium_git') + '/external/github.com/google/compact_enc_det.git' + '@' + '368a9cc09ad868a3d28f0b5ad4a733f263c46409',
     60     'src/third_party/icu':
     61       Var('chromium_git') + '/chromium/deps/icu.git' + '@' + '450be73c9ee8ae29d43d4fdc82febb2a5f62bfb5',
     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' + '@' + '8b8111f841dfdc04bb5591dfd1315120f95709a4',
     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     # Pull sanitizer-instrumented third-party libraries if requested via
    429     # GYP_DEFINES.
    430     # See src/third_party/instrumented_libraries/scripts/download_binaries.py.
    431     # TODO(kjellander): Update comment when GYP is completely cleaned up.
    432     'name': 'instrumented_libraries',
    433     'pattern': '\\.sha1',
    434     'action': ['python', 'src/third_party/instrumented_libraries/scripts/download_binaries.py'],
    435   },
    436   {
    437     'name': 'clang_format_merge_driver',
    438     'pattern': '.',
    439     'action': [ 'python',
    440                 'src/tools/clang_format_merge_driver/install_git_hook.py',
    441     ],
    442   },
    443 ]
    444 
    445 recursedeps = [
    446   # buildtools provides clang_format, libc++, and libc++abi.
    447   'src/buildtools',
    448   # android_tools manages the NDK.
    449   'src/third_party/android_tools',
    450 ]
    451