Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chukobyte committed Mar 23, 2024
1 parent 0085f8f commit 393f8bb
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ else ()
endif ()

add_library(${PROJECT_NAME} STATIC
seika/input.c
seika/input/input.c
seika/seika.c
seika/platform.c
seika/string.c
seika/math.c
seika/math/math.c
seika/memory.c

# seika/seika.c
Expand Down Expand Up @@ -68,7 +68,7 @@ add_library(${PROJECT_NAME} STATIC
# seika/ecs/ec_system.c
)

target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

#--- Dependencies ---#
include(Dependencies.cmake)
Expand Down Expand Up @@ -116,6 +116,6 @@ if (SK_IS_MAIN)
# Create seika test exe
# add_executable(${PROJECT_NAME}_test test/main.c)
# target_link_libraries(${PROJECT_NAME}_test ${PROJECT_NAME} unity)
add_executable(${PROJECT_NAME}_test test/new_main.c)
add_executable(${PROJECT_NAME}_test test/test.c)
target_link_libraries(${PROJECT_NAME}_test ${PROJECT_NAME} unity)
endif()
File renamed without changes.
2 changes: 1 addition & 1 deletion seika/input.h → seika/input/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
extern "C" {
#endif

#include "../seika/math.h"
#include "seika/math/math.h"

typedef int32 SkaInputDeviceIndex;
typedef uint32 SkaInputSubscriberHandle;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion seika/math.h → seika/math/math.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ extern "C" {

#include <cglm/cglm.h>

#include "defines.h"
#include "seika/defines.h"

#define SKA_PI 3.14159265358979323846f
#define SKA_RAD_2_DEG(RADIANS) ((RADIANS) * (180.0 / (f64)SKA_PI))
Expand Down
2 changes: 1 addition & 1 deletion seika/seika.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <glad/glad.h>

#include "flag_utils.h"
#include "sdl_input.h"
#include "input/sdl_input.h"
#include "seika/assert.h"

#define SKA_AUDIO_SOURCE_DEFAULT_WAV_SAMPLE_RATE 44100
Expand Down
2 changes: 1 addition & 1 deletion test/new_main.c → test/test.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <unity.h>

#include "../seika/input.h"
#include "seika/input/input.h"

#define RESOURCES_PATH "test/resources"
#define RESOURCES_PACK_PATH "test/resources/test.pck"
Expand Down

0 comments on commit 393f8bb

Please sign in to comment.