Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
strategy:
fail-fast: false
matrix:
architecture: [x64, x86]
architecture: [x86]
with:
configuration: 'debug'
architecture: ${{ matrix.architecture }}
Expand All @@ -45,15 +45,9 @@ jobs:
name: Orbiter-x86
path: Orbiter-x86

- uses: actions/download-artifact@v4
with:
name: Orbiter-x64
path: Orbiter-x64

- run: |
find .
mv Orbiter-x86/Orbiter.zip Orbiter-x86-debug.zip
mv Orbiter-x64/Orbiter.zip Orbiter-x64-debug.zip

- name: "Create debug release"
uses: softprops/action-gh-release@v2
Expand All @@ -66,4 +60,3 @@ jobs:
name: Orbiter ${{ inputs.version }}
files: |
Orbiter-x86-debug.zip
Orbiter-x64-debug.zip
24 changes: 22 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ set(ldoc $<TARGET_FILE:lua::exe> ${ORBITER_BINARY_ROOT_DIR}/packages/LDoc/ldoc.l

find_package(OpenGL QUIET)
find_package(HTMLHelp)
find_package(LATEX)
find_package(LATEX)
find_package(MFC)

# We don't query Qt with find_package because we need the 64-bit version here
Expand All @@ -114,6 +114,10 @@ set(Qt5_x64_DIR
if(MSVC)
add_compile_options(/we4311 /DNOMINMAX)
add_link_options("/NODEFAULTLIB:\"LIBCMTD\"")
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
# disable the implied default incremental linking for debug builds
add_link_options("/INCREMENTAL:NO")
endif()
else()
set(CMAKE_BUILD_WITH_INSTALL_RPATH true)
endif()
Expand Down Expand Up @@ -176,6 +180,22 @@ string(COMPARE NOTEQUAL ${ORBITER_PLANET_TEXTURE_INSTALL_DIR} "${ORBITER_BINARY_
if (${CUSTOM_PLANET_TEXTURE_DIR})
string(REPLACE "/" "\\" ORBITER_PLANET_TEXTURE_INSTALL_DIR_W "${ORBITER_PLANET_TEXTURE_INSTALL_DIR}")

if(BUILD_ORBITER_DX7)
configure_file(${ORBITER_SOURCE_DIR}/Orbiter.cfg.in ${ORBITER_BINARY_ROOT_DIR}/Orbiter.cfg)
install(FILES
${ORBITER_BINARY_ROOT_DIR}/Orbiter.cfg
DESTINATION ${ORBITER_INSTALL_ROOT_DIR}
)
endif()

if(BUILD_ORBITER_SERVER)
configure_file(${ORBITER_SOURCE_DIR}/Orbiter.cfg.in ${ORBITER_BINARY_ROOT_DIR}/Orbiter_NG.cfg)
install(FILES
${ORBITER_BINARY_ROOT_DIR}/Orbiter_NG.cfg
DESTINATION ${ORBITER_INSTALL_ROOT_DIR}
)
endif()

configure_file(${ORBITER_SOURCE_DIR}/Orbiter.cfg.in ${ORBITER_BINARY_ROOT_DIR}/Orbiter.cfg)
install(FILES ${ORBITER_BINARY_ROOT_DIR}/Orbiter.cfg DESTINATION ${ORBITER_INSTALL_ROOT_DIR})
endif()
Expand Down Expand Up @@ -301,7 +321,7 @@ endif()

configure_file(${CMAKE_SOURCE_DIR}/cmake/CPackOptions.cmake.in
${CMAKE_BINARY_DIR}/OrbiterCPackOptions.cmake)

set(CPACK_GENERATOR "WIX;ZIP")
set(CPACK_PACKAGE_NAME OpenOrbiter)
set(CPACK_PACKAGE_VENDOR Orbitersim)
Expand Down
2 changes: 1 addition & 1 deletion Extern/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ set_target_properties(lfs PROPERTIES

add_custom_target(CopyLDoc ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/ldoc/ ${ORBITER_BINARY_ROOT_DIR}/packages/ldoc
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/Penlight/lua/ ${ORBITER_BINARY_ROOT_DIR}/
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/Penlight/lua/ ${ORBITER_BINARY_ROOT_DIR}
)
1 change: 1 addition & 0 deletions Extern/Lua/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ set_target_properties(lua PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY ${ORBITER_BINARY_ROOT_DIR}
LIBRARY_OUTPUT_DIRECTORY ${ORBITER_BINARY_ROOT_DIR}
RUNTIME_OUTPUT_DIRECTORY ${ORBITER_BINARY_ROOT_DIR}
COMPILE_PDB_NAME "lua_lib.pdb"
)
install(TARGETS lua DESTINATION ${ORBITER_INSTALL_ROOT_DIR})

Expand Down
Loading