remove conan.
This commit is contained in:
21
BuildRel.bat
21
BuildRel.bat
@@ -1,32 +1,23 @@
|
|||||||
@echo off
|
@echo off
|
||||||
setlocal enabledelayedexpansion
|
setlocal enabledelayedexpansion
|
||||||
|
|
||||||
where conan >nul 2>nul
|
where cmake >nul 2>nul
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
echo conan not installed, pip install conan
|
echo cmake not installed.
|
||||||
pause
|
pause
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
conan install . -s build_type=Release --build=missing
|
cmake -Bbuild -DCMAKE_TOOLCHAIN_FILE=%VCPKG_ROOT%\scripts\buildsystems\vcpkg.cmake -DCMAKE_BUILD_TYPE=Release
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
echo install package failed.
|
config failed.
|
||||||
pause
|
pause
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
call %~dp0build\Release\generators\conanbuild.bat
|
cmake --build build --config Release
|
||||||
cmake --preset=conan-release
|
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
echo config failed.
|
build failed.
|
||||||
cd ..
|
|
||||||
pause
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
cmake --build --preset=conan-release
|
|
||||||
if errorlevel 1 (
|
|
||||||
echo build failed.
|
|
||||||
cd ..
|
|
||||||
pause
|
pause
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|||||||
20
conanfile.py
20
conanfile.py
@@ -1,20 +0,0 @@
|
|||||||
from conan import ConanFile
|
|
||||||
import os
|
|
||||||
|
|
||||||
class CompressorRecipe(ConanFile):
|
|
||||||
|
|
||||||
settings = "os", "compiler", "build_type", "arch"
|
|
||||||
generators = "CMakeToolchain", "CMakeDeps"
|
|
||||||
|
|
||||||
def requirements(self):
|
|
||||||
self.requires("libcurl/8.18.0")
|
|
||||||
self.requires("openssl/3.6.1")
|
|
||||||
self.requires("xlnt/1.6.1", options={"shared": True})
|
|
||||||
self.requires("nlohmann_json/3.12.0")
|
|
||||||
self.requires("cli11/2.6.0")
|
|
||||||
self.requires("spdlog/1.17.0")
|
|
||||||
self.requires("fmt/12.1.0")
|
|
||||||
|
|
||||||
def layout(self):
|
|
||||||
self.folders.generators = os.path.join("build", str(self.settings.build_type), "generators")
|
|
||||||
self.folders.build = os.path.join("build", str(self.settings.build_type))
|
|
||||||
Reference in New Issue
Block a user