Hello World with Qtopia (Part 2 – Project File)

Posted by – May 23, 2008

In my previous article we had a short introduction to Qtopia development, I also showed how to use the example project that comes with SDK to start a new one.

This article will talk a little about one of the most important files of any Qtopia project the applicationname.pro file, this file contains very important configuration parameters for every Qtopia application, please open your preferred text editor and put the code below (look the comments):

[code]
#this is a build system function that set this project as a qtopia app
qtopia_project(qtopia app)

#the TARGET variable allow to define the executable filename
TARGET=HelloWorld
#notify to the build system about the use of some of qtopia application macros in this project.
CONFIG+=qtopia_main
CONFIG+=no_singleexec
#notify to the build system that this application can't be quicklaunched
CONFIG+=no_quicklaunch
#notify to the build system to not use tr() macro to handle i18n files
CONFIG+=no_tr

#contains a list of QT Designer generated files containing the xml definition of application windows
FORMS=helloworld.ui
#contains a list of project header files
HEADERS=helloworld.h
#contains a list of project source files
SOURCES=main.cpp helloworld.cpp

#the filename of application link (shortcut)
desktop.files=helloworld.desktop
#the path of application binary
desktop.path=/apps/Applications
desktop.trtarget=helloworld-nct
desktop.hint=nct desktop

#path to application icon and some other images used by this application
pics.files=pics/*
pics.path=/pics/helloworld
pics.hint=pics

#these variable contains help system information
help.source=help
help.files=helloworld.html
help.hint=help

#define which contents will be installed on device, in the example below all information defined in the desktop, pics and help objects above will be added to application package.
INSTALLS+=desktop pics help

#the name of installable package
pkg.name=helloworld
#the package description
pkg.desc=Hello World Application
#the package version
pkg.version=1.0.0-1
#the name of package maintainer
pkg.maintainer=Rogerio Araujo
#the package name
pkg.license=GPL
#which kind of application this package contains
pkg.domain=window
[/code]

Now save this file as helloworld.pro, this file will be read and processed by some SDK scripts that will be discussed later.

Share

1 Comment on Hello World with Qtopia (Part 2 – Project File)

  1. Anonymous says:

    Thanks for the wonderful help on Qtopia

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>