Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[qt5cpp] Generate project include file (*.pri) #7784

Closed
MartinDelille opened this issue Mar 7, 2018 · 3 comments · Fixed by #7799
Closed

[qt5cpp] Generate project include file (*.pri) #7784

MartinDelille opened this issue Mar 7, 2018 · 3 comments · Fixed by #7799

Comments

@MartinDelille
Copy link
Contributor

Description

This would be really nice to have the project include file generated! Example for the Pet store example:

QT += network

HEADERS += \
	$${PWD}/SWGApiResponse.h \
	$${PWD}/SWGCategory.h \
	$${PWD}/SWGHelpers.h \
	$${PWD}/SWGHttpRequest.h \
	$${PWD}/SWGModelFactory.h \
	$${PWD}/SWGObject.h \
	$${PWD}/SWGOrder.h \
	$${PWD}/SWGPet.h \
	$${PWD}/SWGPetApi.h \
	$${PWD}/SWGStoreApi.h \
	$${PWD}/SWGTag.h \
	$${PWD}/SWGUser.h \
	$${PWD}/SWGUserApi.h

SOURCES += \
	$${PWD}/SWGApiResponse.cpp \
	$${PWD}/SWGCategory.cpp \
	$${PWD}/SWGHelpers.cpp \
	$${PWD}/SWGHttpRequest.cpp \
	$${PWD}/SWGOrder.cpp \
	$${PWD}/SWGPet.cpp \
	$${PWD}/SWGPetApi.cpp \
	$${PWD}/SWGStoreApi.cpp \
	$${PWD}/SWGTag.cpp \
	$${PWD}/SWGUser.cpp \
	$${PWD}/SWGUserApi.cpp
Swagger-codegen version

2.3.1

Swagger declaration file content or url

https://gist.github.com/MartinDelille/c358209832ed023c1cd7ddb308db0099

Command line used for generation
$ swagger-codegen generate -i api.yml -l qt5cpp
Steps to reproduce

None it is a feature request

Related issues/PRs

Not that I know.

Suggest a fix/enhancement

I'll be happy to make a PR if you provide me some little support!

@etherealjoy
Copy link
Contributor

@MartinDelille
Maybe you could check the example from C# generator? it creates a solution file.

@MartinDelille
Copy link
Contributor Author

Can you point me quickly where does it happens? I'm currently setting up my machine for building swagger-codegen.

@MartinDelille
Copy link
Contributor Author

Ok I start to understand how it works.

wing328 pushed a commit that referenced this issue Mar 14, 2018
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants