From 34cfdfa278d70753ae88ef9dba9abfbf9ca08a93 Mon Sep 17 00:00:00 2001 From: huangqinjin Date: Sat, 12 Oct 2024 18:04:25 +0800 Subject: [PATCH] test vcpkg manifest mode --- test/test-vcpkg.sh | 43 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/test/test-vcpkg.sh b/test/test-vcpkg.sh index 0205190..10ae30d 100755 --- a/test/test-vcpkg.sh +++ b/test/test-vcpkg.sh @@ -31,8 +31,9 @@ set(ENV{CXX} cl.exe) set(ENV{PATH} "${BIN}:\$ENV{PATH}") EOF -# Install dependencies. +# Install dependencies with classic mode. EXEC "" vcpkg install sqlite3:$ARCH-windows --overlay-triplets=. +EXEC "" file -E $VCPKG_ROOT/installed/$ARCH-windows/{,debug/}bin/sqlite3.{dll,pdb} # Create source files. cat >main.c </dev/null; then - EXEC "" file Debug/sqlite3.dll - EXEC "" file Release/sqlite3.dll + EXEC "" file -E a/{Debug,Release}/sqlite3.dll +fi + + +# Create project manifest file and configuration file. +cat >vcpkg.json <vcpkg-configuration.json </dev/null; then + EXEC "" file -E b/{Debug,Release}/sqlite3.dll fi