refactor: reorganize the file structure (#1266)

This commit is contained in:
leejet
2026-02-10 23:13:35 +08:00
committed by GitHub
parent 3296545090
commit 28ef93c0e1
51 changed files with 327 additions and 326 deletions

20
src/version.cpp Normal file
View File

@@ -0,0 +1,20 @@
#include "stable-diffusion.h"
#ifndef SDCPP_BUILD_COMMIT
#define SDCPP_BUILD_COMMIT unknown
#endif
#ifndef SDCPP_BUILD_VERSION
#define SDCPP_BUILD_VERSION unknown
#endif
#define STRINGIZE2(x) #x
#define STRINGIZE(x) STRINGIZE2(x)
const char* sd_commit(void) {
return STRINGIZE(SDCPP_BUILD_COMMIT);
}
const char* sd_version(void) {
return STRINGIZE(SDCPP_BUILD_VERSION);
}