Commit Graph

22 Commits

Author SHA1 Message Date
Andres Suarez
fbdb46f5cb Tidy up license headers
Reviewed By: chadaustin

Differential Revision: D17872966

fbshipit-source-id: cd60a364a2146f0dadbeca693b1d4a5d7c97ff63
2019-10-11 05:28:23 -07:00
Adam Simpkins
9bfb48c921 update license headers in .py files
Summary:
Update the copyright & license headers in Python files to reflect the
relicensing to GPLv2

Reviewed By: wez

Differential Revision: D15487088

fbshipit-source-id: 9f2138dff41048d2c35f15e09a04ae5a9c9c80dd
2019-06-19 17:02:46 -07:00
Wez Furlong
bdd335b648 eden: getdeps: skip building rsocket tests
Summary:
as above; this makes the build faster and makes us
slightly less sensitive to problems with building its tests.

Reviewed By: pkaush

Differential Revision: D14137089

fbshipit-source-id: 7edf4ac4a24bd90db55410363821f30635010627
2019-02-19 14:53:22 -08:00
Wez Furlong
1752348eef eden: wire up mac contbuild
Summary:
Make `build-oss.sh` actually run the cmake build.
At the moment this is only run from nbtd for mac platforms,
so that is all that I've tested with it.

This is similar to the the equivalent scripts for watchman.
In a later diff we can centralize and clean up the duplication.

Reviewed By: simpkins

Differential Revision: D13910031

fbshipit-source-id: 6a7250c22033e913d999cf928fed27dada0647ef
2019-02-05 21:52:30 -08:00
Wez Furlong
0774b2c457 eden: pull in osxfuse kernel headers
Summary:
There's nothing nice about this; the full set of kernel headers are
not installed with the binary distribution, and since the kernel distribution
has to be signed to be loaded on osx, there's no benefit to us building it
for ourselves.

This diff adds a nop builder and tweaks the cmake to point into the osxfuse
repo.

The osxfuse repo aggregates a couple of related repos using the git
submodule feature, so trigger that from getdeps.py too.

Reviewed By: strager

Differential Revision: D13480148

fbshipit-source-id: 84e09a86f6a83f83ffd1e3fe113dc7b15b3ea208
2018-12-17 20:16:19 -08:00
Wez Furlong
af4f8f68df getdeps.py runs on macOS
Summary:
this causes getdeps.py to successfully finish building the deps for
eden on a mac.

I'll follow-up to try to get eden building on top of this.

Reviewed By: simpkins

Differential Revision: D4676073

fbshipit-source-id: 303aa44137b56d1884093c26f8f4836c968aed69
2018-12-15 13:43:31 -08:00
Adam Simpkins
7a7e80230e getdeps.py: avoid building rsockets examples and benchmarks
Summary: We only need the libraries, so skip building the examples and benchmarks.

Reviewed By: strager

Differential Revision: D12813740

fbshipit-source-id: 03b60da4acefbb22e616d234368f440ecc2ee046
2018-10-26 19:56:29 -07:00
Adam Simpkins
60a7a03bab getdeps.py: rename --install-deps to --system-deps
Summary:
Rename the `--install-deps` argument to `--system-deps`, to make it more clear
that this installs dependencies available from the underlying operating
system.

Reviewed By: strager

Differential Revision: D12813743

fbshipit-source-id: 63f9f8f2614d970dee5f0b21bd5f1a8323af786d
2018-10-26 19:56:29 -07:00
Adam Simpkins
0f1d92c006 only pass BUILD_TESTS=OFF when building folly and wangle
Summary:
For the open source build, pass `-DBUILD_TESTS=OFF` to `cmake` when building
`folly` and `wangle` but not all CMake-based builds.  This setting is used by
the build files for folly and wangle, but not by all CMake projects in
general.

This shouldn't make any functional difference, but it avoids some warnings in
the build output when building projects that do not use this setting.

Reviewed By: wez

Differential Revision: D10503903

fbshipit-source-id: fb0fa363864fee625f1f547dc19a887db55186a0
2018-10-23 13:42:12 -07:00
Adam Simpkins
4d215928a0 find libzstd from the system libraries on Ubuntu
Summary:
On Ubuntu systems libzstd-dev is available through `apt-get`, so change
`getdeps.py` to install it that way rather than building it from a clone of
the github repository.  Building it locally produces some build warnings for
other projects that use `zstd` if they can find it both via `external/install`
and via the system library paths.

Reviewed By: chadaustin

Differential Revision: D10503907

fbshipit-source-id: 93129c39a9ee21f835ff9a87d9569b496324ec43
2018-10-23 13:42:12 -07:00
Adam Simpkins
eea9a5f255 update getdeps.py to also clean the install directory
Summary:
Update getdeps.py to also remove the external/install directory when cleaning
out the external projects.  This is needed to make sure that the install
directory does not still contain older installed versions of some of the
project files before we start rebuilding.

Reviewed By: strager

Differential Revision: D10436527

