Carbide & Qt .pro file: how to add extra files?
Hi,
I've been working with Carbide to create some modules for PyS60, and am now in the process of creating a Qt based application for the N97. For the graphics I use several SVG files that i'd like copied into the area where the app resides (!:/private/xxx), as well as some datefiles that i'd like to be copied to a public area (!:/data/<app>/...). I know how to do this by modifying the .pkg files, but with Qt, the .pkg files are generated from the .pro file...
I mean lines like the one i added on the bottom here:
[code]
; Executable and default resource files
"/S60/devices/Nokia_N97_SDK_v1.0/epoc32/release/gcce/urel/app.exe" - "!:\sys\bin\app.exe"
"/workspace/app/data/readme.txt" - "!:\data\app\readme.txt"
[/code]
Can anyone tell me how I can setup the .pro file to add the extra files to the .pkg?
Regards,
Mark.
Re: Carbide & Qt .pro file: how to add extra files?
Use DEPLOYMENT variable in .pro file to add files in .mmp file.
For example.
[CODE]symbian: {
addFiles.sources = abc.txt
addFiles.path = .
DEPLOYMENT += addFiles
}[/CODE]
Above code generates following lines in .mmp files.
[CODE]; DEPLOYMENT
"..\Symbian\Carbide\Workspace\appname\abc.txt" - "!:\private\<UID>\abc.txt"[/CODE]
Re: Carbide & Qt .pro file: how to add extra files?
[QUOTE=savaj;653619]Use DEPLOYMENT variable in .pro file to add files in .mmp file.
[/QUOTE]
Great, that did the trick! Thanks!
By the way, is this documented somewhere?
(just in case i have other similar questions)
Mark.
Re: Carbide & Qt .pro file: how to add extra files?
Yes, it is documented here.
[url]http://library.forum.nokia.com/index.jsp?topic=/Qt_for_S60_Developers_Library/GUID-B44FDAA6-ADEA-47E5-9C9A-C398FDBFC00F.html[/url]
[url]http://library.forum.nokia.com/index.jsp?topic=/Qt_for_S60_Developers_Library/GUID-2DABCBB5-B6F0-43D4-9995-0770391632A8.html[/url]