mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01:00
chore: use upstream e-dant/watcher headers and build system (#1119)
This commit is contained in:
@@ -36,6 +36,7 @@ RUN apt-get update && \
|
||||
# Dev tools \
|
||||
git \
|
||||
clang \
|
||||
cmake \
|
||||
llvm \
|
||||
gdb \
|
||||
valgrind \
|
||||
@@ -65,14 +66,13 @@ RUN git clone --branch=PHP-8.3 https://github.com/php/php-src.git . && \
|
||||
echo "opcache.enable=1" >> /usr/local/lib/php.ini && \
|
||||
php --version
|
||||
|
||||
# install edant/watcher (necessary for file watching)
|
||||
# Install e-dant/watcher (necessary for file watching)
|
||||
ARG EDANT_WATCHER_VERSION=release
|
||||
WORKDIR /usr/local/src/watcher
|
||||
RUN git clone --branch=$EDANT_WATCHER_VERSION https://github.com/e-dant/watcher .
|
||||
WORKDIR /usr/local/src/watcher/watcher-c
|
||||
RUN cc -o libwatcher.so ./src/watcher-c.cpp -I ./include -I ../include -std=c++17 -O3 -Wall -Wextra -fPIC -shared && \
|
||||
cp libwatcher.so /usr/local/lib/libwatcher.so && \
|
||||
ldconfig /usr/local/lib
|
||||
RUN git clone --branch=$EDANT_WATCHER_VERSION https://github.com/e-dant/watcher . && \
|
||||
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && \
|
||||
cmake --build build/ && \
|
||||
cmake --install build
|
||||
|
||||
WORKDIR /go/src/app
|
||||
COPY . .
|
||||
|
||||
Reference in New Issue
Block a user