-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* starting adding qt project generation * update sample after running bin/qt5-petstore.sh * Add Project.mustache starter * Fix processOpts function * Write Project.mustache * Add prefix
- Loading branch information
1 parent
25a6a9d
commit d824999
Showing
6 changed files
with
110 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
modules/swagger-codegen/src/main/resources/qt5cpp/Project.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
QT += network | ||
|
||
HEADERS += \ | ||
# Models | ||
{{#models}} | ||
{{#model}} | ||
$${PWD}/{{classname}}.h \ | ||
{{/model}} | ||
{{/models}} | ||
# APIs | ||
{{#apiInfo}} | ||
{{#apis}} | ||
{{#operations}} | ||
$${PWD}/{{classname}}.h \ | ||
{{/operations}} | ||
{{/apis}} | ||
{{/apiInfo}} | ||
# Others | ||
$${PWD}/{{prefix}}Helpers.h \ | ||
$${PWD}/{{prefix}}HttpRequest.h \ | ||
$${PWD}/{{prefix}}ModelFactory.h \ | ||
$${PWD}/{{prefix}}Object.h | ||
|
||
SOURCES += \ | ||
# Models | ||
{{#models}} | ||
{{#model}} | ||
$${PWD}/{{classname}}.cpp \ | ||
{{/model}} | ||
{{/models}} | ||
# APIs | ||
{{#apiInfo}} | ||
{{#apis}} | ||
{{#operations}} | ||
$${PWD}/{{classname}}.cpp \ | ||
{{/operations}} | ||
{{/apis}} | ||
{{/apiInfo}} | ||
# Others | ||
$${PWD}/{{prefix}}Helpers.cpp \ | ||
$${PWD}/{{prefix}}HttpRequest.cpp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
QT += network | ||
|
||
HEADERS += \ | ||
# Models | ||
$${PWD}/SWGApiResponse.h \ | ||
$${PWD}/SWGCategory.h \ | ||
$${PWD}/SWGOrder.h \ | ||
$${PWD}/SWGPet.h \ | ||
$${PWD}/SWGTag.h \ | ||
$${PWD}/SWGUser.h \ | ||
# APIs | ||
$${PWD}/SWGPetApi.h \ | ||
$${PWD}/SWGStoreApi.h \ | ||
$${PWD}/SWGUserApi.h \ | ||
# Others | ||
$${PWD}/SWGHelpers.h \ | ||
$${PWD}/SWGHttpRequest.h \ | ||
$${PWD}/SWGModelFactory.h \ | ||
$${PWD}/SWGObject.h | ||
|
||
SOURCES += \ | ||
# Models | ||
$${PWD}/SWGApiResponse.cpp \ | ||
$${PWD}/SWGCategory.cpp \ | ||
$${PWD}/SWGOrder.cpp \ | ||
$${PWD}/SWGPet.cpp \ | ||
$${PWD}/SWGTag.cpp \ | ||
$${PWD}/SWGUser.cpp \ | ||
# APIs | ||
$${PWD}/SWGPetApi.cpp \ | ||
$${PWD}/SWGStoreApi.cpp \ | ||
$${PWD}/SWGUserApi.cpp \ | ||
# Others | ||
$${PWD}/SWGHelpers.cpp \ | ||
$${PWD}/SWGHttpRequest.cpp | ||
|