kcomex | 10 February, 2009 23:46
In the past days, I have made a build scripts which utilizes a couple of files to build a S60 project in a faster and simpler way. Gnu Make is the main actor in this solution, and this is inspired by the Mozilla project. The main feature of the building is that its much faster than Carbide.c++ IDE and command line build because here I only take care of a set of parameters used in a project, the rest of them are omitted.
Build with this "Gnu Make for Symbian", you need three files Makefile, defines.mk and config.mk in myapp\gms path. Then you need to install MSYS . Also three environment parameters should be set like this:
Please be noted the first one should contains a trailing slash like classic EPOCROOT environment variable. The second one is the ActivePerl .exe file used by some resource compiler script. The last one is the path to GCCE compiler installation path, without trailing slash. If there are spaces in any of them, please use "\ " backslash with a space instead.
After all these done, you could change your working directory into the build home bye "cd /c/myapp/gms". Then "make build" will do the build and "make pack" will also do the makesis work.
A sample config.mk file is shown below. I guess probably everything is explained by its name.
PROJECT_NAME = helloworld
TARGET_TYPE = EXE
UID2 = 0
UID3 = A000ABCD
SECUREID = A000ABCD
EPOCSTACKSIZE = 0x5000
CAPABILITY = NONE
SYSINCLUDE = $(EPOCROOT)/include
USERINCLUDE = ../inc
CXXSRCS = \
helloworld.cpp \
$(NULL)
CSRCS = \
helloworld.c \
$(NULL)
IMG_SRCS = ../gfx/icon.svg
IMG_TARGETS = $(DIST_PATH)/$(PROJECT_NAME)_aif.mif
IMG_ARGS = /c32
RSS_TARGETS = $(DIST_PATH)/$(PROJECT_NAME).rsc $(DIST_PATH)/$(PROJECT_NAME)_reg.rsc
LANG_MACRO = -DLANGUAGE_SC
SYSLIBRARY = euser.lib estlib.lib avkon.lib
CERT = /c/cert/selfsigned.cer
KEY = /c/cert/selfsigned.key
Although there are a number of limitations in this script, hope you like this tiny thing and in future I will fill it more powerful :)
S60, Symbian C++ |
Previous |
Comments (2) |
Trackbacks (0)
kolijoco | 03/10/2009, 17:16
once i manage to build nspr (on s60), whats the next step?
are there other layers (and a ui) that can be built to get a working browser app?
also, where is the most recent code one should use: in the trunk on google source, or has all that been merged into the official mozilla trees?
thanks!
kolijoco
Re: A Generic Makefile build script for Symbian
redpanda321 | 21/05/2009, 11:53
1,not SYMBIAN_SDK_PATH but SYMBIAN_SDK_DIR
2,under WINSCW, can not work