Skip to content

Commit

Permalink
Debug MacOS output
Browse files Browse the repository at this point in the history
  • Loading branch information
geneotech committed Nov 7, 2023
1 parent 82f61ee commit c1d1675
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/MacOS_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Generate CMake files
run: export LDFLAGS="-framework Cocoa -framework IOKit -framework CoreFoundation" && cmake/build.sh Release x64 '-DLINK_STEAM_INTEGRATION=1 -DUSE_GLFW=1 -DGENERATE_DEBUG_INFORMATION=0 -DBUILD_DEBUGGER_SETUP=0 -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl'
- name: Build
run: pushd build/current && ls -alh && ninja tests -k 0 && popd
run: pushd build/current && ninja && ls -alh && otool -L Hypersomnia && ninja tests -k 0 && popd
- name: Generate downloadable archives
run: cmake/generate_archives.sh MacOS

Expand Down
15 changes: 10 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,16 @@ option(OUTPUT_TO_HYPERSOMNIA_FOLDER "If enabled, the executable with its dll fil
## Before enabling this option, first call:
## cmake/build_steam_integration.sh, or
## cmake/build_nonsteam_integration.sh
## to generate a suitable library that either interfaces with libsteam_api.so or triggers a non-Steam version of the game.
## (it will be output to cmake/steam_integration/bin/linux/libsteam_integration.so,
## and later copied from there to the executable folder every time you build.)

option(LINK_STEAM_INTEGRATION "Link against libsteam_integration.so/dll. This allows the same executable to dynamically switch between a Steam and Non-Steam version." OFF)
## to generate a suitable library that either interfaces with libsteam_api.so or provides a non-Steam version of the game.
## The built library will be output to cmake/steam_integration/bin/linux/libsteam_integration.so,
## and later copied from there to the executable folder every time you build - executable will have its RPATH set to $ORIGIN.
##
## Note: cmake/build_steam_integration.sh will only work
## if you have Steamworks SDK downloaded into cmake/steam_integration/steamworks/sdk.
## The libsteam_integration.so/.dll/.dylib libraries that come with this repo (in cmake/steam_integration/steamworks/bin)
## are already built against Steamworks SDK - they were built with cmake/build_steam_integration.sh.

option(LINK_STEAM_INTEGRATION "Link against libsteam_integration.so/dll. This allows the same executable to dynamically switch between a Steam and Non-Steam version. It will also set the executable's RPATH to ORIGIN on all platforms." OFF)

option(BUILD_OPENAL "Build OpenAL Soft." ${DEFAULT_OPT})
option(BUILD_OPENGL "Build OpenGL-related code." ${DEFAULT_OPT})
Expand Down

0 comments on commit c1d1675

Please sign in to comment.