-
Notifications
You must be signed in to change notification settings - Fork 187
Build ‐ Windows with MSVC
Chris edited this page May 29, 2024
·
5 revisions
Some additional notes are available in subpage, however, they have not been fully tested.
- Visual Studio - The Community Edition is free.
- CMake, at least 3.10.
- SDL2 VC development librairies.
- A flavor of git tool.
Clone both daid/EmptyEpsilon
and daid/SeriousProton
.
Extract the SDL2 archive somewhere.
Create a sdl2-config.cmake
at the root of where you extracted the SDL2 archive with the following content:
# Tweak these to fit your need.
set(_SDL2_version 2.0.16)
# Assumes the sdl2-config.cmake is located at the root
# of where the development libraires were extracted:
# - <root>/
# | - sdl2-config.cmake
# | - SDL2-2.0.16/
# | - (include, docs, lib...)
#
set(_SDL2_prefix "${CMAKE_CURRENT_LIST_DIR}/SDL2-${_SDL2_version}")
set(flavor x86)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(flavor x64)
endif()
add_library(SDL2::SDL2main STATIC IMPORTED)
set_target_properties(SDL2::SDL2main PROPERTIES
IMPORTED_LOCATION "${_SDL2_prefix}/lib/${flavor}/SDL2main.lib"
)
add_library(SDL2::SDL2 SHARED IMPORTED)
set_target_properties(SDL2::SDL2 PROPERTIES
IMPORTED_LOCATION "${_SDL2_prefix}/lib/${flavor}/SDL2.dll"
IMPORTED_IMPLIB "${_SDL2_prefix}/lib/${flavor}/SDL2.lib"
INTERFACE_INCLUDE_DIRECTORIES "${_SDL2_prefix}/include"
)
target_link_libraries(SDL2::SDL2 INTERFACE SDL2::SDL2main)
- Run the CMake GUI (
cmake-gui
) - Click
Browse source...
and browse to your cloneddaid/EmptyEpsilon
- click
Browse build...
and select an appropriate location. - Click
Add Entry...
:- Name:
SERIOUS_PROTON_DIR
- Type:
PATH
- Value: Browse to your cloned
daid/SeriousProton
- Name:
- Click
Add Entry...
(again):- Name:
SDL2_DIR
- Type:
PATH
- Value: Browse to where you created the
sdl2-config.cmake
file.
- Name:
- Click
Configure
- Select your appropriate project versions and compiler arch. The defaults are a good choice.
- You may get "Permission Denied" errors. If this happens, try running CMake as administrator.
- Click
Generate
- Click
Open Project
or browse to the build directory you chose and open the sln from there.
As simple as building the project under Visual Studio, using build solution or right clicking the project.
Updates should get auto-picked up!
- Home
- Stations
- Main Screen/Captain
- 5-6 Player Crews
- 3-4 Player Crews
- 1 Player Crew
- Game Master
- Additional Stations and Views
- Setting up a Game
- Lore
- Expanding the Game
- Additional Features
- Building from Source