Skip to content

Commit

Permalink
libnghttp2, macOS: fix compat issue with newer Xcode
Browse files Browse the repository at this point in the history
Xcode dropped support for 'buildsystem=1' option.

Disable building docs on unix systems and ensure only building library.
The docs build is what was failing the Xcode "new build system" build.
  • Loading branch information
micahsnyder committed Aug 31, 2024
1 parent f86ffaa commit 54e1af9
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions recipes/libnghttp2-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ platforms:
mkdir build
cd build
cmake .. \
-G Xcode -T buildsystem=1 \
-G Xcode \
-D CMAKE_OSX_ARCHITECTURES="arm64;x86_64" \
-D OPENSSL_ROOT_DIR="{install}" \
-D OPENSSL_INCLUDE_DIRS="{includes}" \
Expand All @@ -41,7 +41,7 @@ platforms:
-D ZLIB_LIBRARY="{libs}/libz.a" \
-D CMAKE_INSTALL_PREFIX="{install}" \
-D BUILD_SHARED_LIBS=ON -D BUILD_STATIC_LIBS=OFF \
-D ENABLE_LIB_ONLY=ON -D BUILD_TESTING=OFF
-D ENABLE_LIB_ONLY=ON -D BUILD_TESTING=OFF -D ENABLE_DOC=OFF
make: |
cd build
cmake --build . --config RelWithDebInfo
Expand All @@ -66,7 +66,7 @@ platforms:
mkdir build
cd build
cmake .. \
-G Xcode -T buildsystem=1 \
-G Xcode \
-D CMAKE_OSX_ARCHITECTURES="arm64;x86_64" \
-D OPENSSL_ROOT_DIR="{install}" \
-D OPENSSL_INCLUDE_DIRS="{includes}" \
Expand All @@ -79,7 +79,7 @@ platforms:
-D ZLIB_LIBRARY="{libs}/libz.a" \
-D CMAKE_INSTALL_PREFIX="{install}" \
-D BUILD_SHARED_LIBS=OFF -D BUILD_STATIC_LIBS=ON \
-D ENABLE_LIB_ONLY=ON -D BUILD_TESTING=OFF
-D ENABLE_LIB_ONLY=ON -D BUILD_TESTING=OFF -D ENABLE_DOC=OFF
make: |
cd build
cmake --build . --config RelWithDebInfo
Expand All @@ -106,6 +106,7 @@ platforms:
cmake .. \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_SHARED_LIBS=ON \
-D ENABLE_LIB_ONLY=ON -D BUILD_TESTING=OFF -D ENABLE_DOC=OFF \
-D OPENSSL_ROOT_DIR="{install}" \
-D OPENSSL_INCLUDE_DIRS="{includes}" \
-D OPENSSL_LIBRARIES="{libs}" \
Expand Down Expand Up @@ -144,7 +145,7 @@ platforms:
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_SHARED_LIBS=OFF \
-D BUILD_STATIC_LIBS=ON \
-D BUILD_TESTING=OFF \
-D ENABLE_LIB_ONLY=ON -D BUILD_TESTING=OFF -D ENABLE_DOC=OFF \
-D OPENSSL_ROOT_DIR="{install}" \
-D OPENSSL_INCLUDE_DIRS="{includes}" \
-D OPENSSL_LIBRARIES="{libs}" \
Expand Down Expand Up @@ -186,6 +187,7 @@ platforms:
cmake .. \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_SHARED_LIBS=ON \
-D ENABLE_LIB_ONLY=ON -D BUILD_TESTING=OFF -D ENABLE_DOC=OFF \
-D OPENSSL_ROOT_DIR="{install}" \
-D OPENSSL_INCLUDE_DIRS="{includes}" \
-D OPENSSL_LIBRARIES="{libs}" \
Expand Down Expand Up @@ -232,7 +234,7 @@ platforms:
-D ZLIB_ROOT="{includes}" \
-D ZLIB_LIBRARY="{libs}/libz.a" \
-D CMAKE_INSTALL_PREFIX="{install}" \
-D ENABLE_LIB_ONLY=ON \
-D ENABLE_LIB_ONLY=ON -D BUILD_TESTING=OFF -D ENABLE_DOC=OFF \
-D ENABLE_STATIC_LIB=ON \
-D ENABLE_SHARED_LIB=OFF \
-D CMAKE_POSITION_INDEPENDENT_CODE=ON \
Expand Down Expand Up @@ -263,6 +265,7 @@ platforms:
CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A ARM \
-D CMAKE_INSTALL_PREFIX="{install}" \
-D BUILD_SHARED_LIBS=ON \
-D ENABLE_LIB_ONLY=ON \
-D OPENSSL_ROOT_DIR="{install}" \
-D OPENSSL_INCLUDE_DIR="{includes}" \
-D LIB_EAY_RELEASE="{libs}/libcrypto.lib" \
Expand Down Expand Up @@ -293,6 +296,7 @@ platforms:
CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A ARM64 \
-D CMAKE_INSTALL_PREFIX="{install}" \
-D BUILD_SHARED_LIBS=ON \
-D ENABLE_LIB_ONLY=ON \
-D OPENSSL_ROOT_DIR="{install}" \
-D OPENSSL_INCLUDE_DIRS="{includes}" \
-D LIB_EAY_RELEASE="{libs}/libcrypto.lib" \
Expand Down Expand Up @@ -323,6 +327,7 @@ platforms:
CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A x64 \
-D CMAKE_INSTALL_PREFIX="{install}" \
-D BUILD_SHARED_LIBS=ON \
-D ENABLE_LIB_ONLY=ON \
-D OPENSSL_ROOT_DIR="{install}" \
-D OPENSSL_INCLUDE_DIRS="{includes}" \
-D LIB_EAY_RELEASE="{libs}/libcrypto.lib" \
Expand Down Expand Up @@ -353,6 +358,7 @@ platforms:
CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A Win32 \
-D CMAKE_INSTALL_PREFIX="{install}" \
-D BUILD_SHARED_LIBS=ON \
-D ENABLE_LIB_ONLY=ON \
-D OPENSSL_ROOT_DIR="{install}" \
-D OPENSSL_INCLUDE_DIR="{includes}" \
-D LIB_EAY_RELEASE="{libs}/libcrypto.lib" \
Expand Down Expand Up @@ -383,6 +389,7 @@ platforms:
CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A ARM \
-D CMAKE_INSTALL_PREFIX="{install}" \
-D BUILD_SHARED_LIBS=ON \
-D ENABLE_LIB_ONLY=ON \
-D OPENSSL_ROOT_DIR="{install}" \
-D OPENSSL_INCLUDE_DIR="{includes}" \
-D LIB_EAY_RELEASE="{libs}/libcrypto.lib" \
Expand Down Expand Up @@ -413,6 +420,7 @@ platforms:
CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A ARM64 \
-D CMAKE_INSTALL_PREFIX="{install}" \
-D BUILD_SHARED_LIBS=ON \
-D ENABLE_LIB_ONLY=ON \
-D OPENSSL_ROOT_DIR="{install}" \
-D OPENSSL_INCLUDE_DIRS="{includes}" \
-D LIB_EAY_RELEASE="{libs}/libcrypto.lib" \
Expand Down Expand Up @@ -443,6 +451,7 @@ platforms:
CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A x64 \
-D CMAKE_INSTALL_PREFIX="{install}" \
-D BUILD_SHARED_LIBS=ON \
-D ENABLE_LIB_ONLY=ON \
-D OPENSSL_ROOT_DIR="{install}" \
-D OPENSSL_INCLUDE_DIRS="{includes}" \
-D LIB_EAY_RELEASE="{libs}/libcrypto.lib" \
Expand Down Expand Up @@ -473,6 +482,7 @@ platforms:
CALL cmake.exe .. -G "{visualstudio.cmake_generator}" -A Win32 \
-D CMAKE_INSTALL_PREFIX="{install}" \
-D BUILD_SHARED_LIBS=ON \
-D ENABLE_LIB_ONLY=ON \
-D OPENSSL_ROOT_DIR="{install}" \
-D OPENSSL_INCLUDE_DIR="{includes}" \
-D LIB_EAY_RELEASE="{libs}/libcrypto.lib" \
Expand Down

0 comments on commit 54e1af9

Please sign in to comment.