Skip to content

Commit 4611922

Browse files
committed
Move all thirdparty deps to thirdparty/ folder
1 parent 3f587a7 commit 4611922

173 files changed

Lines changed: 40 additions & 38 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

nob.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#include <errno.h>
88

99
#define NOB_IMPLEMENTATION
10+
#define NOB_STRIP_PREFIX
11+
#define NOB_EXPERIMENTAL_DELETE_OLD
1012
#include "./nob.h"
1113
#include "./src_build/configurer.c"
1214

src/plug.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#include "ffmpeg.h"
1212
#define NOB_IMPLEMENTATION
1313
#define NOB_STRIP_PREFIX
14-
#include "nob.h"
15-
#include "tinyfiledialogs.h"
14+
#include "thirdparty/nob.h"
15+
#include "thirdparty/tinyfiledialogs.h"
1616

1717
#include <raylib.h>
1818
#include <rlgl.h>

src_build/nob_linux.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ bool build_musializer(void)
1111
// Like `clang` for instance
1212
nob_cmd_append(&cmd, "cc",
1313
"-Wall", "-Wextra", "-ggdb",
14-
"-I.", "-I./raylib/raylib-"RAYLIB_VERSION"/src/",
14+
"-I.", "-I./thirdparty/raylib-"RAYLIB_VERSION"/src/",
1515
"-fPIC", "-shared",
1616
"-o", "./build/libplug.so",
17-
"./src/plug.c", "./src/ffmpeg_posix.c", "./src/tinyfiledialogs.c",
17+
"./src/plug.c", "./src/ffmpeg_posix.c", "./thirdparty/tinyfiledialogs.c",
1818
nob_temp_sprintf("-L./build/raylib/%s", MUSIALIZER_TARGET_NAME), "-l:libraylib.so",
1919
"-O3", "-march=native", "-ffast-math",
2020
"-lm", "-ldl", "-flto=auto", "-lpthread");
2121
nob_da_append(&procs, nob_cmd_run_async_and_reset(&cmd));
2222

2323
nob_cmd_append(&cmd, "cc",
2424
"-Wall", "-Wextra", "-ggdb",
25-
"-I.", "-I./raylib/raylib-"RAYLIB_VERSION"/src/",
25+
"-I.", "-I./thirdparty/raylib-"RAYLIB_VERSION"/src/",
2626
"-o", "./build/musializer",
2727
"./src/musializer.c", "./src/hotreload_posix.c",
2828
"-Wl,-rpath=./build/",
@@ -40,9 +40,9 @@ bool build_musializer(void)
4040
nob_cmd_append(&cmd, "cc",
4141
"-Wall", "-Wextra", "-ggdb",
4242
"-I.",
43-
"-I./raylib/raylib-"RAYLIB_VERSION"/src/",
43+
"-I./thirdparty/raylib-"RAYLIB_VERSION"/src/",
4444
"-o", "./build/musializer",
45-
"./src/plug.c", "./src/ffmpeg_posix.c", "./src/musializer.c", "./src/tinyfiledialogs.c",
45+
"./src/plug.c", "./src/ffmpeg_posix.c", "./src/musializer.c", "./thirdparty/tinyfiledialogs.c",
4646
nob_temp_sprintf("-L./build/raylib/%s", MUSIALIZER_TARGET_NAME), "-l:libraylib.a",
4747
"-O3", "-march=native", "-ffast-math",
4848
"-lm", "-ldl", "-flto=auto", "-lpthread");
@@ -74,7 +74,7 @@ bool build_raylib(void)
7474
}
7575

