Skip to content

Commit

Permalink
fix: several fixes for prepare-20
Browse files Browse the repository at this point in the history
  • Loading branch information
YuraBeznos committed Dec 15, 2023
1 parent 035cba4 commit 1b08ca8
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ prepare:
rm -rf /tmp/.doxy

prepare-20:
sudo apt install -y \
sudo rm -Rf /tmp/firefighter-drone && \
mkdir -p /tmp/firefighter-drone/gtest && \
mkdir -p /tmp/firefighter-drone/doxy && \
mkdir -p /tmp/firefighter-drone/civetweb && \
mkdir -p /tmp/firefighter-drone/ && \
sudo apt-get update && \
sudo apt install -y \
mosquitto-clients \
libmosquittopp1 \
libmosquittopp-dev \
Expand All @@ -58,30 +64,25 @@ prepare-20:
unzip \
curl \
doxygen && \
mkdir /tmp/.build && \
cd /tmp/.build && \
cd /tmp/firefighter-drone/gtest && \
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/lib -DCMAKE_BUILD_TYPE=RELEASE /usr/src/gtest/ && \
make && \
cp /tmp/.build/lib/*.so* /usr/lib/x86_64-linux-gnu/ && \
ldconfig && \
rm -rf /tmp/.build && \
mkdir /tmp/.doxy && \
cd /tmp/.doxy && \
sudo cp /tmp/firefighter-drone/gtest/lib/*.so* /usr/lib/x86_64-linux-gnu/ && \
sudo ldconfig && \
cd /tmp/firefighter-drone/doxy && \
curl -L -s -o doxybook2.zip https://github.com/matusnovak/doxybook2/releases/download/v1.5.0/doxybook2-linux-amd64-v1.5.0.zip && \
unzip *.zip && \
mv bin/* /usr/bin/ && \
rm -rf /tmp/.doxy && \
mkdir /tmp/civetweb && \
cd /tmp/civetweb && \
sudo mv bin/* /usr/bin/ && \
cd /tmp/firefighter-drone/civetweb && \
curl -L -s -o v1.15.tar.gz https://github.com/civetweb/civetweb/archive/refs/tags/v1.15.tar.gz && \
tar xzf v1.15.tar.gz && \
cd civetweb-1.15 && \
mkdir .build && \
cd .build && \
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu -DCMAKE_BUILD_TYPE=None -DCIVETWEB_BUILD_TESTING=OFF -DCIVETWEB_SOVERSION=1 -DCIVETWEB_ENABLE_CXX=ON -DBUILD_SHARED_LIBS=ON -DCIVETWEB_ENABLE_WEBSOCKETS=ON .. && \
make -j4 "INSTALL=install --strip-program=true" VERBOSE=1 && \
make install && \
rm -rf /tmp/civetweb
sudo make install && \
sudo rm -rf /tmp/firefighter-drone

%.o: %.cpp %.h
$(CXX) $(CXXFLAGS) $(INCLUDE) -o $@ -c $<
Expand Down

0 comments on commit 1b08ca8

Please sign in to comment.