|
| 1 | +deps = { |
| 2 | + "gflags": "https://github.com/gflags/gflags.git@v2.1.2", |
| 3 | + "glog": "https://github.com/google/glog.git@v0.3.4", |
| 4 | + "gperftools": "https://github.com/gperftools/gperftools.git@gperftools-2.4", |
| 5 | + "googlemock": "https://github.com/google/googlemock.git@release-1.7.0", |
| 6 | + "googlemock/gtest": "https://github.com/google/googletest.git@release-1.7.0", |
| 7 | + "json-c": "https://github.com/json-c/json-c.git@json-c-0.12-20140410", |
| 8 | + "ldns": "git://git.nlnetlabs.nl/ldns@release-1.6.17", |
| 9 | + "leveldb": "https://github.com/google/leveldb.git@v1.18", |
| 10 | + "libevent": "https://github.com/libevent/libevent.git@release-2.0.22-stable", |
| 11 | + "libevhtp": "https://github.com/ellzey/libevhtp.git@ba4c44eed1fb7a5cf8e4deb236af4f7675cc72d5", |
| 12 | + "openssl": "https://github.com/benlaurie/openssl.git@fd5d2ba5e09f86e9ccf797dddd2d09ac8e197e35", # 1.0.2-freebsd |
| 13 | + "protobuf/gtest": "https://github.com/google/googletest.git@release-1.5.0", |
| 14 | + "protobuf": "https://github.com/google/protobuf.git@v2.6.1", |
| 15 | + # Randomly chosen github mirror |
| 16 | + "sqlite3-export": "http://repo.or.cz/sqlite-export.git", |
| 17 | + "sqlite3": "http://repo.or.cz/sqlite.git@version-3.8.10.1", |
| 18 | + "tcmalloc": "https://github.com/gperftools/gperftools.git@gperftools-2.4" |
| 19 | +} |
| 20 | + |
| 21 | +# Can't use deps_os for this because it doesn't know about freebsd :/ |
| 22 | +deps_overrides = { |
| 23 | + "freebsd10": { |
| 24 | + "googlemock": "https://github.com/AlCutter/googlemock-fbsd.git@1.7.0", |
| 25 | + "googlemock/gtest": "https://github.com/AlCutter/googletest-fbsd.git@1.7.0", |
| 26 | + "protobuf/gtest": "https://github.com/benlaurie/googletest.git@1.5.0-fix", |
| 27 | + "protobuf": "https://github.com/benlaurie/protobuf.git@2.6.1-fix", |
| 28 | + "glog": "https://github.com/benlaurie/glog.git@0.3.4-fix", |
| 29 | + "ldns": "https://github.com/benlaurie/ldns.git@1.6.17-fix", |
| 30 | + }, |
| 31 | + "darwin": { |
| 32 | + "ldns": "https://github.com/benlaurie/ldns.git@1.6.17-fix", |
| 33 | + } |
| 34 | +} |
| 35 | + |
| 36 | +make_os = { |
| 37 | + "freebsd10": "gmake", |
| 38 | + "darwin": "gnumake" |
| 39 | +} |
| 40 | + |
| 41 | +import os |
| 42 | +import sys |
| 43 | + |
| 44 | +print "Host platform is %s" % sys.platform |
| 45 | +if sys.platform in deps_overrides: |
| 46 | + print "Have %d overrides for platform" % len(deps_overrides[sys.platform]) |
| 47 | + deps.update(deps_overrides[sys.platform]) |
| 48 | +if sys.platform in make_os: |
| 49 | + make = make_os[sys.platform] |
| 50 | +else: |
| 51 | + make = "make" |
| 52 | +print "Using make %s" % make |
| 53 | + |
| 54 | +here = os.getcwd() |
| 55 | +install = os.path.join(here, "install") |
| 56 | + |
| 57 | +hooks = [ |
| 58 | + { |
| 59 | + "name": "deps", |
| 60 | + "pattern": ".", |
| 61 | + "action": [ make, "-f", os.path.join(here, "certificate-transparency/build.gclient"), "INSTALL_DIR=%s"%install], |
| 62 | + }, |
| 63 | +] |
0 commit comments