Dawoodoz / DFPSR

Fast realtime softare rendering library for C++14 using SSE/AVX/NEON. 2D, 3D and isometric rendering with minimal system dependencies.
https://dawoodoz.com/dfpsr.html
83 stars 6 forks source link

New build system #41

Closed Dawoodoz closed 2 years ago

Dawoodoz commented 2 years ago

The new build system detects dependencies automatically with the crawl keyword by following includes with "" marks and then jumping from headers to implementations of the same name in the same folder. The old build system can still be usedful as an emergency solution if the new build system won't work for any reason.

New benefits

Still lacking

Windows If the MinGW distribution of CodeBlocks is installed at the standard location, so that a C++ compiler is located at C:\Program\CodeBlocks\MinGW\bin, you only have to doubleclick on build_windows.bat in any SDK example's or template's folder. Just as easy as building on Linux. All examples and templates have static runtime enabled by default, which will make sure that they run on a clean install of Windows. Tested on a $20 pre-owned HTPC with Intel Atom CPU and Windows 7. The %temp% folder of MS-Windows is not automatically erased, so you have to clean it up once in a while when it gets too big.

Linux The new build system makes it faster to build parts of the framework that changed by only storing object files. If compilation is too slow after having the /tmp folder cleared after reboot, you can change SCRIPT_PATH to a persistent folder and clean it manually once in a while.