7676
for (size_t i = 0; i < NOB_ARRAY_LEN(raylib_modules); ++i) {
77-
const char *input_path = nob_temp_sprintf("./raylib/raylib-"RAYLIB_VERSION"/src/%s.c", raylib_modules[i]);
77+
const char *input_path = nob_temp_sprintf("./thirdparty/raylib-"RAYLIB_VERSION"/src/%s.c", raylib_modules[i]);
7878
const char *output_path = nob_temp_sprintf("%s/%s.o", build_path, raylib_modules[i]);
7979
output_path = nob_temp_sprintf("%s/%s.o", build_path, raylib_modules[i]);
8080

@@ -83,7 +83,7 @@ bool build_raylib(void)
8383
if (nob_needs_rebuild(output_path, &input_path, 1)) {
8484
nob_cmd_append(&cmd, "cc",
8585
"-ggdb", "-DPLATFORM_DESKTOP", "-D_GLFW_X11", "-fPIC", "-DSUPPORT_FILEFORMAT_FLAC=1",
86-
"-I./raylib/raylib-"RAYLIB_VERSION"/src/external/glfw/include",
86+
"-I./thirdparty/raylib-"RAYLIB_VERSION"/src/external/glfw/include",
8787
"-c", input_path,
8888
"-o", output_path);
8989
nob_da_append(&procs, nob_cmd_run_async_and_reset(&cmd));

src_build/nob_macos.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ bool build_musializer(void)
1616
nob_cmd_append(&cmd, "clang");
1717
nob_cmd_append(&cmd, "-Wall", "-Wextra", "-g");
1818
nob_cmd_append(&cmd, "-I.");
19-
nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/");
19+
nob_cmd_append(&cmd, "-I./thirdparty/raylib-"RAYLIB_VERSION"/src/");
2020
nob_cmd_append(&cmd, "-fPIC", "-shared");
2121
nob_cmd_append(&cmd, "-o", "./build/libplug.dylib");
2222
nob_cmd_append(&cmd,
2323
"./src/plug.c",
2424
"./src/ffmpeg_posix.c",
25-
"./src/tinyfiledialogs.c");
25+
"./thirdparty/tinyfiledialogs.c");
2626
nob_cmd_append(&cmd, "./build/raylib/macos/libraylib.dylib");
2727
nob_cmd_append(&cmd, "-lm", "-ldl", "-lpthread");
2828
nob_da_append(&procs, nob_cmd_run_async(cmd));
@@ -31,7 +31,7 @@ bool build_musializer(void)
3131
nob_cmd_append(&cmd, "clang");
3232
nob_cmd_append(&cmd, "-Wall", "-Wextra", "-g");
3333
nob_cmd_append(&cmd, "-I.");
34-
nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/");
34+
nob_cmd_append(&cmd, "-I./thirdparty/raylib-"RAYLIB_VERSION"/src/");
3535
nob_cmd_append(&cmd, "-o", "./build/musializer");
3636
nob_cmd_append(&cmd,
3737
"./src/musializer.c",
@@ -49,13 +49,13 @@ bool build_musializer(void)
4949
nob_cmd_append(&cmd, "clang");
5050
nob_cmd_append(&cmd, "-Wall", "-Wextra", "-g");
5151
nob_cmd_append(&cmd, "-I.");
52-
nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/");
52+
nob_cmd_append(&cmd, "-I./thirdparty/raylib-"RAYLIB_VERSION"/src/");
5353
nob_cmd_append(&cmd, "-o", "./build/musializer");
5454
nob_cmd_append(&cmd,
5555
"./src/plug.c",
5656
"./src/ffmpeg_posix.c",
5757
"./src/musializer.c",
58-
"./src/tinyfiledialogs.c");
58+
"./thirdparty/tinyfiledialogs.c");
5959
nob_cmd_append(&cmd, "./build/raylib/macos/libraylib.a");
6060

6161
nob_cmd_append(&cmd, "-framework", "CoreVideo");
@@ -93,7 +93,7 @@ bool build_raylib(void)
9393
}
9494

