can build llama server now

This commit is contained in:
Concedo
2026-06-14 15:06:37 +08:00
parent ea0351c71a
commit b809994360
4 changed files with 28 additions and 2 deletions
+1 -1
View File
@@ -730,7 +730,7 @@ otherarch/sdcpp/thirdparty/zip.o: otherarch/sdcpp/thirdparty/zip.c
OBJS_SDTYPE := otherarch/sdcpp/sdtype_adapter.o $(OBJS_SDCOMMON)
LLAMASERVER_SRCS := tools/server/main.cpp tools/server/server.cpp tools/server/server-chat.cpp tools/server/server-common.cpp tools/server/server-context.cpp tools/server/server-http.cpp tools/server/server-models.cpp tools/server/server-queue.cpp tools/server/server-task.cpp tools/server/server-tools.cpp
LLAMASERVER_SRCS := tools/server/main.cpp tools/server/server.cpp tools/server/server-chat.cpp tools/server/server-common.cpp tools/server/server-context.cpp tools/server/server-http.cpp tools/server/server-models.cpp tools/server/server-queue.cpp tools/server/server-task.cpp tools/server/server-tools.cpp tools/server/ui.cpp
LLAMASERVER_COMMON_SRCS := common/arg.cpp common/chat.cpp common/preset.cpp common/download.cpp vendor/cpp-httplib/httplib.cpp
LLAMASERVER_CXXFLAGS := -I./tools/mtmd
+1 -1
View File
@@ -1,7 +1,7 @@
#include "common.h"
#include "server-http.h"
#include "server-common.h"
// #include "ui.h"
#include "ui.h"
#include <cpp-httplib/httplib.h>
+10
View File
@@ -0,0 +1,10 @@
#include "ui.h"
const llama_ui_asset * llama_ui_find_asset(const std::string &) {
return nullptr;
}
const std::array<llama_ui_asset, 0> & llama_ui_get_assets() {
static const std::array<llama_ui_asset, 0> empty{};
return empty;
}
bool llama_ui_use_gzip() { return false; }
+16
View File
@@ -0,0 +1,16 @@
#pragma once
#include <array>
#include <string>
struct llama_ui_asset {
std::string name;
const unsigned char * data;
std::size_t size;
std::string etag;
std::string type;
};
const llama_ui_asset * llama_ui_find_asset(const std::string & name);
bool llama_ui_use_gzip();
const std::array<llama_ui_asset, 0> & llama_ui_get_assets();