Skip to content
Snippets Groups Projects
Commit 904bdc36 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Move builddir to local dir for caching

parent b0f7440a
No related branches found
No related tags found
1 merge request!1CI
.directory .directory
.build
.ccls-cache/ .ccls-cache/
harbour-matrix.pro.user harbour-matrix.pro.user
/lib/ /lib/
......
...@@ -8,7 +8,7 @@ Name: harbour-spoon ...@@ -8,7 +8,7 @@ Name: harbour-spoon
# >> macros # >> macros
%define __provides_exclude_from ^%{_datadir}/.*$ %define __provides_exclude_from ^%{_datadir}/.*$
%define __requires_exclude ^libstdc.*$ %define __requires_exclude ^libstdc.*$
%define bdir /home/nemo/rpmbuilddir-%{_arch} %define bdir %(echo $PWD)/.build/rpmbuilddir-%{_arch}
# disable stripping for debugging # disable stripping for debugging
%global __strip /bin/true %global __strip /bin/true
...@@ -72,8 +72,8 @@ export BOOST_ROOT=%{bdir}/%{name}-cget/ ...@@ -72,8 +72,8 @@ export BOOST_ROOT=%{bdir}/%{name}-cget/
export CMAKE_PREFIX_PATH=%{bdir}/%{name}-cget/ export CMAKE_PREFIX_PATH=%{bdir}/%{name}-cget/
#rm -rf %{bdir}/build rm -rf %{bdir}/build
[ -d %{bdir}/build ] || (mkdir %{bdir}/build && touch %{bdir}/build/spoonadaptor.h && meson --prefix=/usr -Dcpp_args='-Og -std=c++17' -Dcmake_prefix_path=%{bdir}/%{name}-cget/ %{bdir}/build) [ -d %{bdir}/build ] || (mkdir %{bdir}/build && meson --prefix=/usr -Dcpp_args='-Og -std=c++17' -Dcmake_prefix_path=%{bdir}/%{name}-cget/ %{bdir}/build)
#meson configure --prefix=/usr -Dcpp_args=-Og -Dcmake_prefix_path=%{bdir}/%{name}-cget/ %{bdir}/build #meson configure --prefix=/usr -Dcpp_args=-Og -Dcmake_prefix_path=%{bdir}/%{name}-cget/ %{bdir}/build
ninja -C %{bdir}/build ninja -C %{bdir}/build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment