Skip to content

Commit

Permalink
Now using ctod to port external libs! sdefl is the first one. Also moved
Browse files Browse the repository at this point in the history
the raylib directory to raylibc, since dub somewhat inexplicably
includes the project directory for imports, and that confuses the import
paths.
  • Loading branch information
schveiguy committed Oct 12, 2022
1 parent 839b6d5 commit 9b04409
Show file tree
Hide file tree
Showing 144 changed files with 622 additions and 27 deletions.
2 changes: 1 addition & 1 deletion dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"buildOptions" : [ "betterC" ],
"extraDependencyFiles": [ "raylib/*.o" ],
"dflags": [
"raylib/raudio.o", "raylib/rglfw.o", "raylib/rshapes.o", "raylib/rtextures.o", "raylib/rcore.o", "raylib/rmodels.o", "raylib/rtext.o", "raylib/utils.o"
"raylibc/raudio.o", "raylibc/rglfw.o", "raylibc/rshapes.o", "raylibc/rtextures.o", "raylibc/rcore.o", "raylibc/rmodels.o", "raylibc/rtext.o", "raylibc/utils.o"
],
"versions": [
"GLFW_33"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion raylib/Makefile → raylibc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ RAYLIB_VERSION = 4.0.0
RAYLIB_API_VERSION = 400

# Define raylib source code path
RAYLIB_SRC_PATH ?= ../raylib
RAYLIB_SRC_PATH ?= ../raylibc

# Define output directory for compiled library, defaults to src directory
# NOTE: If externally provided, make sure directory exists
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions raylib/rcore.c → raylibc/rcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,9 @@
#define SINFL_NO_SIMD
#include "external/sinfl.h" // Deflate (RFC 1951) decompressor

#define SDEFL_IMPLEMENTATION
#include "external/sdefl.h" // Deflate (RFC 1951) compressor
// in D now
//#define SDEFL_IMPLEMENTATION
//#include "external/sdefl.h" // Deflate (RFC 1951) compressor
#endif

#if (defined(__linux__) || defined(PLATFORM_WEB)) && _POSIX_C_SOURCE < 199309L
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 9b04409

Please sign in to comment.