Skip to content

Commit

Permalink
Update: libonedrive
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleYang0531 committed Sep 28, 2024
1 parent f7a8b55 commit 8911920
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
16 changes: 8 additions & 8 deletions make
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ WHITE='\033[0m'
YELLOW='\033[0;33m'

# Compile
echo -e "${YELLOW}Compiling Sonolus Server using g++...${WHITE}"
g++ main.cpp -o sonolus\
-ldl -lpthread -lcrypto -lssl -ljsoncpp -std=c++14 -lz -g -w \
-DENABLE_SONOLUS -DENABLE_MYSQL -lmysqlclient -DENABLE_SQLITE -lsqlite3 -DENABLE_CURL -lcurl -DENABLE_ZIP -lzip
# echo -e "${YELLOW}Compiling Sonolus Server using g++...${WHITE}"
# g++ main.cpp -o sonolus\
# -ldl -lpthread -lcrypto -lssl -ljsoncpp -std=c++14 -lz -g -w \
# -DENABLE_SONOLUS -DENABLE_MYSQL -lmysqlclient -DENABLE_SQLITE -lsqlite3 -DENABLE_CURL -lcurl -DENABLE_ZIP -lzip
# echo -e "${YELLOW}Compiling libsonolush using g++...${WHITE}"
# g++ plugins/libsonolush/libsonolush.cpp -o plugins/libsonolush.so \
# -g -std=c++17 -fPIC -shared -w\
# -DENABLE_SONOLUS -DENABLE_MYSQL -DENABLE_SQLITE -DENABLE_CURL -DENABLE_ZIP
# echo -e "${YELLOW}Compiling libonedrive using g++...${WHITE}"
# g++ plugins/libonedrive/libonedrive.cpp -o plugins/libonedrive.so \
# -ldl -lpthread -lcrypto -lssl -ljsoncpp -std=c++17 -fPIC -shared -g -w\
# -DENABLE_SONOLUS -DENABLE_MYSQL -DENABLE_SQLITE -DENABLE_CURL -DENABLE_ZIP
echo -e "${YELLOW}Compiling libonedrive using g++...${WHITE}"
g++ plugins/libonedrive/libonedrive.cpp -o plugins/libonedrive.so \
-ldl -lpthread -lcrypto -lssl -ljsoncpp -std=c++17 -fPIC -shared -g -w\
-DENABLE_SONOLUS -DENABLE_MYSQL -DENABLE_SQLITE -DENABLE_CURL -DENABLE_ZIP
echo -e "${YELLOW}Done.${WHITE}"
echo -e ""
echo -e "You can type \`./sonolus serve\` to start your server."
1 change: 1 addition & 0 deletions modules/httpd.h
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,7 @@ void putRequest(client_conn& conn, int code, argvar argv) {
putRequest(conn, 500, __default_response);
send(conn, buffer.str());
exitRequest(conn);
return;
}
writeLog(LOG_LEVEL_DEBUG, "Valid Response Code!");

Expand Down
2 changes: 1 addition & 1 deletion plugins/libonedrive

0 comments on commit 8911920

Please sign in to comment.