9595
for (size_t i = 0; i < NOB_ARRAY_LEN(raylib_modules); ++i) {
96-
const char *input_path = nob_temp_sprintf("./raylib/raylib-"RAYLIB_VERSION"/src/%s.c", raylib_modules[i]);
96+
const char *input_path = nob_temp_sprintf("./thirdparty/raylib-"RAYLIB_VERSION"/src/%s.c", raylib_modules[i]);
9797
const char *output_path = nob_temp_sprintf("%s/%s.o", build_path, raylib_modules[i]);
9898

9999
nob_da_append(&object_files, output_path);
@@ -102,7 +102,7 @@ bool build_raylib(void)
102102
cmd.count = 0;
103103
nob_cmd_append(&cmd, "clang");
104104
nob_cmd_append(&cmd, "-g", "-DPLATFORM_DESKTOP", "-fPIC", "-DSUPPORT_FILEFORMAT_FLAC=1");
105-
nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/external/glfw/include");
105+
nob_cmd_append(&cmd, "-I./thirdparty/raylib-"RAYLIB_VERSION"/src/external/glfw/include");
106106
nob_cmd_append(&cmd, "-Iexternal/glfw/deps/ming");
107107
nob_cmd_append(&cmd, "-DGRAPHICS_API_OPENGL_33");
108108
if(strcmp(raylib_modules[i], "rglfw") == 0) {

src_build/nob_openbsd.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ bool build_musializer(void)
1414
nob_cmd_append(&cmd, "cc");
1515
nob_cmd_append(&cmd, "-Wall", "-Wextra", "-ggdb");
1616
nob_cmd_append(&cmd, "-I.");
17-
nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/");
17+
nob_cmd_append(&cmd, "-I./thirdparty/raylib-"RAYLIB_VERSION"/src/");
1818
nob_cmd_append(&cmd, "-fPIC", "-shared");
1919
nob_cmd_append(&cmd, "-o", "./build/libplug.so");
20-
nob_cmd_append(&cmd, "./src/tinyfiledialogs.c");
20+
nob_cmd_append(&cmd, "./thirdparty/tinyfiledialogs.c");
2121
nob_cmd_append(&cmd,
2222
"./src/plug.c",
2323
"./src/ffmpeg_posix.c");
@@ -31,7 +31,7 @@ bool build_musializer(void)
3131
nob_cmd_append(&cmd, "cc");
3232
nob_cmd_append(&cmd, "-Wall", "-Wextra", "-ggdb");
3333
nob_cmd_append(&cmd, "-I.");
34-
nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/");
34+
nob_cmd_append(&cmd, "-I./thirdparty/raylib-"RAYLIB_VERSION"/src/");
3535
nob_cmd_append(&cmd, "-o", "./build/musializer");
3636
nob_cmd_append(&cmd,
3737
"./src/musializer.c",
@@ -53,9 +53,9 @@ bool build_musializer(void)
5353
nob_cmd_append(&cmd, "cc");
5454
nob_cmd_append(&cmd, "-Wall", "-Wextra", "-ggdb");
5555
nob_cmd_append(&cmd, "-I.");
56-
nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/");
56+
nob_cmd_append(&cmd, "-I./thirdparty/raylib-"RAYLIB_VERSION"/src/");
5757
nob_cmd_append(&cmd, "-o", "./build/musializer");
58-
nob_cmd_append(&cmd, "./src/tinyfiledialogs.c");
58+
nob_cmd_append(&cmd, "./thirdparty/tinyfiledialogs.c");
5959
nob_cmd_append(&cmd,
6060
"./src/plug.c",
6161
"./src/ffmpeg_posix.c",
@@ -92,7 +92,7 @@ bool build_raylib(void)
9292
}
9393

9494
for (size_t i = 0; i < NOB_ARRAY_LEN(raylib_modules); ++i) {
95-
const char *input_path = nob_temp_sprintf("./raylib/raylib-"RAYLIB_VERSION"/src/%s.c", raylib_modules[i]);
95+
const char *input_path = nob_temp_sprintf("./thirdparty/raylib-"RAYLIB_VERSION"/src/%s.c", raylib_modules[i]);
9696
const char *output_path = nob_temp_sprintf("%s/%s.o", build_path, raylib_modules[i]);
9797
output_path = nob_temp_sprintf("%s/%s.o", build_path, raylib_modules[i]);
9898

@@ -103,7 +103,7 @@ bool build_raylib(void)
103103
nob_cmd_append(&cmd, "cc");
104104
nob_cmd_append(&cmd, "-w");
105105
nob_cmd_append(&cmd, "-ggdb", "-DPLATFORM_DESKTOP", "-fPIC", "-DSUPPORT_FILEFORMAT_FLAC=1");
106-
nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/external/glfw/include");
106+
nob_cmd_append(&cmd, "-I./thirdparty/raylib-"RAYLIB_VERSION"/src/external/glfw/include");
107107
nob_cmd_append(&cmd, "-c", input_path);
108108
nob_cmd_append(&cmd, "-o", output_path);
109109
nob_cmd_append(&cmd, "-I/usr/X11R6/include");

src_build/nob_stage2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <stdbool.h>
22

33
#define NOB_IMPLEMENTATION
4-
#include "../nob.h"
4+
#include "../thirdparty/nob.h"
55
#include "../build/config.h"
66
#include "./configurer.c"
77

src_build/nob_win64_mingw.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ bool build_musializer(void)
2626
nob_cmd_append(&cmd, "x86_64-w64-mingw32-gcc");
2727
nob_cmd_append(&cmd, "-mwindows", "-Wall", "-Wextra", "-ggdb");
2828
nob_cmd_append(&cmd, "-I.");
29-
nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/");
29+
nob_cmd_append(&cmd, "-I./thirdparty/raylib-"RAYLIB_VERSION"/src/");
3030
nob_cmd_append(&cmd, "-fPIC", "-shared");
3131
nob_cmd_append(&cmd, "-static-libgcc");
3232
nob_cmd_append(&cmd, "-o", "./build/libplug.dll");
3333
nob_cmd_append(&cmd,
3434
"./src/plug.c",
3535
"./src/ffmpeg_windows.c",
36-
"./src/tinyfiledialogs.c");
36+
"./thirdparty/tinyfiledialogs.c");
3737
nob_cmd_append(&cmd,
3838
"-L./build",
3939
"-l:raylib.dll");
@@ -44,7 +44,7 @@ bool build_musializer(void)
4444
nob_cmd_append(&cmd, "x86_64-w64-mingw32-gcc");
4545
nob_cmd_append(&cmd, "-mwindows", "-Wall", "-Wextra", "-ggdb");
4646
nob_cmd_append(&cmd, "-I.");
47-
nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/");
47+
nob_cmd_append(&cmd, "-I./thirdparty/raylib-"RAYLIB_VERSION"/src/");
4848
nob_cmd_append(&cmd, "-o", "./build/musializer");
4949
nob_cmd_append(&cmd,
5050
"./src/musializer.c",
@@ -66,13 +66,13 @@ bool build_musializer(void)
6666
nob_cmd_append(&cmd, "x86_64-w64-mingw32-gcc");
6767
nob_cmd_append(&cmd, "-mwindows", "-Wall", "-Wextra", "-ggdb");
6868
nob_cmd_append(&cmd, "-I.");
69-
nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/");
69+
nob_cmd_append(&cmd, "-I./thirdparty/raylib-"RAYLIB_VERSION"/src/");
7070
nob_cmd_append(&cmd, "-o", "./build/musializer");
7171
nob_cmd_append(&cmd,
7272
"./src/plug.c",
7373
"./src/ffmpeg_windows.c",
7474
"./src/musializer.c",
75-
"./src/tinyfiledialogs.c",
75+
"./thirdparty/tinyfiledialogs.c",
7676
"./build/musializer.res"
7777
);
7878
nob_cmd_append(&cmd,
@@ -108,7 +108,7 @@ bool build_raylib()
108108
}
109109

110110
for (size_t i = 0; i < NOB_ARRAY_LEN(raylib_modules); ++i) {
111-
const char *input_path = nob_temp_sprintf("./raylib/raylib-"RAYLIB_VERSION"/src/%s.c", raylib_modules[i]);
111+
const char *input_path = nob_temp_sprintf("./thirdparty/raylib-"RAYLIB_VERSION"/src/%s.c", raylib_modules[i]);
112112
const char *output_path = nob_temp_sprintf("%s/%s.o", build_path, raylib_modules[i]);
113113
output_path = nob_temp_sprintf("%s/%s.o", build_path, raylib_modules[i]);
114114

@@ -120,7 +120,7 @@ bool build_raylib()
120120
nob_cmd_append(&cmd, "-ggdb", "-DPLATFORM_DESKTOP", "-fPIC", "-DSUPPORT_FILEFORMAT_FLAC=1");
121121
nob_cmd_append(&cmd, "-DPLATFORM_DESKTOP");
122122
nob_cmd_append(&cmd, "-fPIC");
123-
nob_cmd_append(&cmd, "-I./raylib/raylib-"RAYLIB_VERSION"/src/external/glfw/include");
123+
nob_cmd_append(&cmd, "-I./thirdparty/raylib-"RAYLIB_VERSION"/src/external/glfw/include");
124124
nob_cmd_append(&cmd, "-c", input_path);
125125
nob_cmd_append(&cmd, "-o", output_path);
126126

src_build/nob_win64_msvc.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ bool build_musializer(void)
2020
nob_cmd_append(&cmd, "/LD");
2121
nob_cmd_append(&cmd, "/Fobuild\\", "/Fe./build/libplug.dll");
2222
nob_cmd_append(&cmd, "/I", "./");
23-
nob_cmd_append(&cmd, "/I", "./raylib/raylib-"RAYLIB_VERSION"/src/");
23+
nob_cmd_append(&cmd, "/I", "./thirdparty/raylib-"RAYLIB_VERSION"/src/");
2424
nob_cmd_append(&cmd,
2525
"src/plug.c",
2626
"src/ffmpeg_windows.c",
27-
"./src/tinyfiledialogs.c");
27+
"./thirdparty/tinyfiledialogs.c");
2828
nob_cmd_append(&cmd,
2929
"/link",
3030
nob_temp_sprintf("/LIBPATH:build/raylib/%s", MUSIALIZER_TARGET_NAME),
@@ -35,7 +35,7 @@ bool build_musializer(void)
3535
cmd.count = 0;
3636
nob_cmd_append(&cmd, "cl.exe");
3737
nob_cmd_append(&cmd, "/I", "./");
38-
nob_cmd_append(&cmd, "/I", "./raylib/raylib-"RAYLIB_VERSION"/src/");
38+
nob_cmd_append(&cmd, "/I", "./thirdparty/raylib-"RAYLIB_VERSION"/src/");
3939
nob_cmd_append(&cmd, "/Fobuild\\", "/Febuild\\musializer.exe");
4040
nob_cmd_append(&cmd,
4141
"./src/musializer.c",
@@ -54,13 +54,13 @@ bool build_musializer(void)
5454
cmd.count = 0;
5555
nob_cmd_append(&cmd, "cl.exe");
5656
nob_cmd_append(&cmd, "/I", "./");
57-
nob_cmd_append(&cmd, "/I", "./raylib/raylib-"RAYLIB_VERSION"/src/");
57+
nob_cmd_append(&cmd, "/I", "./thirdparty/raylib-"RAYLIB_VERSION"/src/");
5858
nob_cmd_append(&cmd, "/Fobuild\\", "/Febuild\\musializer.exe");
5959
nob_cmd_append(&cmd,
6060
"./src/musializer.c",
6161
"./src/plug.c",
6262
"./src/ffmpeg_windows.c",
63-
"./src/tinyfiledialogs.c");
63+
"./thirdparty/tinyfiledialogs.c");
6464
nob_cmd_append(&cmd,
6565
"/link",
6666
"/SUBSYSTEM:WINDOWS",
@@ -98,7 +98,7 @@ bool build_raylib(void)
9898
}
9999

100100
for (size_t i = 0; i < NOB_ARRAY_LEN(raylib_modules); ++i) {
101-
const char *input_path = nob_temp_sprintf("./raylib/raylib-"RAYLIB_VERSION"/src/%s.c", raylib_modules[i]);
101+
const char *input_path = nob_temp_sprintf("./thirdparty/raylib-"RAYLIB_VERSION"/src/%s.c", raylib_modules[i]);
102102
const char *output_path = nob_temp_sprintf("%s/%s.obj", build_path, raylib_modules[i]);
103103

104104
nob_da_append(&object_files, output_path);
@@ -109,7 +109,7 @@ bool build_raylib(void)
109109
#ifdef MUSIALIZER_HOTRELOAD
110110
nob_cmd_append(&cmd, "/DBUILD_LIBTYPE_SHARED");
111111
#endif
112-
nob_cmd_append(&cmd, "/I", "./raylib/raylib-"RAYLIB_VERSION"/src/external/glfw/include");
112+
nob_cmd_append(&cmd, "/I", "./thirdparty/raylib-"RAYLIB_VERSION"/src/external/glfw/include");
113113
nob_cmd_append(&cmd, "/c", input_path);
114114
nob_cmd_append(&cmd, nob_temp_sprintf("/Fo%s", output_path));
115115
Nob_Proc proc = nob_cmd_run_async(cmd);
File renamed without changes.

0 commit comments

Comments
 (0)