2023-09-04 19:30:52 +03:00
|
|
|
distributable:
|
2024-01-05 04:48:26 +03:00
|
|
|
url: https://github.com/ccache/ccache/releases/download/{{version.tag}}/ccache-{{version.raw}}.tar.gz
|
2023-09-04 19:30:52 +03:00
|
|
|
strip-components: 1
|
|
|
|
versions:
|
|
|
|
github: ccache/ccache
|
|
|
|
dependencies:
|
|
|
|
github.com/redis/hiredis: '*'
|
|
|
|
facebook.com/zstd: '*'
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
asciidoctor.org: '*'
|
|
|
|
cmake.org: '*'
|
2024-01-05 04:48:26 +03:00
|
|
|
linux:
|
|
|
|
llvm.org: '*'
|
2023-09-04 19:30:52 +03:00
|
|
|
script:
|
|
|
|
- cmake -S . -B build $CMAKE_ARGS
|
|
|
|
- cmake --build build
|
|
|
|
- cmake --install build
|
|
|
|
- run: |
|
|
|
|
files="clang,clang++,cc,gcc,gcc2,gcc3,gcc-3.3,gcc-4.0,\
|
|
|
|
gcc-4.2,gcc-4.3,gcc-4.4,gcc-4.5,gcc-4.6,gcc-4.7,gcc-4.8,\
|
|
|
|
gcc-4.9,gcc-5,gcc-6,gcc-7,gcc-8,gcc-9,gcc-10,gcc-11,gcc-12,\
|
|
|
|
gcc-13,c++,c++3,c++-3.3,c++-4.0,c++-4.2,c++-4.3,c++-4.4,c++-4.5,\
|
|
|
|
c++-4.6,c++-4.7,c++-4.8,c++-4.9,c++-5,c++-6,c++-7,c++-8,c++-9,c++-10,\
|
|
|
|
c++-11,c++-12,c++-13,g++,g++2,g++3,g++-3.3,g++-4.0,g++-4.2,g++-4.3,g++-4.4,\
|
|
|
|
g++-4.5,g++-4.6,g++-4.7,g++-4.8,g++-4.9,g++-5,g++-6,g++-7,g++-8,g++-9,g++-10,\
|
|
|
|
g++-11,g++-12,g++-13,i686-w64-mingw32-gcc,i686-w64-mingw32-g++,x86_64-w64-mingw32-gcc,\
|
|
|
|
x86_64-w64-mingw32-g++"
|
2024-01-05 04:48:26 +03:00
|
|
|
|
2023-09-04 19:30:52 +03:00
|
|
|
IFS=',' read -ra files_array <<< "$files"
|
2024-01-05 04:48:26 +03:00
|
|
|
|
2023-09-04 19:30:52 +03:00
|
|
|
for file in "${files_array[@]}"; do
|
|
|
|
ln -s ../bin/ccache "$file"
|
|
|
|
done
|
2024-01-05 04:48:26 +03:00
|
|
|
working-directory: '{{prefix}}/libexec'
|
2023-09-04 19:30:52 +03:00
|
|
|
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_IPO=TRUE
|
2024-01-05 04:48:26 +03:00
|
|
|
linux:
|
|
|
|
CMAKE_ARGS:
|
|
|
|
- -DCMAKE_C_COMPILER_AR={{deps.llvm.org.prefix}}/bin/llvm-ar
|
2023-09-04 19:30:52 +03:00
|
|
|
provides:
|
|
|
|
- bin/ccache
|
|
|
|
test:
|
|
|
|
script:
|
|
|
|
- ccache -s
|
2024-01-05 04:48:26 +03:00
|
|
|
- ccache --version | grep {{version.raw}}
|
2023-09-04 19:30:52 +03:00
|
|
|
- export PATH={{prefix}}/libexec:$PATH
|
2024-01-05 04:48:26 +03:00
|
|
|
- command -v clang | grep "{{prefix}}"
|