Remove old files

This commit is contained in:
2025-05-26 22:46:28 -03:00
parent eb4d18d9d8
commit 306ba111bd
52 changed files with 494 additions and 990 deletions

View File

@ -1,3 +0,0 @@
#!/usr/bin/env sh
cbindgen --config ./config/cbindgen.toml --crate tribufu-native --output ./include/tribufu/native.h

10
scripts/generate.ps1 Normal file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env pwsh
java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate `
-i https://api.tribufu.com/openapi.json `
-g cpp-restsdk `
-o . `
--global-property apis,models,supportingFiles,apiDocs=false,modelDocs=false,apiTests=false,modelTests=false `
--additional-properties=packageName=tribufu,apiPackage=tribufu::api,modelPackage=tribufu::models `
--openapi-normalizer SET_TAGS_FOR_ALL_OPERATIONS=TribufuGenerated `
--skip-validate-spec

View File

@ -1,10 +1,10 @@
#!/usr/bin/env sh
# Linux (x86_64)
make config=debug_linux-x86_64
# Linux (x64)
make config=debug_linux-x64
# Linux (i686)
make config=debug_linux-i686
# Linux (x86)
make config=debug_linux-x86
# Linux (aarch64)
make config=debug_linux-aarch64
# Linux (arm64)
make config=debug_linux-arm64

View File

@ -1,8 +1,6 @@
#!/usr/bin/env pwsh
echo "Building for windows-x86_64"
cargo build --package tribufu-native --target x86_64-pc-windows-msvc
New-Item "bin/windows/x86_64" -ItemType Directory -Force
Remove-Item -Path "bin/windows/x86_64/*" -Force
Copy-Item -Path "target/x86_64-pc-windows-msvc/debug/tribufu_native.lib" -Destination "bin/windows/x86_64" -Force
msbuild /p:Configuration="debug" /p:Platform="windows-x86_64"
echo "Building for win-x64"
New-Item "bin/win-x64" -ItemType Directory -Force
Remove-Item -Path "bin/win-x64/*" -Force
msbuild /p:Configuration="debug" /p:Platform="win-x64"

View File

@ -1,3 +1,3 @@
@echo off
call .\vendor\MintakaCpp\vendor\premake-core\windows\premake5.exe vs2022
call .\vendor\premake-core\windows\premake5.exe vs2022

View File

@ -2,9 +2,9 @@
if [ "$(expr substr $(uname -s) 1 5)" = "Linux" ]
then
./vendor/MintakaCpp/vendor/premake-core/linux/premake5 gmake2
./vendor/premake-core/linux/premake5 gmake2
elif [ "$(uname)" = "Darwin" ]
then
./vendor/MintakaCpp/vendor/premake-core/mac/premake5 xcode4
./vendor/premake-core/mac/premake5 xcode4
fi