2024-01-08 21:22:54 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/facebook/watchman/archive/refs/tags/v{{version.raw}}.tar.gz
|
|
|
|
strip-components: 1
|
2024-04-01 21:26:44 +03:00
|
|
|
|
2024-01-08 21:22:54 +03:00
|
|
|
versions:
|
|
|
|
github: facebook/watchman
|
2024-04-01 21:26:44 +03:00
|
|
|
|
2024-01-08 21:22:54 +03:00
|
|
|
dependencies:
|
|
|
|
boost.org: ^1.84
|
|
|
|
facebook.com/edencommon: '>=2023.12.25.0'
|
|
|
|
facebook.com/fb303: '>=2023.12.25.0'
|
|
|
|
fmt.dev: '>=9'
|
|
|
|
facebook.com/folly: '>=2023.12.25.0'
|
|
|
|
gflags.github.io: ^2
|
|
|
|
google.com/glog: ^0.6
|
|
|
|
libevent.org: ^2.1
|
|
|
|
libsodium.org: ^1
|
|
|
|
openssl.org: ^1.1
|
|
|
|
pcre.org/v2: ^10
|
|
|
|
python.org: ~3.11
|
2024-04-01 21:26:44 +03:00
|
|
|
linux:
|
2024-06-25 02:49:56 +03:00
|
|
|
libcxx.llvm.org: 18 # libunwind/libc++
|
2024-04-01 21:26:44 +03:00
|
|
|
|
2024-01-08 21:22:54 +03:00
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
cmake.org: '*'
|
|
|
|
github.com/skystrife/cpptoml: '*'
|
|
|
|
facebook.com/fbthrift: '>=2023.12.25.0'
|
|
|
|
google.com/googletest: '*'
|
|
|
|
facebook.com/mvfst: '>=2023.12.25.0'
|
|
|
|
rust-lang.org: '*'
|
|
|
|
script:
|
2024-06-25 02:49:56 +03:00
|
|
|
# version/path mismatch
|
|
|
|
- run: |
|
|
|
|
if test -f Cargo.toml; then
|
|
|
|
sed -i 's/watchman_client = { version = ".*", path/watchman_client = { path/' Cargo.toml
|
|
|
|
fi
|
|
|
|
working-directory: watchman/cli
|
2024-01-08 21:22:54 +03:00
|
|
|
- cmake -S . -B build $CMAKE_ARGS -DCMAKE_CXX_FLAGS="$CXXFLAGS"
|
|
|
|
- cmake --build build
|
|
|
|
- cmake --install build
|
|
|
|
- mkdir -p {{prefix}}/var/run/watchman
|
|
|
|
env:
|
|
|
|
CMAKE_ARGS:
|
|
|
|
- -DCMAKE_INSTALL_PREFIX="{{prefix}}
|
|
|
|
- -DCMAKE_INSTALL_LIBDIR=lib
|
|
|
|
- -DCMAKE_BUILD_TYPE=Release
|
|
|
|
- -DCMAKE_FIND_FRAMEWORK=LAST
|
|
|
|
- -DCMAKE_VERBOSE_MAKEFILE=ON
|
|
|
|
- -Wno-dev
|
|
|
|
- -DBUILD_TESTING=OFF
|
|
|
|
- -DENABLE_EDEN_SUPPORT=ON
|
|
|
|
- -DWATCHMAN_VERSION_OVERRIDE={{version}}
|
2024-06-25 02:49:56 +03:00
|
|
|
- -DPython3_EXECUTABLE={{deps.python.org.prefix}}/bin/python
|
2024-01-08 21:22:54 +03:00
|
|
|
linux:
|
2024-04-01 21:26:44 +03:00
|
|
|
CC: clang
|
2024-06-25 02:49:56 +03:00
|
|
|
CXX: clang++
|
|
|
|
LD: clang
|
|
|
|
CMAKE_ARGS:
|
|
|
|
- -DCMAKE_C_FLAGS=-fPIC
|
|
|
|
linux/x86-64:
|
2024-01-08 21:22:54 +03:00
|
|
|
CXXFLAGS:
|
|
|
|
- -fPIC
|
2024-02-21 01:57:32 +03:00
|
|
|
- -Wl,--allow-shlib-undefined
|
2024-01-08 21:22:54 +03:00
|
|
|
CMAKE_ARGS:
|
2024-06-25 02:49:56 +03:00
|
|
|
- -DCMAKE_EXE_LINKER_FLAGS=-Wl,-pie
|
|
|
|
linux/aarch64:
|
|
|
|
CXXFLAGS:
|
|
|
|
- -fPIC
|
|
|
|
- -Wl,--allow-shlib-undefined
|
|
|
|
- -cxx-isystem {{deps.libcxx.llvm.org.prefix}}/include/c++/v1
|
|
|
|
- -stdlib=libc++
|
|
|
|
CMAKE_ARGS:
|
|
|
|
- -DCMAKE_EXE_LINKER_FLAGS=-Wl,-pie,-lc++
|
2024-04-01 21:26:44 +03:00
|
|
|
|
2024-01-08 21:22:54 +03:00
|
|
|
provides:
|
|
|
|
- bin/watchman
|
|
|
|
- bin/watchman-diag
|
|
|
|
- bin/watchman-make
|
|
|
|
- bin/watchman-wait
|
|
|
|
- bin/watchman-replicate-subscription
|
|
|
|
- bin/watchmanctl
|
2024-04-01 21:26:44 +03:00
|
|
|
|
2024-01-08 21:22:54 +03:00
|
|
|
test:
|
|
|
|
script:
|
|
|
|
- watchman -v | grep {{version}}
|
|
|
|
- watchman watch $ARGS .
|
|
|
|
- kill $(cat pid)
|
|
|
|
- cat state | grep {{version}}
|
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- --sockname=$PWD/sock
|
|
|
|
- --statefile=$PWD/state
|
|
|
|
- --logfile=$PWD/log
|
|
|
|
- --pidfile=$PWD/pid
|