mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
Merge branch 'qmake-to-cmake'
This commit is contained in:
commit
6be62bc492
3 changed files with 30 additions and 29 deletions
|
|
@ -315,37 +315,39 @@ IF(APPLE)
|
|||
ENDIF()
|
||||
|
||||
# Steamshim
|
||||
IF(NOT WIN32)
|
||||
set(STEAMSHIM_SOURCES
|
||||
steamshim_parent/steamshim_parent.cpp
|
||||
)
|
||||
IF(STEAM)
|
||||
IF(NOT WIN32)
|
||||
set(STEAMSHIM_SOURCES
|
||||
steamshim_parent/steamshim_parent.cpp
|
||||
)
|
||||
|
||||
include_directories(${STEAMWORKS_PATH}/public)
|
||||
include_directories(${STEAMWORKS_PATH}/public)
|
||||
|
||||
add_definitions(-DGAME_LAUNCH_NAME="${GAME_LAUNCH_NAME}")
|
||||
add_definitions(-DGAME_LAUNCH_NAME="${GAME_LAUNCH_NAME}")
|
||||
|
||||
IF(DEBUG)
|
||||
add_definitions(-DSTEAMSHIM_DEBUG)
|
||||
ENDIF()
|
||||
IF(DEBUG)
|
||||
add_definitions(-DSTEAMSHIM_DEBUG)
|
||||
ENDIF()
|
||||
|
||||
IF(APPLE)
|
||||
link_directories(${STEAMWORKS_PATH}/redistributable_bin/osx32)
|
||||
ELSEIF(WIN32)
|
||||
list(APPEND STEAMSHIM_SOURCES steamshim_parent/resources.rc)
|
||||
link_directories(${STEAMWORKS_PATH}/redistributable_bin/win64)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mwindows")
|
||||
ELSEIF(LINUX)
|
||||
link_directories(${STEAMWORKS_PATH}/redistributable_bin/linux64)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64")
|
||||
ENDIF()
|
||||
IF(APPLE)
|
||||
link_directories(${STEAMWORKS_PATH}/redistributable_bin/osx32)
|
||||
ELSEIF(WIN32)
|
||||
list(APPEND STEAMSHIM_SOURCES steamshim_parent/resources.rc)
|
||||
link_directories(${STEAMWORKS_PATH}/redistributable_bin/win64)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mwindows")
|
||||
ELSEIF(LINUX)
|
||||
link_directories(${STEAMWORKS_PATH}/redistributable_bin/linux64)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64")
|
||||
ENDIF()
|
||||
|
||||
add_executable(steamshim
|
||||
${STEAMSHIM_SOURCES}
|
||||
)
|
||||
add_executable(steamshim
|
||||
${STEAMSHIM_SOURCES}
|
||||
)
|
||||
|
||||
IF(WIN32)
|
||||
target_link_libraries(steamshim steam_api64)
|
||||
ELSE()
|
||||
target_link_libraries(steamshim steam_api)
|
||||
IF(WIN32)
|
||||
target_link_libraries(steamshim steam_api64)
|
||||
ELSE()
|
||||
target_link_libraries(steamshim steam_api)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ Thanks to [hunternet93](https://github.com/hunternet93) for starting the reimple
|
|||
* Ruby
|
||||
* Python 3 (journal reimplementation only)
|
||||
* PyQt5 for Python 3 (journal reimplementation only)
|
||||
* Steamworks SDK (optional, place contents of sdk folder in ZIP into "steamworks" folder in root)
|
||||
|
||||
### Building with Conan
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@ cd `dirname $0`
|
|||
mac_version="1.1.0"
|
||||
make_threads=8
|
||||
ONESHOT_PATH=$HOME/Library/Application\ Support/Steam/steamapps/common/OneShot
|
||||
STEAMWORKS_PATH=$HOME/Developer/downloaded/steamworks
|
||||
|
||||
# Colors
|
||||
white="\033[0;37m" # White - Regular
|
||||
bold="\033[1;37m" # White - Bold
|
||||
|
|
@ -30,7 +28,7 @@ if [[ $use_qmake == True ]]
|
|||
echo "-> ${cyan}Compile steamshim...${color_reset}"
|
||||
cd steamshim_parent
|
||||
mkdir build && cd build
|
||||
cmake -DSTEAMWORKS_PATH=${STEAMWORKS_PATH} ..
|
||||
cmake ..
|
||||
make -j${make_threads}
|
||||
cd ../..
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue