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

Enabled per-project QMake installation #41

Merged
merged 12 commits into from
Nov 1, 2016

Conversation

oKcerG
Copy link
Contributor

@oKcerG oKcerG commented Oct 16, 2016

Created qrc and pri files for each sub-modules.
Modified c++ files to take into account if fluid is installed locally.
Modified the icons script to generate a qrc file.

@plfiorini plfiorini self-assigned this Oct 29, 2016
@plfiorini plfiorini added this to the M4 milestone Oct 29, 2016
#ifdef FLUID_LOCAL
#include "../src/dateutils.h"
#else
#include <Fluid/DateUtils>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't think we need #ifdef here because DateUtils header can be found from the llocal headers dir

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just keep the relative include directive then ?

Copy link
Member

@plfiorini plfiorini Oct 31, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oKcerG I was thinking to leave #include <Fluid/DateUtils> intact instead of the FLUID_LOCAL ifdef that should work if the qmake project generates those camel case headers in the build tree and the directory is in the include path.

@@ -0,0 +1,922 @@
<RCC>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this QRC file should be generated by the fetch script instead

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep that's a mistake, I meant to remove this file but forgot to do it.

`#include "iconthemeimageprovider.h"`
* add the resources files to your `QQmlApplicationEngine` import paths :
`engine.addImportPath(engine.addImportPath(QStringLiteral("qrc:/"))`
* register fluid's IconThemeImageProvider to the engine :
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no space needed before :

Then, in your `main.cpp` file or wherever you set up a `QQmlApplicationEngine`:
* add this include directive :
`#include "iconthemeimageprovider.h"`
* add the resources files to your `QQmlApplicationEngine` import paths :
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no space needed before :

@@ -2,6 +2,7 @@

GIT_DIR=material-design-icons
TARGET_DIR=icons
QRC_FILE=icons.qrc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just tested the script and this should be:

QRC_FILE=$TARGET_DIR/icons.qrc

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually the issue here is a bit different: trying to build demo.pro it doesn't find $$PWD/scripts/icons.qrc so probably the path in fluid.pri should be changed instead

Copy link
Contributor Author

@oKcerG oKcerG Oct 31, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just downloaded my branch in a new folder, ran the script and could build the demo and run it without problem.

edit : I did cd scripts && ./fetch_icons.sh instead of ./scripts/fetch_icons.sh

@plfiorini plfiorini removed this from the M4 milestone Nov 1, 2016
@plfiorini
Copy link
Member

@oKcerG Can you please squash the PR into one commit so I can push it?

@plfiorini plfiorini merged commit bd588cb into lirios:develop Nov 1, 2016
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 this pull request may close these issues.

None yet

2 participants