mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 13:20:06 +00:00 
			
		
		
		
	Enable debug artifacts for Windows release builds
This commit is contained in:
		
							parent
							
								
									fe831cf65a
								
							
						
					
					
						commit
						b18491b2a0
					
				
					 4 changed files with 30 additions and 0 deletions
				
			
		
							
								
								
									
										7
									
								
								.github/workflows/ci.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/ci.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -148,6 +148,13 @@ jobs: | ||||||
|         name: supercell-wx-${{ matrix.artifact_suffix }} |         name: supercell-wx-${{ matrix.artifact_suffix }} | ||||||
|         path: ${{ github.workspace }}/supercell-wx/ |         path: ${{ github.workspace }}/supercell-wx/ | ||||||
| 
 | 
 | ||||||
|  |     - name: Upload Debug Artifacts (Windows) | ||||||
|  |       if: matrix.os == 'windows-2022' | ||||||
|  |       uses: actions/upload-artifact@v3 | ||||||
|  |       with: | ||||||
|  |         name: supercell-wx-debug-${{ matrix.artifact_suffix }} | ||||||
|  |         path: ${{ github.workspace }}/build/bin/*.pdb | ||||||
|  | 
 | ||||||
|     - name: Upload Artifacts (Linux) |     - name: Upload Artifacts (Linux) | ||||||
|       if: matrix.os == 'ubuntu-22.04' |       if: matrix.os == 'ubuntu-22.04' | ||||||
|       uses: actions/upload-artifact@v3 |       uses: actions/upload-artifact@v3 | ||||||
|  |  | ||||||
							
								
								
									
										9
									
								
								external/mapbox-gl-native.cmake
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								external/mapbox-gl-native.cmake
									
										
									
									
										vendored
									
									
								
							|  | @ -10,6 +10,15 @@ find_package(ZLIB) | ||||||
| target_include_directories(mbgl-core PRIVATE ${ZLIB_INCLUDE_DIRS}) | target_include_directories(mbgl-core PRIVATE ${ZLIB_INCLUDE_DIRS}) | ||||||
| target_link_libraries(mbgl-core INTERFACE ${ZLIB_LIBRARIES}) | target_link_libraries(mbgl-core INTERFACE ${ZLIB_LIBRARIES}) | ||||||
| 
 | 
 | ||||||
|  | if (MSVC) | ||||||
|  |     # Produce PDB file for debug | ||||||
|  |     target_compile_options(mbgl-core PRIVATE "$<$<CONFIG:Release>:/Zi>") | ||||||
|  |     target_compile_options(qmaplibregl PRIVATE "$<$<CONFIG:Release>:/Zi>") | ||||||
|  |     target_link_options(qmaplibregl PRIVATE "$<$<CONFIG:Release>:/DEBUG>") | ||||||
|  |     target_link_options(qmaplibregl PRIVATE "$<$<CONFIG:Release>:/OPT:REF>") | ||||||
|  |     target_link_options(qmaplibregl PRIVATE "$<$<CONFIG:Release>:/OPT:ICF>") | ||||||
|  | endif() | ||||||
|  | 
 | ||||||
| set(MBGL_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/mapbox-gl-native/include | set(MBGL_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/mapbox-gl-native/include | ||||||
|                      ${CMAKE_CURRENT_SOURCE_DIR}/mapbox-gl-native/platform/qt/include PARENT_SCOPE) |                      ${CMAKE_CURRENT_SOURCE_DIR}/mapbox-gl-native/platform/qt/include PARENT_SCOPE) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -388,6 +388,15 @@ target_compile_options(supercell-wx PRIVATE | ||||||
|     $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Wpedantic -Werror> |     $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Wpedantic -Werror> | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | if (MSVC) | ||||||
|  |     # Produce PDB file for debug | ||||||
|  |     target_compile_options(scwx-qt PRIVATE "$<$<CONFIG:Release>:/Zi>") | ||||||
|  |     target_compile_options(supercell-wx PRIVATE "$<$<CONFIG:Release>:/Zi>") | ||||||
|  |     target_link_options(supercell-wx PRIVATE "$<$<CONFIG:Release>:/DEBUG>") | ||||||
|  |     target_link_options(supercell-wx PRIVATE "$<$<CONFIG:Release>:/OPT:REF>") | ||||||
|  |     target_link_options(supercell-wx PRIVATE "$<$<CONFIG:Release>:/OPT:ICF>") | ||||||
|  | endif() | ||||||
|  | 
 | ||||||
| target_link_libraries(scwx-qt PUBLIC Qt${QT_VERSION_MAJOR}::Widgets | target_link_libraries(scwx-qt PUBLIC Qt${QT_VERSION_MAJOR}::Widgets | ||||||
|                                      Qt${QT_VERSION_MAJOR}::OpenGLWidgets |                                      Qt${QT_VERSION_MAJOR}::OpenGLWidgets | ||||||
|                                      Boost::json |                                      Boost::json | ||||||
|  |  | ||||||
|  | @ -233,6 +233,11 @@ target_compile_options(wxdata PRIVATE | ||||||
|     $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Wpedantic -Werror> |     $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Wpedantic -Werror> | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | if (MSVC) | ||||||
|  |     # Produce PDB file for debug | ||||||
|  |     target_compile_options(wxdata PRIVATE "$<$<CONFIG:Release>:/Zi>") | ||||||
|  | endif() | ||||||
|  | 
 | ||||||
| target_link_libraries(wxdata PUBLIC aws-cpp-sdk-core | target_link_libraries(wxdata PUBLIC aws-cpp-sdk-core | ||||||
|                                     aws-cpp-sdk-s3 |                                     aws-cpp-sdk-s3 | ||||||
|                                     cpr::cpr |                                     cpr::cpr | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat