Home | History | Annotate | Download | only in libyuv
      1 use_relative_paths = True
      2 
      3 vars = {
      4   "libyuv_trunk" : "https://libyuv.googlecode.com/svn/trunk",
      5 
      6   # Override root_dir in your .gclient's custom_vars to specify a custom root
      7   # folder name.
      8   "root_dir": "trunk",
      9   "extra_gyp_flag": "-Dextra_gyp_flag=0",
     10 
     11   # Use this googlecode_url variable only if there is an internal mirror for it.
     12   # If you do not know, use the full path while defining your new deps entry.
     13   "googlecode_url": "http://%s.googlecode.com/svn",
     14   "chromium_trunk" : "http://src.chromium.org/svn/trunk",
     15   # chrome://version/ for revision of canary Chrome.
     16   # http://chromium-status.appspot.com/lkgr is a last known good revision.
     17   "chromium_revision": "280149",
     18 }
     19 
     20 # NOTE: Prefer revision numbers to tags for svn deps. Use http rather than
     21 # https; the latter can cause problems for users behind proxies.
     22 deps = {
     23   "../chromium_deps":
     24     File(Var("chromium_trunk") + "/src/DEPS@" + Var("chromium_revision")),
     25 
     26   "../chromium_gn":
     27     File(Var("chromium_trunk") + "/src/.gn@" + Var("chromium_revision")),
     28 
     29   "build":
     30     Var("chromium_trunk") + "/src/build@" + Var("chromium_revision"),
     31 
     32   "buildtools":
     33     From("chromium_deps", "src/buildtools"),
     34 
     35   # Needed by common.gypi.
     36   "google_apis/build":
     37     Var("chromium_trunk") + "/src/google_apis/build@" + Var("chromium_revision"),
     38 
     39   "testing":
     40     Var("chromium_trunk") + "/src/testing@" + Var("chromium_revision"),
     41 
     42   "testing/gtest":
     43     From("chromium_deps", "src/testing/gtest"),
     44 
     45   "tools/clang":
     46     Var("chromium_trunk") + "/src/tools/clang@" + Var("chromium_revision"),
     47 
     48   "tools/gn":
     49     Var("chromium_trunk") + "/src/tools/gn@" + Var("chromium_revision"),
     50 
     51   "tools/gyp":
     52     From("chromium_deps", "src/tools/gyp"),
     53 
     54   "tools/memory":
     55     Var("chromium_trunk") + "/src/tools/memory@" + Var("chromium_revision"),
     56 
     57   "tools/python":
     58     Var("chromium_trunk") + "/src/tools/python@" + Var("chromium_revision"),
     59 
     60   "tools/sanitizer_options":
     61     File(Var("chromium_trunk") + "/src/base/debug/sanitizer_options.cc@" + Var("chromium_revision")),
     62 
     63   "tools/tsan_suppressions":
     64     File(Var("chromium_trunk") + "/src/base/debug/tsan_suppressions.cc@" + Var("chromium_revision")),
     65 
     66   "tools/valgrind":
     67     Var("chromium_trunk") + "/src/tools/valgrind@" + Var("chromium_revision"),
     68 
     69   # Needed by build/common.gypi.
     70   "tools/win/supalink":
     71     Var("chromium_trunk") + "/src/tools/win/supalink@" + Var("chromium_revision"),
     72 
     73   "third_party/binutils":
     74     Var("chromium_trunk") + "/src/third_party/binutils@" + Var("chromium_revision"),
     75 
     76   "third_party/libc++":
     77     Var("chromium_trunk") + "/src/third_party/libc++@" + Var("chromium_revision"),
     78 
     79   "third_party/libc++/trunk":
     80     From("chromium_deps", "src/third_party/libc++/trunk"),
     81 
     82   "third_party/libc++abi":
     83     Var("chromium_trunk") + "/src/third_party/libc++abi@" + Var("chromium_revision"),
     84 
     85   "third_party/libc++abi/trunk":
     86     From("chromium_deps", "src/third_party/libc++abi/trunk"),
     87 
     88   "third_party/libjpeg_turbo":
     89     From("chromium_deps", "src/third_party/libjpeg_turbo"),
     90 
     91   # Yasm assember required for libjpeg_turbo
     92   "third_party/yasm":
     93     Var("chromium_trunk") + "/src/third_party/yasm@" + Var("chromium_revision"),
     94 
     95   "third_party/yasm/source/patched-yasm":
     96     Var("chromium_trunk") + "/deps/third_party/yasm/patched-yasm@" + Var("chromium_revision"),
     97 }
     98 
     99 deps_os = {
    100   "win": {
    101     # Use WebRTC's, stripped down, version of Cygwin (required by GYP).
    102     "third_party/cygwin":
    103       (Var("googlecode_url") % "webrtc") + "/deps/third_party/cygwin@2672",
    104 
    105     # Used by libjpeg-turbo.
    106     # TODO(fbarchard): Remove binaries and run yasm from build folder.
    107     "third_party/yasm/binaries":
    108       Var("chromium_trunk") + "/deps/third_party/yasm/binaries@" + Var("chromium_revision"),
    109     "third_party/yasm": None,
    110 
    111     "tools/find_depot_tools":
    112       File(Var("chromium_trunk") + "/src/tools/find_depot_tools.py@" + Var("chromium_revision")),
    113   },
    114   "android": {
    115     "third_party/android_tools":
    116       From("chromium_deps", "src/third_party/android_tools"),
    117 
    118     "third_party/libjpeg":
    119       Var("chromium_trunk") + "/src/third_party/libjpeg@" + Var("chromium_revision"),
    120   },
    121   "ios": {
    122     # NSS, for SSLClientSocketNSS.
    123     "third_party/nss":
    124       From("chromium_deps", "src/third_party/nss"),
    125 
    126     "net/third_party/nss":
    127       Var("chromium_trunk") + "/src/net/third_party/nss@" + Var("chromium_revision"),
    128 
    129     # class-dump utility to generate header files for undocumented SDKs.
    130     "testing/iossim/third_party/class-dump":
    131       From("chromium_deps", "src/testing/iossim/third_party/class-dump"),
    132 
    133     # Helper for running under the simulator.
    134     "testing/iossim":
    135       Var("chromium_trunk") + "/src/testing/iossim@" + Var("chromium_revision"),
    136   },
    137 }
    138 
    139 hooks = [
    140   {
    141     # Copy .gn from temporary place (../chromium_gn) to root_dir.
    142     "name": "copy .gn",
    143     "pattern": ".",
    144     "action": ["python", Var("root_dir") + "/build/cp.py",
    145                Var("root_dir") + "/../chromium_gn/.gn",
    146                Var("root_dir")],
    147   },
    148   # Pull GN binaries. This needs to be before running GYP below.
    149   {
    150     "name": "gn_win",
    151     "pattern": ".",
    152     "action": [ "download_from_google_storage",
    153                 "--no_resume",
    154                 "--platform=win32",
    155                 "--no_auth",
    156                 "--bucket", "chromium-gn",
    157                 "-s", Var("root_dir") + "/buildtools/win/gn.exe.sha1",
    158     ],
    159   },
    160   {
    161     "name": "gn_mac",
    162     "pattern": ".",
    163     "action": [ "download_from_google_storage",
    164                 "--no_resume",
    165                 "--platform=darwin",
    166                 "--no_auth",
    167                 "--bucket", "chromium-gn",
    168                 "-s", Var("root_dir") + "/buildtools/mac/gn.sha1",
    169     ],
    170   },
    171   {
    172     "name": "gn_linux",
    173     "pattern": ".",
    174     "action": [ "download_from_google_storage",
    175                 "--no_resume",
    176                 "--platform=linux*",
    177                 "--no_auth",
    178                 "--bucket", "chromium-gn",
    179                 "-s", Var("root_dir") + "/buildtools/linux64/gn.sha1",
    180     ],
    181   },
    182   {
    183     "name": "gn_linux32",
    184     "pattern": ".",
    185     "action": [ "download_from_google_storage",
    186                 "--no_resume",
    187                 "--platform=linux*",
    188                 "--no_auth",
    189                 "--bucket", "chromium-gn",
    190                 "-s", Var("root_dir") + "/buildtools/linux32/gn.sha1",
    191     ],
    192   },
    193   {
    194     # Remove GN binaries from tools/gn/bin that aren't used anymore.
    195     # TODO(kjellander) remove after the end of July, 2014.
    196     "name": "remove_old_gn_binaries",
    197     "pattern": ".",
    198     "action": ["python", Var("root_dir") + "/tools/gn/bin/rm_binaries.py"],
    199   },
    200   {
    201     # Pull clang on mac. If nothing changed, or on non-mac platforms, this takes
    202     # zero seconds to run. If something changed, it downloads a prebuilt clang.
    203     "pattern": ".",
    204     "action": ["python", Var("root_dir") + "/tools/clang/scripts/update.py",
    205                "--if-needed"],
    206   },
    207   {
    208   # Update the Windows toolchain if necessary.
    209     "name": "win_toolchain",
    210     "pattern": ".",
    211     "action": ["python", Var("root_dir") + "/download_vs_toolchain.py",
    212                "update"],
    213   },
    214   {
    215     # Pull binutils for gold.
    216     "name": "binutils",
    217     "pattern": ".",
    218     "action": ["python", Var("root_dir") + "/third_party/binutils/download.py"],
    219   },
    220   {
    221     # A change to a .gyp, .gypi, or to GYP itself should run the generator.
    222     "pattern": ".",
    223     "action": ["python", Var("root_dir") + "/gyp_libyuv"],
    224   },
    225 ]
    226