-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Provide a CLI to be run qmake #153
Comments
A bulletproof CLI tool would be wonderful, no doubt. I'm quite tempted to just let you do whatever you want - it just needs to work on Linux, macOS and Windows 🙂 I have zero knowledge about powershell... How would I run it on my Linux machine? |
... actually having the tool as a separate project might be even better - that way support tickets for the tool don't end up here - or at least I have a place to send people to, if you catch my drift. We can just make it an official " |
Let's first work out the details and then decide on this repo or another. It would still be nice if we are both co-owner to the tool's repo in that case. The tool should help your troubles with understanding issues, so to be able to adjust it is in your benefit. Powershell for Windows, Linux and Mac are:
Powershell for Windows
Powershell on Windows is directly installable as setup, side-to-side with another version of
And a lot more by community (so basically everything). The way I would install in on Ubuntu is with I do think powershell is a great scripting tool, but as I said: so is Python (which can do more). What has your preference? |
Hmm... I see. 🤔 My impression about what users find the most "hard"/confusing is currently:
I guess the tool could cover a lot of the above. It's also important that the tool can be re-run (here I'm thinking it has to be able to change SDK/NDK paths continuously). I have no problem with introducing code/format conventions to help the tool (I.e |
Nice, so what I'd like to start with is the qmake python interaction. How to run the tool and validate the existence of the right python. We dont want users to be forced to install python, but I would suggest 'if you want help, run the tool' approach. Or to put it differently: 'if you report an issue, include the tools logs'. Second up for design is the cli itself. My preference is to design: the arguments with |
@davidzwa - that sound wonderful!
Sounds good to me - no need to have 2 different input formats to the tool at this point. Thanks for your input and efforts here - much obliged! |
The efforts are mutual, and I cant stand to see something so worthy to fall over because of external changes. This tool is what you have been missing: isolation of problems. The next TLDR will cover:
Qmake/python interactionOk so about the qmake interaction, we have to make sure either the tool is blazing fast or that it is run only when needed (bail on a valid/non-dirty state). I hope to focus on the first, but I wont be afraid to fall back to the second. Dependencies:
Configuration file descriptionAs per config I'm thinking of at least the following requirements:
Please read it through, I know it's quite in-depth, so you can skip the stuff non-essential to QtFirebase <-> deployment as long as you validate the following design choice:
|
@davidzwa it looks really good - engage! 😀 |
Will start reporting once started, nice task with a bit of change |
Looking forward to see it! |
Running python from QMake:
Running python from QMake with error:
W.I.P. please read the TODO.md to discuss what's next after I'm done with the tasks for the upcoming week/ 2 weeks. https://github.com/davidzwa/QtFirebaseCLI Hope you like my 2 hours of slamming a keyboard really hard |
@davidzwa looks good at a glance - nice job! |
No worries, will continue as planned next time I find free time. |
As was already discussed, we'd possibly like to enhance qmake in a most non-intrusive way with very little maintanance. The reason is for the required FIREBASE_SDK_CPP environment variable which needs to be picked up by the deployment target at hand (Windows, Linux, iOS, Linux Android).
I'd like to think out how we would approach such a thing:
The CLI would have the following requirements:
qmake/deploy-prep
,dry-run analysis
andprep/download files like firebase SDK
Don't worry about the work/effort: I will take care of it. It's more a question of if you'd be interested in it and if the requirements align with what you think of it. Only then I will even start thinking about making such a plugin qmake tool.
The text was updated successfully, but these errors were encountered: