Elidevin / SFML-notes

SFML notes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SFML configuration set for Visual Studio projects


Configuration PropertiesC/C++General[ Additional Include Directories ]

C:\a-directory-with-the-SFML-headers-directory\;

Configuration PropertiesC/C++Proprocessor[ Proprocessor Definition ]

SFML_STATIC;
Dynamic linking Static linking
SFML_STATIC

Configuration PropertiesC/C++Code Generatio[ Runtime Library ]

Multi-threaded (/MT)
Dynamic linking (Debug) Dynamic linking (Release) Static linking (Debug) Static linking (Release)
Multi-threaded Debug DLL (/MDd) Multi-threaded DLL (/MD) Multi-threaded Debug (/MTd) Multi-threaded (/MT)

Configuration PropertiesLinkerGeneral[ Additional Library Directories ]

C:\a-directory-with-lib-type-files\;

Configuration PropertiesLinkerInput[ Additional Dependencies ]

sfml-main.lib
sfml-graphics-s.lib
freetype.lib
sfml-window-s.lib
gdi32.lib
OpenGL32.lib
sfml-network-s.lib
ws2_32.lib
sfml-audio-s.lib
vorbis.lib
vorbisfile.lib
vorbisenc.lib
flac.lib
ogg.lib
OpenAL32.lib
sfml-system-s.lib
winmm.lib
Dynamic linking (Debug) Dynamic linking (Release) Static linking (Debug) Static linking (Release)
sfml-main-d.lib
sfml-graphics-d.lib
sfml-window-d.lib
sfml-network-d.lib
sfml-audio-d.lib
sfml-system-d.lib
sfml-main.lib
sfml-graphics.lib
sfml-window.lib
sfml-network.lib
sfml-audio.lib
sfml-system.lib
sfml-main-d.lib
sfml-graphics-s-d.lib
freetype.lib
sfml-window-s-d.lib
gdi32.lib
OpenGL32.lib
sfml-network-s-d.lib
ws2_32.lib
sfml-audio-s-d.lib
vorbis.lib
vorbisfile.lib
vorbisenc.lib
flac.lib
ogg.lib
OpenAL32.lib
sfml-system-s-d.lib
winmm.lib
sfml-main.lib
sfml-graphics-s.lib
freetype.lib
sfml-window-s.lib
gdi32.lib
OpenGL32.lib
sfml-network-s.lib
ws2_32.lib
sfml-audio-s.lib
vorbis.lib
vorbisfile.lib
vorbisenc.lib
flac.lib
ogg.lib
OpenAL32.lib
sfml-system-s.lib
winmm.lib

SFML libraries dependencies scheme for static linking

graph BT;
    Audio([sfml-audio-s.lib]);
    Network([sfml-network-s.lib]);
    System([sfml-system-s.lib]);
    Window([sfml-window-s.lib]);
    Graphics([sfml-graphics-s.lib]);
    OpenGL[OpenGL32.lib];
    WS2[ws2_32.lib];
    OpenAL[OpenAL32.lib];
    Vorbis[vorbis.lib\nvorbisfile.lib\nvorbisenc.lib\nflac.lib\nogg.lib];
    FreeType[freetype.lib];
    Winmm[winmm.lib];
    GDI[gdi32.lib];

    System--->Network;
    System--->Window
    Window-->Graphics;
    OpenGL-->Window;
    WS2-->Network;
    FreeType-->Graphics;
    Winmm-->System;
    GDI-->Window;
    Vorbis-->Audio;
    OpenAL-->Audio;
    System--->Audio;

	classDef sfml fill:#333,stroke:#000,stroke-width:2px,color:#f0a;
    classDef lib3rd fill:#333,stroke:#000,stroke-width:2px,color:#f55;
    class Audio,Network,Graphics,Window,System, sfml
    class OpenGL,OpenAL,WS2,Vorbis,FreeType,Winmm,GDI, lib3rd

	linkStyle default stroke-width:2px,fill:none,stroke:grey
	linkStyle 3,4,5,6,7,8,9 stroke:blue,color:blue
	linkStyle 0,1,2,10 stroke:red,color:red

Configuration PropertiesLinkerSystem[ SubSystem ]

Windows (/SUBSYSTEM:WINDOWS)
Debug Release
Console (/SUBSYSTEM:CONSOLE) Windows (/SUBSYSTEM:WINDOWS)

About

SFML notes