Browse Source

Added debug build .so selection for SFML

master
Macoy Madson 1 year ago
parent
commit
5a9b0f99c7
3 changed files with 15 additions and 1 deletions
  1. +3
    -0
      Build_Debug.sh
  2. +10
    -1
      Jamrules
  3. +2
    -0
      tests/main.cpp

+ 3
- 0
Build_Debug.sh View File

@ -0,0 +1,3 @@
#!/bin/sh
jam -j4 -sDEBUG_BUILD=true

+ 10
- 1
Jamrules View File

@ -66,11 +66,20 @@ LINKFLAGS =
-Wl,-rpath,.:dependencies/SFML/lib
;
if $(DEBUG_BUILD)
{
SFML_LINKLIBS = -lsfml-audio-d -lsfml-graphics-d -lsfml-window-d -lsfml-system-d ;
}
else
{
SFML_LINKLIBS = -lsfml-audio -lsfml-graphics -lsfml-window -lsfml-system ;
}
# This is for test executables, not the lib. You can use this as reference for your own executables
LINKLIBS =
# SFML
-Ldependencies/SFML/lib
-lsfml-audio -lsfml-graphics -lsfml-window -lsfml-system
$(SFML_LINKLIBS)
# OpenGL
-lGL


+ 2
- 0
tests/main.cpp View File

@ -81,4 +81,6 @@ int main2()
}
ImGui::SFML::Shutdown();
return 0;
}

Loading…
Cancel
Save