|
56 | 56 | - name: Build flatc
|
57 | 57 | run: cmake --build ${{ github.workspace }}/BinaryCache/flatbuffers --config Release --target flatc
|
58 | 58 |
|
| 59 | + - name: Adjust cmake build settings for debugging |
| 60 | + run: powershell ${{ github.workspace }}/SourceCache/firebase-cpp-sdk/build_scripts/windows/fix_cmake_debugflags.ps1 ${{ github.workspace }}/SourceCache/firebase-cpp-sdk/CMakeLists.txt |
| 61 | + |
59 | 62 | - name: Configure firebase
|
60 | 63 | run:
|
61 | 64 | cmake -B ${{ github.workspace }}/BinaryCache/firebase `
|
|
76 | 79 | -D CMAKE_MSVC_DEBUG_INFORMATION_FORMAT=Embedded `
|
77 | 80 | -D FIREBASE_PYTHON_HOST_EXECUTABLE:FILEPATH=${{ steps.python.outputs.python-path }} `
|
78 | 81 | -D FLATBUFFERS_FLATC_EXECUTABLE=${{ github.workspace }}/BinaryCache/flatbuffers/Release/flatc.exe
|
| 82 | + |
| 83 | + - name: Adjust external project build settings for debugging |
| 84 | + run: | |
| 85 | + $names = Get-ChildItem -Path "${{ github.workspace }}/BinaryCache/firebase" -File -Recurse -Filter CMakeLists.txt |
| 86 | + foreach ($name in $names) { |
| 87 | + $fullName = $name.FullName |
| 88 | + powershell ${{ github.workspace }}/SourceCache/firebase-cpp-sdk/build_scripts/windows/fix_cmake_debugflags.ps1 $fullName |
| 89 | + Write-Host "... fixed up debug options for ${fullName}" |
| 90 | + } |
| 91 | +
|
| 92 | + - name: Configure firebase after build setting adjustments |
| 93 | + run: |
| 94 | + cmake -B ${{ github.workspace }}/BinaryCache/firebase ` |
| 95 | + -D BUILD_SHARED_LIBS=NO ` |
| 96 | + -D CMAKE_BUILD_TYPE=Release ` |
| 97 | + -D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/BuildRoot/Library/firebase/usr ` |
| 98 | + -G "Visual Studio 17 2022" ` |
| 99 | + -A ${{ matrix.platform }} ` |
| 100 | + -S ${{ github.workspace }}/SourceCache/firebase-cpp-sdk ` |
| 101 | + -D FLATBUFFERS_BUILD_FLATC=NO ` |
| 102 | + -D FIREBASE_CPP_BUILD_PACKAGE=YES ` |
| 103 | + -D FIREBASE_GITHUB_ACTION_BUILD=YES ` |
| 104 | + -D FIREBASE_INCLUDE_LIBRARY_DEFAULT=OFF ` |
| 105 | + -D FIREBASE_INCLUDE_AUTH=YES ` |
| 106 | + -D FIREBASE_INCLUDE_FIRESTORE=YES ` |
| 107 | + -D FIREBASE_USE_BORINGSSL=YES ` |
| 108 | + -D MSVC_RUNTIME_LIBRARY_STATIC=NO ` |
| 109 | + -D CMAKE_MSVC_DEBUG_INFORMATION_FORMAT=Embedded ` |
| 110 | + -D FIREBASE_PYTHON_HOST_EXECUTABLE:FILEPATH=${{ steps.python.outputs.python-path }} ` |
| 111 | + -D FLATBUFFERS_FLATC_EXECUTABLE=${{ github.workspace }}/BinaryCache/flatbuffers/Release/flatc.exe |
79 | 112 | - name: Build firebase
|
80 | 113 | run: cmake --build ${{ github.workspace }}/BinaryCache/firebase --config RelWithDebInfo
|
81 | 114 | - name: Install firebase
|
|
0 commit comments