fbshipit-source-id: 50b44ec2d562d025162fecfe977e5fc24dc0af13
2018-10-23 13:42:12 -07:00
Adam Simpkins
1b4ecb3ed4 update the CMake based build with new dependencies
Summary:
Our CMake-based build had gotten somewhat out of date.  This fixes several
issues that were preventing it from building:
- wangle now depends on fizz, which in turn depends on libsodium
- fbthrift now depends on yarpl for the streaming functionality
- Eden now depends on libsqlite3
- The eden/fs/inode library now depends on eden/fs/config

Reviewed By: strager

Differential Revision: D10436531

fbshipit-source-id: f41065da2edb909e8eb94e03d0e62ae19ad3a84f
2018-10-23 13:42:12 -07:00
Jun Wu
10327cb736 enable rocksdb snappy support in GitHub build
Summary:
Rocksdb default build does not include snappy support.
Eden needs it. Therefore enable it when building rocksdb.

Reviewed By: bolinfest

Differential Revision: D9029273

fbshipit-source-id: e2b702f1f2f46984d80afe79f609a2c32ee8dd5e
2018-07-27 14:36:42 -07:00
Lukasz Langa
deee232d74 Upgrade to 18.5b1
Summary: Mostly empty lines removed and added.  A few bugfixes on excessive line splitting.

Reviewed By: cooperlees

Differential Revision: D8198776

fbshipit-source-id: 4361faf4a2b9347d57fb6e1342c494575f2beb67
2018-05-30 01:11:47 -07:00
Lukasz Langa
bf7f0a79b8 Reformat already opted in directories with Black Beta @allow-large-files
Summary:
This is stacked on top of Black 18.5b0.

allow-large-files

Reviewed By: carljm

Differential Revision: D8061834

fbshipit-source-id: 92e3645e159b60d77cf7e0bec64a8262ca4e88c2
2018-05-18 23:07:24 -07:00
Wez Furlong
c83849e5af enable Black python formatting and apply to eden
Summary: No functional changes

Reviewed By: simpkins

Differential Revision: D7945989

fbshipit-source-id: e267e6134d87570427b3fdf5974006dce5774113
2018-05-09 21:37:07 -07:00
Adam Simpkins
534f6ee996 update getdeps.py to also install cpptoml
Summary: Eden also depends on cpptoml for config files these days.

Reviewed By: wez

Differential Revision: D7786127

fbshipit-source-id: d220773a6a09959a4a1007f4c246dcb0ef371aa9
2018-04-30 14:37:46 -07:00
Adam Simpkins
d503e8642e update getdeps.py to install dependencies into external/install
Summary:
Update getdeps.py to install all of the external projects into the
external/install directory after building them.  This makes it easy for
projects to find their dependencies simply by pointing CMAKE_PREFIX_PATH at
external/install.

Reviewed By: wez

Differential Revision: D7786124

fbshipit-source-id: bfdc0cd6b225eb06a4c98c336f514509ad34b3c9
2018-04-30 14:37:46 -07:00
Adam Simpkins
8459e2a40f add a --clean option to getdeps.py
Summary:
Add an option to getdeps.py to have it clean build artifacts from the
third-party dependency repositories, so we guarantee that we rebuild
everything.

This behavior is now enabled by default when updating the repositories.  The
external projects generally rebuild themselves correctly when their own source
files have changed, but they normally do not rebuild correctly if projects they
depend on have changed.

Reviewed By: wez

Differential Revision: D7786126

fbshipit-source-id: b86f773e42e591821123b9bfd8a3455ded186ad6
2018-04-27 13:21:12 -07:00
Adam Simpkins
5b0fc491b9 update getdeps.py to check the OS type
Summary:
Confirm that we are running on an Ubuntu system before trying to install
dependencies with `apt-get`.  This provides the framework for supporting other
platforms and distributions in the future, but we still only know how to
install dependencies on Ubuntu distributions for now.

Reviewed By: wez

Differential Revision: D7786125

fbshipit-source-id: e5e4d2f690d6872fff850de8932a3843967f9583
2018-04-27 13:21:12 -07:00
Jun Wu
b7ecbd667f getdeps: fix fbthrift build
Summary: D6161089 removes autoconf support in fbthrift. So let's switch to cmake.

Reviewed By: wez

Differential Revision: D6675252

fbshipit-source-id: 5d04d3e285f80aec4ce3b566c5046c6f2c3d76b1
2018-01-08 12:10:19 -08:00
Adam Simpkins
2c4dde3afb replace the getdeps.sh script with a python version
Summary:
Replace the hacky getdeps.sh shell script added in D4633747 with a slightly
less hacky python version.  In the future we could potentially split this up
into a generic library module and an eden-specific piece, so that it could be
more easily shared with other projects (such as fboss).

Reviewed By: bolinfest

Differential Revision: D4665160

fbshipit-source-id: 627d34d10ca1119c302a67974324784122b67c8b
2017-03-08 16:38:36 -08:00