mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-11-01 14:22:32 +00:00
Add CMake support
Clean up file structure. Update build scripts.
This commit is contained in:
18
scripts/build.clang.sh
Normal file
18
scripts/build.clang.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
mkdir obj
|
||||
|
||||
set -xe
|
||||
|
||||
c++ -std=c++17 -D_MACOS -Wall -fexceptions -c logger.cpp -o obj/logger.o
|
||||
c++ -std=c++17 -D_MACOS -Wall -fexceptions -c main.cpp -o obj/main.o
|
||||
c++ -std=c++17 -D_MACOS -Wall -fexceptions -c misc.cpp -o obj/misc.o
|
||||
c++ -std=c++17 -D_MACOS -Wall -fexceptions -c multithread.cpp -o obj/multithread.o
|
||||
c++ -std=c++17 -D_MACOS -Wall -fexceptions -c nodemanip.cpp -o obj/nodemanip.o
|
||||
c++ -std=c++17 -D_MACOS -Wall -fexceptions -c rapidjson_extra.cpp -o obj/rapidjson_extra.o
|
||||
c++ -std=c++17 -D_MACOS -Wall -fexceptions -c speedtestutil.cpp -o obj/speedtestutil.o
|
||||
c++ -std=c++17 -D_MACOS -Wall -fexceptions -c subexport.cpp -o obj/subexport.o
|
||||
c++ -std=c++17 -D_MACOS -Wall -fexceptions -c webget.cpp -o obj/webget.o
|
||||
c++ -std=c++17 -D_MACOS -Wall -fexceptions -c webserver_libevent.cpp -o obj/webserver_libevent.o
|
||||
c++ -o subconverter obj/logger.o obj/main.o obj/misc.o obj/multithread.o obj/nodemanip.o obj/rapidjson_extra.o obj/speedtestutil.o obj/subexport.o obj/webget.o obj/webserver_libevent.o -lpcrecpp -lpcre -levent -lpthread -lyaml-cpp -lcurl -lssl -lcrypto -lz -O3 -s
|
||||
|
||||
chmod +x subconverter
|
||||
Reference in New Issue
Block a user