Skip to content

Commit

Permalink
fixed the windows build script
Browse files Browse the repository at this point in the history
  • Loading branch information
sv committed Nov 29, 2021
1 parent e6d5f1d commit 95529fc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
shex
shex.exe
4 changes: 3 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ class Application {

std::string window_title = std::string(input_fname) + " - shex";

window = SDL_CreateWindow(window_title.c_str(), 0, 0,
window = SDL_CreateWindow(window_title.c_str(),
SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
WIDTH, HEIGHT,
SDL_WINDOW_VULKAN | SDL_WINDOW_RESIZABLE);

Expand Down Expand Up @@ -1997,6 +1998,7 @@ class Application {
throw std::runtime_error(
"Can't get Vulkan Instance Extensions");
}
std::cout << "Number of extensions: " << count << "\n";
std::vector<const char *> extensions;

if(enableValidationLayers) {
Expand Down
4 changes: 2 additions & 2 deletions mkwin
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
x86_64-w64-mingw32-g++ -DNDEBUG -D_WIN64 -D_WIN32 -std=c++17 -o shex.exe \
main.cpp -I. -DMOUSEWHEELYDIR=-1 \
main.cpp -I. \
-static-libgcc -static-libstdc++ -mwindows -lvulkan \
-lglfw3 -lgdi32 -fstack-protector-all
-lmingw32 -lSDL2main -lSDL2 -lgdi32 -fstack-protector-all

0 comments on commit 95529fc

Please sign in to comment.