mirror of
https://github.com/tribufu/sdk-cpp
synced 2025-06-15 19:54:20 +00:00
Generate project with openapi generator
This commit is contained in:
7
scripts/cmake.ps1
Normal file
7
scripts/cmake.ps1
Normal file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# cmake -G "Visual Studio 17 2022" -A x64
|
||||
|
||||
# cmake -B build -S . -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
|
||||
|
||||
cmake -G "Unix Makefiles"
|
@ -5,6 +5,6 @@ java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate `
|
||||
-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 `
|
||||
--additional-properties=packageName=tribufu++,apiPackage=tribufu.api,modelPackage=tribufu.models `
|
||||
--openapi-normalizer SET_TAGS_FOR_ALL_OPERATIONS=TribufuGenerated `
|
||||
--skip-validate-spec
|
||||
|
@ -1,10 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Linux (x64)
|
||||
make config=debug_linux-x64
|
||||
|
||||
# Linux (x86)
|
||||
make config=debug_linux-x86
|
||||
|
||||
# Linux (arm64)
|
||||
make config=debug_linux-arm64
|
||||
|
Reference in New Issue
Block a user