fix(build): flatten vendor/yyjson to vendor/*.c so the release CLI finds it
scorpiox-cli-botplugin build enumerates sources under src/ and vendor/ one level deep, so a nested vendor/yyjson/ compiled nothing but src/ and every target failed on #include "yyjson.h". Same layout oss-memory uses. The Makefile's -I vendor and the -Ivendor/yyjson cflag go with it.
AuthorPico <picobot@scorpioplayer.com>
Date2026-11-14 01:18:23
Commit2b73de34
Parentsbf4a859b
Changed files
Makefile+2−2■■■■
vendor/yyjson-LICENSE.txt+21−0■■■■■
4 files+23−2
Diff
Makefile+2−2■■■■
index 62017d7..800ccac 100644
--- a/Makefile
+++ b/Makefile
@@ -25,8 +25,8 @@
2525
2626 CC ?= cc
2727 CFLAGS ?= -O2 -std=c99 -Wall -Wextra -pedantic -Wno-overlength-strings
28-CPPFLAGS = -I src -I vendor -I vendor/yyjson
29-SRCS = src/plugin_time.c src/timeutil.c src/tz.c vendor/yyjson/yyjson.c
28+CPPFLAGS = -I src -I vendor
29+SRCS = src/plugin_time.c src/timeutil.c src/tz.c vendor/yyjson.c
3030 HDRS = src/plugintime.h src/tz.h src/tzdata.h src/ui_html.h src/bot_theme_plugin.h
3131
3232 MUSL_CC ?= musl-gcc
vendor/yyjson-LICENSE.txt+21−0■■■■■
11new file mode 100644
index 0000000..d1ee097
--- /dev/null
+++ b/vendor/yyjson-LICENSE.txt
@@ -0,0 +1,21 @@
1+MIT License
2+
3+Copyright (c) 2020 YaoYuan <ibireme@gmail.com>
4+
5+Permission is hereby granted, free of charge, to any person obtaining a copy
6+of this software and associated documentation files (the "Software"), to deal
7+in the Software without restriction, including without limitation the rights
8+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+copies of the Software, and to permit persons to whom the Software is
10+furnished to do so, subject to the following conditions:
11+
12+The above copyright notice and this permission notice shall be included in all
13+copies or substantial portions of the Software.
14+
15+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+SOFTWARE.
vendor/yyjson.c+0−0■
11similarity index 100%
22rename from vendor/yyjson/yyjson.c
33rename to vendor/yyjson.c
vendor/yyjson.h+0−0■
11similarity index 100%
22rename from vendor/yyjson/yyjson.h
33rename to vendor/yyjson.h
44
Makefile+2−2■■■■
index 62017d7..800ccac 100644index 62017d7..800ccac 100644
--- a/Makefile--- a/Makefile
+++ b/Makefile+++ b/Makefile
@@ -25,8 +25,8 @@@@ -25,8 +25,8 @@
25 25
26 CC ?= cc26 CC ?= cc
27 CFLAGS ?= -O2 -std=c99 -Wall -Wextra -pedantic -Wno-overlength-strings27 CFLAGS ?= -O2 -std=c99 -Wall -Wextra -pedantic -Wno-overlength-strings
28-CPPFLAGS = -I src -I vendor -I vendor/yyjson28+CPPFLAGS = -I src -I vendor
29-SRCS = src/plugin_time.c src/timeutil.c src/tz.c vendor/yyjson/yyjson.c29+SRCS = src/plugin_time.c src/timeutil.c src/tz.c vendor/yyjson.c
30 HDRS = src/plugintime.h src/tz.h src/tzdata.h src/ui_html.h src/bot_theme_plugin.h30 HDRS = src/plugintime.h src/tz.h src/tzdata.h src/ui_html.h src/bot_theme_plugin.h
31 31
32 MUSL_CC ?= musl-gcc32 MUSL_CC ?= musl-gcc
vendor/yyjson-LICENSE.txt+21−0■■■■■
1new file mode 1006441new file mode 100644
index 0000000..d1ee097index 0000000..d1ee097
--- /dev/null--- /dev/null
+++ b/vendor/yyjson-LICENSE.txt+++ b/vendor/yyjson-LICENSE.txt
@@ -0,0 +1,21 @@@@ -0,0 +1,21 @@
1+MIT License
2+
3+Copyright (c) 2020 YaoYuan <ibireme@gmail.com>
4+
5+Permission is hereby granted, free of charge, to any person obtaining a copy
6+of this software and associated documentation files (the "Software"), to deal
7+in the Software without restriction, including without limitation the rights
8+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+copies of the Software, and to permit persons to whom the Software is
10+furnished to do so, subject to the following conditions:
11+
12+The above copyright notice and this permission notice shall be included in all
13+copies or substantial portions of the Software.
14+
15+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+SOFTWARE.
vendor/yyjson.c+0−0■
1similarity index 100%1similarity index 100%
2rename from vendor/yyjson/yyjson.c2rename from vendor/yyjson/yyjson.c
3rename to vendor/yyjson.c3rename to vendor/yyjson.c
vendor/yyjson.h+0−0■
1similarity index 100%1similarity index 100%
2rename from vendor/yyjson/yyjson.h2rename from vendor/yyjson/yyjson.h
3rename to vendor/yyjson.h3rename to vendor/yyjson.h
44