[Interest] QMake install
Jérôme Godbout
godboutj at amotus.ca
Mon Apr 9 18:23:37 CEST 2018
Hi,
I'm having some trouble to find the proper way to install multiple sources into the same directory.
I have a git repos with some java source for Android and some subRepos I want to also contribute to java src. I have hard time to figure out how to install all of them into the android subfolder:
* myMainRepos\
* myMain.pro
* android\ my android source for this application
* src\
* ...
* subrepos\
* mySubRepos1\
* mySubRepos1.pri
* android\ generic android code reused
* src\
* ...
my sub repos is simple .pri that add his own file to the solution sources, headers.
I try something like this but end up with full path into my build dir: android/Users/MyUser/projects/MyMainRepos/subrepos/mySubRepos1/android/...
myMain.pro
ANDROID_SOURCES.path = android
ANDROID_SOURCES.files = $$files($$PWD/android/*)
INSTALLS += ANDROID_SOURCES
mySubRepos1.pri
SUBREPOS1_ANDROID_SOURCES.path = android
SUBREPOS1_ANDROID_SOURCES.files = $$files($$PWD/subrepos/smySubRepos1/android/*)
INSTALLS += SUBREPOS1_ANDROID_SOURCES
Is there a better way to do this? How can I ditch some of the source path? I need all thoses files into mybuilddir/android
I also encounter some problems after ditching the single ANDROID_PACKAGE_SOURCE_DIR = android
Seem like the build think it now build a library and look for an application (my .pro TEMPLATE = app)
Seek into the build folder
android-MyApp-deployment-settings.json
but only the following file is generated:
android-libMyApp.so-deployment-settings.json
What is needed to tell the .pro I make android app release? Seem like the template is not enough and ANDROID_PACKAGE_SOURCE_DIR is doing some extra.
[1515684621069_logo.png]
Jérôme Godbout
2992 chemin Sainte-Foy
Quebec, Canada G1X1P6
tel: +1 (581) 777-0050
email: godboutj at amotus.ca
web: www.amotus-solutions.com<http://www.amotus-solutions.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180409/3e217b2e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-1515684621.png
Type: image/png
Size: 15038 bytes
Desc: Outlook-1515684621.png
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180409/3e217b2e/attachment.png>
More information about the Interest
mailing list