Skip to content

Commit 5af62b0

Browse files
committed
refactor: rename and update JSON extension components
- Renamed YYJSON to JSON throughout the codebase for consistency - Updated file names and references, including YYJSONManager to JsonManager - Added some new native functions
1 parent 2212b5f commit 5af62b0

File tree

19 files changed

+8433
-4571
lines changed

19 files changed

+8433
-4571
lines changed

AMBuildScript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ else:
678678
'extensions/tf2/AMBuilder',
679679
'extensions/topmenus/AMBuilder',
680680
'extensions/updater/AMBuilder',
681-
'extensions/yyjson/AMBuilder',
681+
'extensions/json/AMBuilder',
682682
]
683683

684684
if builder.backend == 'amb2':

extensions/yyjson/AMBuilder renamed to extensions/json/AMBuilder

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33

44
for cxx in builder.targets:
5-
binary = SM.ExtLibrary(builder, cxx, 'yyjson.ext')
5+
binary = SM.ExtLibrary(builder, cxx, 'json.ext')
66
if binary.compiler.family == 'gcc' or binary.compiler.family == 'clang':
77
binary.compiler.cxxflags += ['-fno-rtti']
88
binary.compiler.cflags += ['-fPIC']
@@ -14,13 +14,13 @@ for cxx in builder.targets:
1414
]
1515

1616
binary.compiler.cxxincludes += [
17-
os.path.join(builder.sourcePath, 'extensions', 'yyjson', 'yyjson'),
17+
os.path.join(builder.sourcePath, 'extensions', 'json', 'yyjson'),
1818
]
1919

2020
binary.sources += [
2121
'extension.cpp',
22-
'YYJSONManager.cpp',
23-
'json_natives.cpp',
22+
'JsonManager.cpp',
23+
'JsonNatives.cpp',
2424
'yyjson/yyjson.c',
2525
'../../public/smsdk_ext.cpp',
2626
]

0 commit comments

Comments
 (0)