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