Rebuild with googletest 1.17.0
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
name: abseil-cpp
|
name: abseil-cpp
|
||||||
description: Abseil Common Libraries (C++)
|
description: Abseil Common Libraries (C++)
|
||||||
version: 20250814.0
|
version: 20250814.0
|
||||||
|
revision: 2
|
||||||
url: https://abseil.io/
|
url: https://abseil.io/
|
||||||
license: Apache-2.0
|
license: Apache-2.0
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -15,31 +15,28 @@ prepare() {
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
mkdir build
|
cmake -B build \
|
||||||
cd build
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
|
|
||||||
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DBUILD_SHARED_LIBS=ON \
|
-DBUILD_SHARED_LIBS=ON \
|
||||||
-DABSL_BUILD_TESTING=ON \
|
-DABSL_BUILD_TESTING=ON \
|
||||||
-DABSL_USE_EXTERNAL_GOOGLETEST=ON \
|
-DABSL_USE_EXTERNAL_GOOGLETEST=ON \
|
||||||
-DABSL_FIND_GOOGLETEST=ON \
|
-DABSL_FIND_GOOGLETEST=ON \
|
||||||
-DABSL_USE_GOOGLETEST_HEAD=ON ..
|
-DABSL_USE_GOOGLETEST_HEAD=ON
|
||||||
make
|
cmake --build build
|
||||||
}
|
}
|
||||||
|
|
||||||
# The check function is executed in the source directory
|
# The check function is executed in the source directory
|
||||||
# This function is used to run tests to verify the package has been compiled correctly
|
# This function is used to run tests to verify the package has been compiled correctly
|
||||||
check() {
|
check() {
|
||||||
cd build
|
ctest --test-dir build
|
||||||
ctest
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
cd build
|
DESTDIR="$BPM_OUTPUT" cmake --install build
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
|
||||||
|
|
||||||
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/abseil-cpp/LICENSE
|
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/abseil-cpp/LICENSE
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user