README

README

#
# Copyright (c) 2019 Tommi Roenty   http://www.tommironty.fi/
# Licensed under The GNU Lesser General Public License, version 2.1:
#     http://opensource.org/licenses/LGPL-2.1
#
# Commands below in this file and on the file ./install_.sh were tested on following operating systems:
# 	macOS High Sierra (64-bit) (any other version of 64-bit macOS may also do as well)
# 	Ubuntu 18.04.2 LTS Bionic Beaver (32-bit and 64-bit)
#	Ubuntu 20.04.2 LTS Focal Fossa (64-bit)
#	XUbuntu 20.04.2 LTS Focal Fossa (64-bit)
# 	Linux Mint 19.1 "Tessa"  - Cinnamon (32-bit and 64-bit)
# 	Linux Mint 19.2 "Tina"   - Cinnamon (32-bit and 64-bit) also now available should do equally well
# 	Linux Mint 19.3 "Tricia" - Cinnamon (32-bit and 64-bit) also now available should do equally well
# 	Linux Mint 20 	"Ulyana" - Cinnamon (64-bit) also now available should do equally well
# 	Linux Mint 20.1 "Ulyssa" - Cinnamon (64-bit) also now available should do equally well
# 	I use currently mainly Linux Mint 19.1 "Tessa" - Cinnamon where there is the LightDM as a display manager
# 	and system snapshots are available on update manager
# 	(may save time if the system breaks and must be restored to a some previous state)

git:
    git clone https://github.com/tronty/CPPEngine.git

LINUX (Ubuntu/Mint/Debian):
	cd $HOME
	curl -O http://tommironty.fi/IndieLibX.zip
	unzip -x ./IndieLibX.zip -d ./IndieLibX
	curl -O http://tommironty.fi/IndieLib_resources.zip
	unzip -x ./IndieLib_resources.zip -d ./IndieLib_resources
	cd ./IndieLibX
	# chmod a+x ./install_.sh
	sudo ./install_.sh
	gedit $HOME/IndieLib_resources/Framework3/Framework3.xml # edit xml-element <Renderer Value="GLSL1_1" /> to eg. <Renderer Value="GLCG1_1" /> to change the renderer.
	./make.sh AllLibs LNX GNUMAKE        	    -> Builds All C++ static libraries.
	./make.sh Test LNX GNUMAKE                  -> Builds C++ Test applications.
	./make.sh SampleApps LNX GNUMAKE            -> Builds C++ Sample applications.
	./make.sh TerrainApps LNX GNUMAKE           -> Builds C++ Terrain applications.
	./make.sh IndielibApps LNX GNUMAKE          -> Builds C++ Indielib applications.
	./make.sh TestApps LNX GNUMAKE              -> Builds All C++ working applications.
	./run.sh				    -> Runs built applications.
	./make.sh				    -> Removes temporary files.
	make RadeonTerrainDemo 	   		    -> Runs original RadeonTerrainDemo.exe with wine
	make NatureScene       	   		    -> Runs original NatureScene.exe with wine
	make Particles         	   		    -> Runs original Particles.exe with wine
	make ParticleVS        	   		    -> Runs original ParticleVS.exe with wine

OSX:
	cd $HOME
	curl -O http://tommironty.fi/IndieLibX.zip
	unzip -x ./IndieLibX.zip -d ./IndieLibX
	curl -O http://tommironty.fi/IndieLib_resources.zip
	unzip -x ./IndieLib_resources.zip -d ./IndieLib_resources
	cd ./IndieLibX
	# chmod a+x ./install_.sh
	sudo ./install_.sh
	./make.sh AllLibs OSX GNUMAKE        	    -> Builds All C++ static libraries.
	./make.sh Test OSX GNUMAKE                  -> Builds C++ Test applications.
	./make.sh SampleApps OSX GNUMAKE            -> Builds C++ Sample applications.
	./make.sh TerrainApps OSX GNUMAKE           -> Builds C++ Terrain applications.
	./make.sh IndielibApps OSX GNUMAKE          -> Builds C++ Indielib applications.
	./make.sh TestApps OSX GNUMAKE              -> Builds All C++ working applications.
	./run.sh			  	    -> Runs built applications.
	./make.sh				    -> Removes temporary files.

Windows11 (32-bit and 64-bit):
	Edit the xml-element <Renderer Value="GLSL1_1" /> to eg. <Renderer Value="D3D11" /> to change the renderer. In the file $HOME/IndieLib_resources/Framework3/Framework3.xml.
	Make.bat AllLibs WIN VC              -> Generates C++ static library .sln and .prj files for VC.
	Make.bat Test WIN VC                 -> Generates C++ Test applications .sln and .prj files for VC.
	Make.bat SampleApps WIN VC           -> Generates C++ Sample applications .sln and .prj files for VC.
	Make.bat TerrainApps WIN VC          -> Generates C++ Terrain applications .sln and .prj files for VC.
	Make.bat IndielibApps WIN VC         -> Generates C++ Indielib applications .sln and .prj files for VC.
	Make.bat TestApps WIN VC             -> Generates All C++ working applications .sln and .prj files for VC.
	run.bat				       -> Runs built applications.
	Make.bat RadeonTerrainDemo 	       -> Runs original RadeonTerrainDemo.exe
	Make.bat NatureScene       	       -> Runs original NatureScene.exe
	Make.bat Particles         	       -> Runs original Particles.exe
	Make.bat ParticleVS        	       -> Runs original ParticleVS.exe