Skip to content

Commit

Permalink
fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Aug 7, 2023
1 parent 2db38f4 commit 7d144c9
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 20 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ jobs:
- name: Build Deps
run: |
echo ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/macos
echo "Qt6_Dir=${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/${{ matrix.QT_ARCH }}" >> $GITHUB_ENV
echo "Qt6_HOST_Dir=${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/macos" >> $GITHUB_ENV
echo "Qt6_DIR=${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/${{ matrix.QT_ARCH }}" >> $GITHUB_ENV
echo "Qt6_HOST_DIR=${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/macos" >> $GITHUB_ENV
echo "PATH=${{ env.VCPKG_ROOT }}:$PATH" >> $GITHUB_ENV
vcpkg --version
ls -l ${Qt6_HOST_Dir}/../
ls -l ${Qt6_DIR}/lib
mkdir -p ${{ github.workspace }}/build
cd ${{ github.workspace }}/build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ jobs:
mkdir -p ${{ github.workspace }}/build
cd ${{ github.workspace }}/build
echo "Qt6_Dir=${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/ios" >> $GITHUB_ENV
echo "Qt6_HOST_Dir=${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/macos" >> $GITHUB_ENV
echo "Qt6_DIR=${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/ios" >> $GITHUB_ENV
echo "Qt6_HOST_DIR=${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/macos" >> $GITHUB_ENV
echo "PATH=${{ env.VCPKG_ROOT }}:$PATH" >> $GITHUB_ENV
vcpkg --version
ls -l ${Qt6_HOST_Dir}/../
ls -l ${Qt6_DIR}/lib
cmake -B ${{ github.workspace }}/build \
-S ${{ github.workspace }}/input-sdk \
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
echo "PATH=${{ env.VCPKG_ROOT }}:$PATH" >> $GITHUB_ENV
vcpkg --version
ls -l ${Qt6_DIR}/lib
cmake -B ${{ github.workspace }}/build \
-S ${{ github.workspace }}/input-sdk \
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:
echo "PATH=${{ env.VCPKG_ROOT }}:$PATH" >> $GITHUB_ENV
vcpkg --version
ls -l ${Qt6_DIR}/lib
cmake -B ${{ github.workspace }}/build \
-S ${{ github.workspace }}/input-sdk \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ TODO
```
mkdir -p build/x64
cd build/x64
export Qt6_Dir=/opt/Qt/6.5.2/macos;export PATH=$(brew --prefix flex):$(brew --prefix bison)/bin:$(brew --prefix gettext)/bin:$PATH
export Qt6_DIR=/opt/Qt/6.5.2/macos;export PATH=$(brew --prefix flex):$(brew --prefix bison)/bin:$(brew --prefix gettext)/bin:$PATH
cmake -B . -S ../../input-sdk/ \
-DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake \
Expand Down
8 changes: 4 additions & 4 deletions vcpkg-overlay/ports/qt6/vcpkg-cmake-wrapper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ if(NOT VCPKG_TARGET_IS_IOS)
endif()


set(Qt6_DIR $ENV{Qt6_Dir}/lib/cmake)
set(Qt6_DIR $ENV{Qt6_DIR}/lib/cmake)

if(EXISTS ${Qt6_DIR})
MESSAGE("Using Qt6_DIR: ${Qt6_DIR}")
else()
MESSAGE(FATAL_ERROR "Qt6 installation not found: ${Qt6_DIR}; Do you have Qt6_Dir environment variable set?")
MESSAGE(FATAL_ERROR "Qt6 installation not found: ${Qt6_DIR}; Do you have Qt6_DIR environment variable set?")
endif()

foreach(MOD ${QT_MODULES})
Expand All @@ -87,11 +87,11 @@ set(QT_HOST_MODULES
)

if(VCPKG_TARGET_IS_IOS OR VCPKG_TARGET_IS_ANDROID)
set(Qt6_HOST_DIR $ENV{Qt6_HOST_Dir}/lib/cmake)
set(Qt6_HOST_DIR $ENV{Qt6_HOST_DIR}/lib/cmake)
if(EXISTS ${Qt6_HOST_DIR})
MESSAGE("Using Qt6_HOST_DIR: ${Qt6_HOST_DIR}")
else()
MESSAGE(FATAL_ERROR "Qt6 HOST installation not found: ${Qt6_HOST_DIR}; Do you have Qt6_HOST_Dir environment variable set (on android/iOS)?")
MESSAGE(FATAL_ERROR "Qt6 HOST installation not found: ${Qt6_HOST_DIR}; Do you have Qt6_HOST_DIR environment variable set (on android/iOS)?")
endif()
else()
set(Qt6_HOST_DIR ${Qt6_DIR})
Expand Down
4 changes: 2 additions & 2 deletions vcpkg-overlay/triplets/arm-android.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ endif()
set(VCPKG_CXX_FLAGS "-fstack-protector-strong -lunwind -Wl,--exclude-libs=libunwind.a")
set(VCPKG_C_FLAGS "-fstack-protector-strong -lunwind -Wl,--exclude-libs=libunwind.a")

set(VCPKG_ENV_PASSTHROUGH Qt6_Dir)
set(VCPKG_ENV_PASSTHROUGH Qt6_HOST_Dir)
set(VCPKG_ENV_PASSTHROUGH Qt6_DIR)
set(VCPKG_ENV_PASSTHROUGH Qt6_HOST_DIR)
4 changes: 2 additions & 2 deletions vcpkg-overlay/triplets/arm64-android.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ if(DEFINED ENV{ANDROIDAPI})
set(VCPKG_CMAKE_SYSTEM_VERSION $ENV{ANDROIDAPI})
endif()

set(VCPKG_ENV_PASSTHROUGH Qt6_Dir)
set(VCPKG_ENV_PASSTHROUGH Qt6_HOST_Dir)
set(VCPKG_ENV_PASSTHROUGH Qt6_DIR)
set(VCPKG_ENV_PASSTHROUGH Qt6_HOST_DIR)
4 changes: 2 additions & 2 deletions vcpkg-overlay/triplets/arm64-ios.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ set(VCPKG_BUILD_TYPE release)
set(VCPKG_CXX_FLAGS "-fvisibility=hidden")
set(VCPKG_C_FLAGS "-fvisibility=hidden")

set(VCPKG_ENV_PASSTHROUGH Qt6_Dir)
set(VCPKG_ENV_PASSTHROUGH Qt6_HOST_Dir)
set(VCPKG_ENV_PASSTHROUGH Qt6_DIR)
set(VCPKG_ENV_PASSTHROUGH Qt6_HOST_DIR)
2 changes: 1 addition & 1 deletion vcpkg-overlay/triplets/x64-linux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Linux)
set(VCPKG_BUILD_TYPE release)

set(VCPKG_ENV_PASSTHROUGH Qt6_Dir)
set(VCPKG_ENV_PASSTHROUGH Qt6_DIR)
2 changes: 1 addition & 1 deletion vcpkg-overlay/triplets/x64-osx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ if(DEFINED ENV{DEPLOYMENT_TARGET})
set(VCPKG_OSX_DEPLOYMENT_TARGET $ENV{DEPLOYMENT_TARGET})
endif()

set(VCPKG_ENV_PASSTHROUGH Qt6_Dir)
set(VCPKG_ENV_PASSTHROUGH Qt6_DIR)
2 changes: 1 addition & 1 deletion vcpkg-overlay/triplets/x64-windows.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE dynamic)
set(VCPKG_BUILD_TYPE release)

set(VCPKG_ENV_PASSTHROUGH Qt6_Dir)
set(VCPKG_ENV_PASSTHROUGH Qt6_DIR)

0 comments on commit 7d144c9

Please sign in to comment.