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": "262938",
     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   # Needed by common.gypi.
     33   "google_apis/build":
     34     Var("chromium_trunk") + "/src/google_apis/build@" + Var("chromium_revision"),
     35 
     36   "testing":
     37     Var("chromium_trunk") + "/src/testing@" + Var("chromium_revision"),
     38 
     39   "testing/gtest":
     40     From("chromium_deps", "src/testing/gtest"),
     41 
     42   "tools/clang":
     43     Var("chromium_trunk") + "/src/tools/clang@" + Var("chromium_revision"),
     44 
     45   "tools/gn":
     46     Var("chromium_trunk") + "/src/tools/gn@" + Var("chromium_revision"),
     47 
     48   "tools/gyp":
     49     From("chromium_deps", "src/tools/gyp"),
     50 
     51   "tools/python":
     52     Var("chromium_trunk") + "/src/tools/python@" + Var("chromium_revision"),
     53 
     54   "tools/valgrind":
     55     Var("chromium_trunk") + "/src/tools/valgrind@" + Var("chromium_revision"),
     56 
     57   # Needed by build/common.gypi.
     58   "tools/win/supalink":
     59     Var("chromium_trunk") + "/src/tools/win/supalink@" + Var("chromium_revision"),
     60 
     61   "third_party/binutils":
     62     Var("chromium_trunk") + "/src/third_party/binutils@" + Var("chromium_revision"),
     63 
     64   "third_party/libjpeg_turbo":
     65     From("chromium_deps", "src/third_party/libjpeg_turbo"),
     66 
     67   # Yasm assember required for libjpeg_turbo
     68   "third_party/yasm":
     69     Var("chromium_trunk") + "/src/third_party/yasm@" + Var("chromium_revision"),
     70 
     71   "third_party/yasm/source/patched-yasm":
     72     Var("chromium_trunk") + "/deps/third_party/yasm/patched-yasm@" + Var("chromium_revision"),
     73 }
     74 
     75 deps_os = {
     76   "win": {
     77     # Use WebRTC's, stripped down, version of Cygwin (required by GYP).
     78     "third_party/cygwin":
     79       (Var("googlecode_url") % "webrtc") + "/deps/third_party/cygwin@2672",
     80 
     81     # Used by libjpeg-turbo.
     82     # TODO(fbarchard): Remove binaries and run yasm from build folder.
     83     "third_party/yasm/binaries":
     84       Var("chromium_trunk") + "/deps/third_party/yasm/binaries@" + Var("chromium_revision"),
     85     "third_party/yasm": None,
     86 
     87     "tools/find_depot_tools":
     88       File(Var("chromium_trunk") + "/src/tools/find_depot_tools.py@" + Var("chromium_revision")),
     89   },
     90   "android": {
     91     "third_party/android_tools":
     92       From("chromium_deps", "src/third_party/android_tools"),
     93 
     94     "third_party/libjpeg":
     95       Var("chromium_trunk") + "/src/third_party/libjpeg@" + Var("chromium_revision"),
     96   },
     97   "ios": {
     98     # NSS, for SSLClientSocketNSS.
     99     "third_party/nss":
    100       From("chromium_deps", "src/third_party/nss"),
    101 
    102     "net/third_party/nss":
    103       Var("chromium_trunk") + "/src/net/third_party/nss@" + Var("chromium_revision"),
    104 
    105     # class-dump utility to generate header files for undocumented SDKs.
    106     "testing/iossim/third_party/class-dump":
    107       From("chromium_deps", "src/testing/iossim/third_party/class-dump"),
    108 
    109     # Helper for running under the simulator.
    110     "testing/iossim":
    111       Var("chromium_trunk") + "/src/testing/iossim@" + Var("chromium_revision"),
    112   },
    113 }
    114 
    115 hooks = [
    116   {
    117     # Copy .gn from temporary place (../chromium_gn) to root_dir.
    118     "name": "copy .gn",
    119     "pattern": ".",
    120     "action": ["python", Var("root_dir") + "/build/cp.py",
    121                Var("root_dir") + "/../chromium_gn/.gn",
    122                Var("root_dir")],
    123   },
    124   # Pull GN binaries. This needs to be before running GYP below.
    125   {
    126     "name": "gn_win",
    127     "pattern": ".",
    128     "action": [ "download_from_google_storage",
    129                 "--no_resume",
    130                 "--platform=win32",
    131                 "--no_auth",
    132                 "--bucket", "chromium-gn",
    133                 "-s", Var("root_dir") + "/tools/gn/bin/win/gn.exe.sha1",
    134     ],
    135   },
    136   {
    137     "name": "gn_mac",
    138     "pattern": ".",
    139     "action": [ "download_from_google_storage",
    140                 "--no_resume",
    141                 "--platform=darwin",
    142                 "--no_auth",
    143                 "--bucket", "chromium-gn",
    144                 "-s", Var("root_dir") + "/tools/gn/bin/mac/gn.sha1",
    145     ],
    146   },
    147   {
    148     "name": "gn_linux",
    149     "pattern": ".",
    150     "action": [ "download_from_google_storage",
    151                 "--no_resume",
    152                 "--platform=linux*",
    153                 "--no_auth",
    154                 "--bucket", "chromium-gn",
    155                 "-s", Var("root_dir") + "/tools/gn/bin/linux/gn.sha1",
    156     ],
    157   },
    158   {
    159     "name": "gn_linux32",
    160     "pattern": ".",
    161     "action": [ "download_from_google_storage",
    162                 "--no_resume",
    163                 "--platform=linux*",
    164                 "--no_auth",
    165                 "--bucket", "chromium-gn",
    166                 "-s", Var("root_dir") + "/tools/gn/bin/linux/gn32.sha1",
    167     ],
    168   },
    169   {
    170     # Pull clang on mac. If nothing changed, or on non-mac platforms, this takes
    171     # zero seconds to run. If something changed, it downloads a prebuilt clang.
    172     "pattern": ".",
    173     "action": ["python", Var("root_dir") + "/tools/clang/scripts/update.py",
    174                "--if-needed"],
    175   },
    176   {
    177   # Update the Windows toolchain if necessary.
    178     "name": "win_toolchain",
    179     "pattern": ".",
    180     "action": ["python", Var("root_dir") + "/download_vs_toolchain.py",
    181                "update"],
    182   },
    183   {
    184     # Pull binutils for gold.
    185     "name": "binutils",
    186     "pattern": ".",
    187     "action": ["python", Var("root_dir") + "/third_party/binutils/download.py"],
    188   },
    189   {
    190     # A change to a .gyp, .gypi, or to GYP itself should run the generator.
    191     "pattern": ".",
    192     "action": ["python", Var("root_dir") + "/gyp_libyuv"],
    193   },
    194 ]
    195