Moved all source files into their appropriate directories i.e. common, game and libsymmetry and began migrating build system to GENie
parent
16b3293b41
commit
a4f3021e44
Binary file not shown.
@ -0,0 +1,64 @@ |
||||
-- A solution contains projects, and defines the available configurations |
||||
solution "Symmetry" |
||||
configurations { "Debug", "Release" } |
||||
location(_ACTION) |
||||
defines {"USE_GLAD"} |
||||
includedirs {"../include/"} |
||||
buildoptions {"-Wall", "-std=c99"} |
||||
if os.is("linux") then |
||||
postbuildcommands {"ln -fs /mnt/Dev/Projects/symmetry/assets debug"} |
||||
postbuildcommands {"ln -fs /mnt/Dev/Projects/symmetry/assets release"} |
||||
end |
||||
|
||||
configuration "Debug" |
||||
if not _ACTION == nil then |
||||
os.mkdir(_ACTION .. "/debug") |
||||
targetdir (_ACTION .. "/debug") |
||||
end |
||||
|
||||
configuration "Release" |
||||
if not _ACTION == nil then |
||||
os.mkdir(_ACTION .. "/release") |
||||
targetdir (_ACTION .. "/release") |
||||
end |
||||
|
||||
------------------------- |
||||
-- Game |
||||
------------------------- |
||||
project "Game" |
||||
kind "WindowedApp" |
||||
targetname "Symmetry" |
||||
language "C" |
||||
files { "../src/common/**.c", "../src/game/**.c" } |
||||
defines {"GAME"} |
||||
|
||||
configuration "linux" |
||||
buildoptions {"`pkg-config --cflags-only-other sdl2 openal`"} |
||||
linkoptions {"`pkg-config --libs sdl2 openal`"} |
||||
links {"m"} |
||||
|
||||
configuration "Debug" |
||||
defines { "DEBUG" } |
||||
flags { "Symbols" } |
||||
|
||||
configuration "Release" |
||||
defines { "NDEBUG" } |
||||
flags { "OptimizeSpeed"} |
||||
|
||||
------------------------- |
||||
-- libSymmetry |
||||
------------------------- |
||||
project "Library" |
||||
kind "SharedLib" |
||||
targetname "Symmetry" |
||||
language "C" |
||||
defines {"GAME_LIB"} |
||||
files { "../src/common/**.c", "../src/libsymmetry/**.c" } |
||||
|
||||
configuration "Debug" |
||||
defines {"GL_DEBUG_CONTEXT", "AL_DEBUG"} |
||||
flags {"Symbols"} |
||||
|
||||
configuration "Release" |
||||
defines { "NDEBUG" } |
||||
flags { "OptimizeSpeed"} |
@ -1,5 +1,5 @@ |
||||
#ifndef num_types_H |
||||
#define num_types_H |
||||
#ifndef NUM_TYPES_H |
||||
#define NUM_TYPES_H |
||||
|
||||
#include <stdint.h> |
||||
#include <stdbool.h> |
@ -1,9 +1,9 @@ |
||||
#include "config_vars.h" |
||||
#include "string_utils.h" |
||||
#include "variant.h" |
||||
#include "hashmap.h" |
||||
#include "../common/string_utils.h" |
||||
#include "../common/variant.h" |
||||
#include "../common/hashmap.h" |
||||
#include "file_io.h" |
||||
#include "log.h" |
||||
#include "../common/log.h" |
||||
#include "platform.h" |
||||
|
||||
#include <stdlib.h> |
@ -1,7 +1,7 @@ |
||||
#ifndef CONFIG_VARS_H |
||||
#define CONFIG_VARS_H |
||||
|
||||
#include "num_types.h" |
||||
#include "../common/num_types.h" |
||||
|
||||
struct Hashmap; |
||||
|
@ -1,7 +1,7 @@ |
||||
#ifndef FILE_IO_H |
||||
#define FILE_IO_H |
||||
|
||||
#include "common.h" |
||||
#include "../common/common.h" |
||||
|
||||
void io_file_init(const char* install_dir, const char* user_dir); |
||||
char* io_file_read(const int directory_type, const char* path, const char* mode, long* file_size); |
@ -1,14 +1,13 @@ |
||||
#include <stdio.h> |
||||
#include <stdlib.h> |
||||
|
||||
#include "log.h" |
||||
#include "../common/log.h" |
||||
#include "sound.h" |
||||
#include "platform.h" |
||||
#include "gl_load.h" |
||||
#include "file_io.h" |
||||
#include "config_vars.h" |
||||
#include "hashmap.h" |
||||
#include "common.h" |
||||
#include "../common/hashmap.h" |
||||
#include "../common/common.h" |
||||
|
||||
static struct Window* window = NULL; |
||||
static struct Platform_Api platform_api; |
@ -1,8 +1,8 @@ |
||||
#include "platform.h" |
||||
#include "log.h" |
||||
#include "../common/log.h" |
||||
#include "config_vars.h" |
||||
#include "hashmap.h" |
||||
#include "string_utils.h" |
||||
#include "../common/hashmap.h" |
||||
#include "../common/string_utils.h" |
||||
|
||||
#include <SDL2/SDL.h> |
||||
#include <string.h> |
@ -1,7 +1,7 @@ |
||||
#ifndef PLATFORM_H |
||||
#define PLATFORM_H |
||||
|
||||
#include "common.h" |
||||
#include "../common/common.h" |
||||
|
||||
enum Video_Drivers_Linux |
||||
{ |
@ -1,7 +1,7 @@ |
||||
#include "sound.h" |
||||
#include "log.h" |
||||
#include "array.h" |
||||
#include "string_utils.h" |
||||
#include "../common/log.h" |
||||
#include "../common/array.h" |
||||
#include "../common/string_utils.h" |
||||
#include "file_io.h" |
||||
|
||||
#include <assert.h> |
@ -1,7 +1,7 @@ |
||||
#ifndef SOUND_H |
||||
#define SOUND_H |
||||
|
||||
#include "num_types.h" |
||||
#include "../common/num_types.h" |
||||
|
||||
#ifdef AL_DEBUG |
||||
#define al_check(expr) {expr; sound_error_check(__FILE__, __LINE__, #expr);} |
@ -1,8 +1,8 @@ |
||||
#ifndef BOUNDING_VOLUMES_H |
||||
#define BOUNDING_VOLUMES_H |
||||
|
||||
#include "linmath.h" |
||||
#include "num_types.h" |
||||
#include "../common/linmath.h" |
||||
#include "../common/num_types.h" |
||||
|
||||
struct Entity; |
||||
|
@ -1,24 +1,24 @@ |
||||
#include "editor.h" |
||||
#include "renderer.h" |
||||
#include "gl_load.h" |
||||
#include "log.h" |
||||
#include "../common/log.h" |
||||
#include "camera.h" |
||||
#include "model.h" |
||||
#include "texture.h" |
||||
#include "framebuffer.h" |
||||
#include "array.h" |
||||
#include "../common/array.h" |
||||
#include "shader.h" |
||||
#include "num_types.h" |
||||
#include "../common/num_types.h" |
||||
#include "light.h" |
||||
#include "entity.h" |
||||
#include "transform.h" |
||||
#include "game.h" |
||||
#include "gui.h" |
||||
#include "array.h" |
||||
#include "variant.h" |
||||
#include "num_types.h" |
||||
#include "string_utils.h" |
||||
#include "common.h" |
||||
#include "../common/array.h" |
||||
#include "../common/variant.h" |
||||
#include "../common/num_types.h" |
||||
#include "../common/string_utils.h" |
||||
#include "../common/common.h" |
||||
|
||||
#include <stdio.h> |
||||
#include <stdlib.h> |
@ -1,7 +1,7 @@ |
||||
#ifndef EDITOR_H |
||||
#define EDITOR_H |
||||
|
||||
#include "linmath.h" |
||||
#include "../common/linmath.h" |
||||
|
||||
void editor_init(void); |
||||
void editor_update(float dt); |
@ -1,15 +1,15 @@ |
||||
#include "entity.h" |
||||
#include "array.h" |
||||
#include "log.h" |
||||
#include "string_utils.h" |
||||
#include "../common/array.h" |
||||
#include "../common/log.h" |
||||
#include "../common/string_utils.h" |
||||
#include "transform.h" |
||||
#include "camera.h" |
||||
#include "light.h" |
||||
#include "model.h" |
||||
#include "material.h" |
||||
#include "geometry.h" |
||||
#include "variant.h" |
||||
#include "common.h" |
||||
#include "../common/variant.h" |
||||
#include "../common/common.h" |
||||
|
||||
#include <stdlib.h> |
||||
#include <string.h> |
@ -1,8 +1,8 @@ |
||||
#ifndef ENTITY_H |
||||
#define ENTITY_H |
||||
|
||||
#include "linmath.h" |
||||
#include "num_types.h" |
||||
#include "../common/linmath.h" |
||||
#include "../common/num_types.h" |
||||
|
||||
#define MAX_ENTITY_NAME_LEN 128 |
||||
#define MAX_SOUND_SOURCE_BUFFERS 5 |
@ -1,7 +1,7 @@ |
||||
#include "framebuffer.h" |
||||
#include "array.h" |
||||
#include "../common/array.h" |
||||
#include "renderer.h" |
||||
#include "log.h" |
||||
#include "../common/log.h" |
||||
#include "texture.h" |
||||
#include "gl_load.h" |
||||
|
@ -1,7 +1,7 @@ |
||||
#ifndef framebuffer_H |
||||
#define framebuffer_H |
||||
#ifndef FRAMEBUFFER_H |
||||
#define FRAMEBUFFER_H |
||||
|
||||
#include "num_types.h" |
||||
#include "../common/num_types.h" |
||||
|
||||
enum Framebuffer_Attachment |
||||
{ |
@ -1,10 +1,10 @@ |
||||
#include "geometry.h" |
||||
#include "array.h" |
||||
#include "string_utils.h" |
||||
#include "log.h" |
||||
#include "../common/array.h" |
||||
#include "../common/string_utils.h" |
||||
#include "../common/log.h" |
||||
#include "renderer.h" |
||||
#include "transform.h" |
||||
#include "common.h" |
||||
#include "../common/common.h" |
||||
#include "gl_load.h" |
||||
|
||||
#include <stdlib.h> |
@ -1,8 +1,8 @@ |
||||
#ifndef GEOMETRY_H |
||||
#define GEOMETRY_H |
||||
|
||||
#include "num_types.h" |
||||
#include "linmath.h" |
||||
#include "../common/num_types.h" |
||||
#include "../common/linmath.h" |
||||
#include "bounding_volumes.h" |
||||
|
||||
struct Entity; |
@ -1,6 +1,6 @@ |
||||
#include "gl_load.h" |
||||
#include "log.h" |
||||
#include "common.h" |
||||
#include "../common/log.h" |
||||
#include "../common/common.h" |
||||
|
||||
|
||||
#ifndef USE_GLAD |
@ -1,14 +1,14 @@ |
||||
#define NK_IMPLEMENTATION |
||||
#include "gui.h" |
||||
#include "linmath.h" |
||||
#include "log.h" |
||||
#include "../common/linmath.h" |
||||
#include "../common/log.h" |
||||
#include "shader.h" |
||||
#include "texture.h" |
||||
#include "game.h" |
||||
#include "input.h" |
||||
#include "renderer.h" |
||||
#include "string_utils.h" |
||||
#include "common.h" |
||||
#include "../common/string_utils.h" |
||||
#include "../common/common.h" |
||||
|
||||
#include <string.h> |
||||
#include <stdlib.h> |
@ -1,5 +1,5 @@ |
||||
#include "light.h" |
||||
#include "array.h" |
||||
#include "../common/array.h" |
||||
#include "entity.h" |
||||
|
||||
#include <assert.h> |
@ -1,8 +1,8 @@ |
||||
#ifndef MATERIAL_H |
||||
#define MATERIAL_H |
||||
|
||||
#include "linmath.h" |
||||
#include "num_types.h" |
||||
#include "../common/linmath.h" |
||||
#include "../common/num_types.h" |
||||
|
||||
struct Entity; |
||||
|
@ -1,6 +1,6 @@ |
||||
#include "model.h" |
||||
#include "array.h" |
||||
#include "log.h" |
||||
#include "../common/array.h" |
||||
#include "../common/log.h" |
||||
#include "entity.h" |
||||
#include "texture.h" |
||||
#include "material.h" |
@ -1,7 +1,7 @@ |
||||
#ifndef MODEL_H |
||||
#define MODEL_H |
||||
|
||||
#include "linmath.h" |
||||
#include "../common/linmath.h" |
||||
|
||||
struct Entity; |
||||
|
@ -1,25 +1,25 @@ |
||||
#include "renderer.h" |
||||
#include "gl_load.h" |
||||
|
||||
#include "log.h" |
||||
#include "../common/log.h" |
||||
#include "camera.h" |
||||
#include "model.h" |
||||
#include "texture.h" |
||||
#include "framebuffer.h" |
||||
#include "array.h" |
||||
#include "../common/array.h" |
||||
#include "shader.h" |
||||
#include "num_types.h" |
||||
#include "../common/num_types.h" |
||||
#include "light.h" |
||||
#include "entity.h" |
||||
#include "transform.h" |
||||
#include "game.h" |
||||
#include "gui.h" |
||||
#include "hashmap.h" |
||||
#include "../common/hashmap.h" |
||||
#include "geometry.h" |
||||
#include "material.h" |
||||
#include "editor.h" |
||||
#include "variant.h" |
||||
#include "common.h" |
||||
#include "../common/variant.h" |
||||
#include "../common/common.h" |
||||
|
||||
#include <string.h> |
||||
#include <stdio.h> |
@ -1,8 +1,8 @@ |
||||
#ifndef RENDERER_H |
||||
#define RENDERER_H |
||||
|
||||
#include "linmath.h" |
||||
#include "num_types.h" |
||||
#include "../common/linmath.h" |
||||
#include "../common/num_types.h" |
||||
|
||||
enum Fog_Mode |
||||
{ |
@ -1,9 +1,9 @@ |
||||
#include "scene.h" |
||||
#include "array.h" |
||||
#include "../common/array.h" |
||||
#include "entity.h" |
||||
#include "log.h" |
||||
#include "../common/log.h" |
||||
#include "transform.h" |
||||
#include "common.h" |
||||
#include "../common/common.h" |
||||
|
||||
#include <assert.h> |
||||
#include <string.h> |
@ -1,7 +1,7 @@ |
||||
#ifndef SCENE_H |
||||
#define SCENE_H |
||||
|
||||
#include "num_types.h" |
||||
#include "../common/num_types.h" |
||||
|
||||
struct Entity; |
||||
|
@ -1,12 +1,12 @@ |
||||
#include "shader.h" |
||||
#include "array.h" |
||||
#include "num_types.h" |
||||
#include "string_utils.h" |
||||
#include "log.h" |
||||
#include "../common/array.h" |
||||
#include "../common/num_types.h" |
||||
#include "../common/string_utils.h" |
||||
#include "../common/log.h" |
||||
#include "renderer.h" |
||||
#include "texture.h" |
||||
#include "gl_load.h" |
||||
#include "common.h" |
||||
#include "../common/common.h" |
||||
|
||||
#include <stdio.h> |
||||
#include <stdlib.h> |
@ -1,7 +1,7 @@ |
||||
#ifndef shader_H |
||||
#define shader_H |
||||
#ifndef SHADER_H |
||||
#define SHADER_H |
||||
|
||||
#include "linmath.h" |
||||
#include "../common/linmath.h" |
||||
|
||||
enum Uniform_Type |
||||
{ |
@ -1,11 +1,11 @@ |
||||
#include "texture.h" |
||||
#include "array.h" |
||||
#include "string_utils.h" |
||||
#include "log.h" |
||||
#include "num_types.h" |
||||
#include "../common/array.h" |
||||
#include "../common/string_utils.h" |
||||
#include "../common/log.h" |
||||
#include "../common/num_types.h" |
||||
#include "renderer.h" |
||||
#include "gl_load.h" |
||||
#include "common.h" |
||||
#include "../common/common.h" |
||||
|
||||
#include <assert.h> |
||||
#include <string.h> |
@ -1,5 +1,5 @@ |
||||
#ifndef texture_H |
||||
#define texture_H |
||||
#ifndef TEXTURE_H |
||||
#define TEXTURE_H |
||||
|
||||
enum Texture_Unit |
||||
{ |
@ -1,8 +1,8 @@ |
||||
#include "transform.h" |
||||
#include "log.h" |
||||
#include "array.h" |
||||
#include "../common/log.h" |
||||
#include "../common/array.h" |
||||
#include "entity.h" |
||||
#include "utils.h" |
||||
#include "../common/utils.h" |
||||
#include <assert.h> |
||||
|
||||
void transform_create(struct Entity* entity, int parent_entity) |
@ -1,8 +1,8 @@ |
||||
#ifndef TRANSFORM_H |
||||
#define TRANSFORM_H |
||||
|
||||
#include "linmath.h" |
||||
#include "num_types.h" |
||||
#include "../common/linmath.h" |
||||
#include "../common/num_types.h" |
||||
|
||||
enum Transform_Space { TS_LOCAL, TS_PARENT, TS_WORLD}; |
||||
|
Loading…
Reference in new issue