From b408d54dfb958b197a968446888e95d018afbc1a Mon Sep 17 00:00:00 2001 From: fgsfds Date: Wed, 13 Nov 2024 09:07:17 +0100 Subject: [PATCH 1/2] port: cmake: remove console window on windows --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 85b0717c0..330b411b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -300,3 +300,6 @@ add_executable(pd ${SRC}) add_dependencies(pd pd_headers) target_link_libraries(pd ${LIBS}) set_target_properties(pd PROPERTIES OUTPUT_NAME "pd${BIN_REGION}.${TARGET_ARCH}") +if(WIN32) + set_target_properties(pd PROPERTIES WIN32_EXECUTABLE TRUE) +endif() From 852349bbe008a0ec4cbba17161cb631b9d0e70fd Mon Sep 17 00:00:00 2001 From: fgsfds Date: Wed, 13 Nov 2024 09:09:30 +0100 Subject: [PATCH 2/2] mention python in the readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 38aad50eb..8e508b465 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ Controls can be rebound in `pd.ini`. Default control scheme is as follows: 1. Install [MSYS2](https://www.msys2.org). 2. Open the `MINGW64` prompt if building for x86_64, or the `MINGW32` prompt if building for i686. (**NOTE:** _do not_ use the `MSYS` prompt) 3. Install dependencies: - `pacman -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-SDL2 mingw-w64-x86_64-zlib mingw-w64-x86_64-cmake mingw-w64-i686-toolchain mingw-w64-i686-SDL2 mingw-w64-i686-zlib mingw-w64-i686-cmake make git` + `pacman -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-SDL2 mingw-w64-x86_64-zlib mingw-w64-x86_64-cmake mingw-w64-x86_64-python3 mingw-w64-i686-toolchain mingw-w64-i686-SDL2 mingw-w64-i686-zlib mingw-w64-i686-cmake mingw-w64-i686-python3 make git` 4. Get the source code: `git clone --recursive https://github.com/fgsfdsfgs/perfect_dark.git && cd perfect_dark` 5. Run `cmake -G"Unix Makefiles" -Bbuild .`. @@ -116,7 +116,7 @@ Controls can be rebound in `pd.ini`. Default control scheme is as follows: ### Linux -1. Ensure you have gcc, g++ (version 10.0+), make, cmake, git and SDL2 (version 2.0.12+), libGL and ZLib installed on your system. +1. Ensure you have gcc, g++ (version 10.0+), make, cmake, git, python3 and SDL2 (version 2.0.12+), libGL and ZLib installed on your system. * If you wish to crosscompile, you will also need to have libraries and compilers for the target platform installed, e.g. `gcc-multilib` and `g++-multilib` for x86_64 -> i686 crosscompilation. 2. Get the source code: `git clone --recursive https://github.com/fgsfdsfgs/perfect_dark.git && cd perfect_dark`