Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [Script] Auto-Update SFML windows batch script  (Read 2848 times)

0 Members and 1 Guest are viewing this topic.

AncientGrief

  • Newbie
  • *
  • Posts: 32
    • Yahoo Instant Messenger - what?
    • View Profile
[Script] Auto-Update SFML windows batch script
« on: February 20, 2016, 11:45:28 pm »
Hi,

I just set up a batch script to check for SFML updates on git Master and to auto build all the libraries I maybe need (Debug/Release, both static and dynamic).
I thought this could maybe come in handy for anyone, so I share it.

The script builds the MinGW Makefiles. If you want other Makefiles, you have to exchange the specific lines.
Type
cmake --help
to see all the options and call the specific commands for your build environment.

Git, compiler and cmake should be in the PATH  of your OS to work out of the box.
Tested with Windows 10.

The batch script
(click to show/hide)

Usage:
- Open git bash
- Clone SFML via git:
git clone https://github.com/SFML/SFML.git
 

- This will create a new folder "SFML" with all the sources in the working directory.
- Copy this batch file in the working directory (same level as the SFML folder!!!)

Anytime you want to check for updates, run the script.
After pulling the latest version, the script will ask you, if you want to build all the libraries.
Type "y" or "n" to do it or not :)
If you are "up-to-date" you don't need to build the libs, unless you didn't already.

Hope it helps!

Regards,
AncientGrief
I grew up with C++...but then I met C#...got lazy...time to turn back to my one and only love!
My system:
Wintendo 10 with Intel i7 4770k
Palit GeForce GTX 980
16 GB RAM