mirror of
https://github.com/MetaCubeX/subconverter.git
synced 2025-11-04 18:19:42 +08:00
Fix build scripts
This commit is contained in:
parent
3aeb379696
commit
33a5cfcb82
@ -76,9 +76,10 @@ FIND_PACKAGE(Rapidjson REQUIRED)
|
|||||||
INCLUDE_DIRECTORIES(${RAPIDJSON_INCLUDE_DIRS})
|
INCLUDE_DIRECTORIES(${RAPIDJSON_INCLUDE_DIRS})
|
||||||
|
|
||||||
PKG_CHECK_MODULES(YAML_CPP yaml-cpp>=0.6.3 REQUIRED)
|
PKG_CHECK_MODULES(YAML_CPP yaml-cpp>=0.6.3 REQUIRED)
|
||||||
|
FIND_LIBRARY(YAML_CPP_LIBRARY NAMES yaml-cpp yaml-cppd PATHS ${YAML_CPP_LIBRARY_DIRS})
|
||||||
LINK_DIRECTORIES(${YAML_CPP_LIBRARY_DIRS})
|
LINK_DIRECTORIES(${YAML_CPP_LIBRARY_DIRS})
|
||||||
INCLUDE_DIRECTORIES(${YAML_CPP_INCLUDE_DIRS})
|
INCLUDE_DIRECTORIES(${YAML_CPP_INCLUDE_DIRS})
|
||||||
TARGET_LINK_LIBRARIES(subconverter ${YAML_CPP_LIBRARIES})
|
TARGET_LINK_LIBRARIES(subconverter ${YAML_CPP_LIBRARY})
|
||||||
|
|
||||||
#IF(USING_STD_REGEX STREQUAL "ON")
|
#IF(USING_STD_REGEX STREQUAL "ON")
|
||||||
# ADD_DEFINITIONS(-DUSE_STD_REGEX)
|
# ADD_DEFINITIONS(-DUSE_STD_REGEX)
|
||||||
|
|||||||
@ -36,7 +36,7 @@ export PKG_CONFIG_PATH=/usr/lib64/pkgconfig
|
|||||||
cmake .
|
cmake .
|
||||||
make -j2
|
make -j2
|
||||||
rm subconverter
|
rm subconverter
|
||||||
g++ -o base/subconverter $(find CMakeFiles/subconverter.dir/src/ -name "*.o") -static -lpcre2-8 -levent -lyaml-cpp -L/usr/lib64 -lcurl -lnghttp2 -lmbedtls -lmbedcrypto -lmbedx509 -lz -lduktape -lduktape_module -O3 -s
|
g++ -o base/subconverter $(find CMakeFiles/subconverter.dir/src/ -name "*.o") -static -lpcre2-8 -levent -lyaml-cpp -L/usr/lib64 -lcurl -lmbedtls -lmbedcrypto -lmbedx509 -lz -lduktape -lduktape_module -O3 -s
|
||||||
|
|
||||||
cd base
|
cd base
|
||||||
chmod +rx subconverter
|
chmod +rx subconverter
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user