Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 43 additions & 20 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

SPARK Particle Engine
=====================

Expand All @@ -12,38 +13,60 @@ SPARK Particle Engine
Build guide
-----------

Note:
#### Building the SPARK library and the demos

git clone https://github.com/Synxis/SPARK
cd SPARK
mkdir build
cd build
cmake -DSPARK_BUILD_DEMOS:BOOL="1" ../projects
cmake --build . --config Release

#### Running a demo

${SPARK_DIR} refers to the folder where SPARK is installed.
cd SPARK/demos/bin
./Test_Simple (or just 'Test_Simple.exe' on Windows)

#### Building the SPARK library with Irrlicht support

Source directories:
cmake -DSPARK_BUILD_DEMOS:BOOL="1" \
-DSPARK_BUILD_IRRLICHT_MODULE:BOOL="1" \
-DSPARK_IRRLICHT_LIB:FILEPATH="/path/to/the/irrlicht/lib/filename" \
-DSPARK_IRRLICHT_INCLUDE_DIR:PATH="/path/to/the/folder/with/the/irrlicht/headers/"

- For the engine : ${SPARK_DIR}/projects/engine
- For the demos : ${SPARK_DIR}/projects/demos
cmake --build . --config Release

#### Extra notes

Recommended build directory:
By default the compiled libraries and demos will be placed in:

- For the engine : ${SPARK_DIR}/projects/build/engine
- For the demos : ${SPARK_DIR}/projects/build/demos
SPARK
├── lib/
│ └── <system-name>@<generator>/
| └── static/
| └── dynamic/
└── demos/
└── bin/

- *\<system-name>* is the name of your OS (ex: Windows)
- *\<generator>* is the name of the generator used (ex: Visual Studio 10)

To build a project (engine or demos):
Available cmake variables:

First, you have to know how CMake works. If not, there are plenty of tutorials on the net.
When configuring projects for the first time, verify the variables which start with 'SPARK_',
of 'DEMOS_' if you configure the demos.
Note that SPARK release dlls are automatically copied to the 'demos/bin' folder.
- `SPARK_USE_HARCODED_RUNTIME_OUTPUT_DIRS` if set to `FALSE` it will make cmake use the *build* directory to output all the results of the compilation instead of using the hardcoded directory layout above.

- `SPARK_STATIC_BUILD` controls whether SPARK is built as a static or dynamic library.

Note:
- `SPARK_IRRLICHT_USE_STATIC_LIBS` controls whether SPARK will be linked with a static or dynamic Irrlicht library.

Libraries are put in the folder ${SPARK_DIR}/lib/<system-name>@<generator>/<build-type>
where:
<system-name> is the name of your OS (ex: Windows)
<generator> is the name of the generator used (ex: Visual Studio 10)
<build-type> is 'dynamic' or 'static', depending on the project settings. (see SPARK_STATIC_BUILD variable)
- `SPARK_IRRLICHT_DEBUG` is only available when using cmake with multi configuration generators. This variable sets the path to the file of the debug Irrlicht library. If using a visual studio generator without setting the `SPARK_IRRLICHT_DEBUG` variable the `Debug` configuration won't be available.
Here's an example:

Demos are put in ${SPARK_DIR}/demos/bin
cmake -DSPARK_BUILD_DEMOS:BOOL="1" \
-DSPARK_BUILD_IRRLICHT_MODULE:BOOL="1" \
-DSPARK_IRRLICHT_LIB:FILEPATH="/path/to/the/irrlicht/release/lib/filename" \
-DSPARK_IRRLICHT_LIB_DEBUG:FILEPATH="/path/to/the/irrlicht/debug/lib/filename" \
-DSPARK_IRRLICHT_INCLUDE_DIR:PATH="/path/to/the/folder/with/the/irrlicht/headers/"

cmake --build . --config Release
cmake --build . --config Debug
Binary file removed demos/bin/Collision.exe
Binary file not shown.
Binary file removed demos/bin/Explosion.exe
Binary file not shown.
Binary file removed demos/bin/Flakes.exe
Binary file not shown.
Binary file removed demos/bin/Irrlicht.dll
Binary file not shown.
Binary file removed demos/bin/SDL.dll
Binary file not shown.
Binary file removed demos/bin/SPARK.dll
Binary file not shown.
Binary file removed demos/bin/SPARK_DX9.dll
Binary file not shown.
Binary file removed demos/bin/SPARK_GL.dll
Binary file not shown.
Binary file removed demos/bin/SPARK_IRR.dll
Binary file not shown.
Binary file removed demos/bin/Test_Irrlicht.exe
Binary file not shown.
Binary file removed demos/bin/Test_Irrlicht_Ctrl.exe
Binary file not shown.
Binary file removed demos/bin/Test_Simple.exe
Binary file not shown.
94 changes: 0 additions & 94 deletions demos/external/SDL/include/SDL.h

This file was deleted.

58 changes: 0 additions & 58 deletions demos/external/SDL/include/SDL_active.h

This file was deleted.

Loading