mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-28 12:22:37 +00:00
Fix compatibility with some non-standard ShadowsocksR subscription. Add local rulesets from ConnersHua, lhie1 and NobyDa. Add support for conversion of some nodes between Shadowsocks and ShadowsocksR format. Add some build scripts. Optimize default groups and rulesets. Optimize Gist uploader. Optimize codes and performance.
18 lines
904 B
Bash
18 lines
904 B
Bash
#!/bin/bash
|
|
mkdir obj
|
|
|
|
set -xe
|
|
|
|
c++ -D_MACOS -Wall -fexceptions -c logger.cpp -o obj/logger.o
|
|
c++ -D_MACOS -Wall -fexceptions -c main.cpp -o obj/main.o
|
|
c++ -D_MACOS -Wall -fexceptions -c misc.cpp -o obj/misc.o
|
|
c++ -D_MACOS -Wall -fexceptions -c nodemanip.cpp -o obj/nodemanip.o
|
|
c++ -D_MACOS -Wall -fexceptions -c rapidjson_extra.cpp -o obj/rapidjson_extra.o
|
|
c++ -D_MACOS -Wall -fexceptions -c speedtestutil.cpp -o obj/speedtestutil.o
|
|
c++ -D_MACOS -Wall -fexceptions -c subexport.cpp -o obj/subexport.o
|
|
c++ -D_MACOS -Wall -fexceptions -c webget.cpp -o obj/webget.o
|
|
c++ -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/nodemanip.o obj/rapidjson_extra.o obj/speedtestutil.o obj/subexport.o obj/webget.o obj/webserver_libevent.o -levent -lpthread -lyaml-cpp -lcurl -lssl -lcrypto -lz -O3 -s
|
|
|
|
chmod +x subconverter
|