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):
#this is a build system function that set this project as a qtopia app
#the TARGET variable allow to define the executable filename
#notify to the build system about the use of some of qtopia application macros in this project.
#notify to the build system that this application can't be quicklaunched
#notify to the build system to not use tr() macro to handle i18n files
#contains a list of QT Designer generated files containing the xml definition of application windows
#contains a list of project header files
#contains a list of project source files
#the filename of application link (shortcut)
#the path of application binary
#path to application icon and some other images used by this application
#these variable contains help system information
#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
#the package description
pkg.desc=Hello World Application
#the package version
#the name of package maintainer
#the package name
#which kind of application this package contains
Now save this file as helloworld.pro, this file will be read and processed by some SDK scripts that will be discussed later.