×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Sep 2006
    Location
    Beijing, China
    Posts
    386

    #include in pkg file

    Is there a way to include another file in a pkg file?

    I want to set the application version number in one place so that I don't get inconsistencies. At the moment, I need to set it in the 'about' box for two execs with guis, the pkg file name, and inside the pkg file itself.

    The two execs I've combined using a script generated include file. I can have my script edit the pkg file name, but I hesitate having it edit the contents of the file itself. If ther pkg file were preprocessed using cpp (like the mmp files are), then I could include the file I generated for the 'about' boxes.

    Any such thing?

    Max.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,734

    Re: #include in pkg file

    Since .pkg files just misfit in the whole environment (insane format based on command-characters, absolute paths, etc.), I do not think that you can achieve "including" with makesis. However when you build from Carbide, the .pkg file is pre-processed somehow, so you can try defining a macro (or some kind of an environment variable?) and check if you can get Carbide to replace ($YOURSOMETHING)-s in the .pkg.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Location
    Beijing, China
    Posts
    386

    Re: #include in pkg file

    Quote Originally Posted by wizard_hu_
    Since .pkg files just misfit in the whole environment (insane format based on command-characters, absolute paths, etc.), I do not think that you can achieve "including" with makesis. However when you build from Carbide, the .pkg file is pre-processed somehow, so you can try defining a macro (or some kind of an environment variable?) and check if you can get Carbide to replace ($YOURSOMETHING)-s in the .pkg.
    LOL - I couldn't agree with you more

    I don't use carbide, since it is too difficult to control. Having said that, it more likely that I just don't understand it - I understand the command line much better, though that is a struggle too.

    "Absolute paths"? I don't use absolute paths in my pkg file...am I going to be tripped up somewhere?

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,734

    Re: #include in pkg file

    Quote Originally Posted by davidmaxwaterman
    "Absolute paths"? I don't use absolute paths in my pkg file...am I going to be tripped up somewhere?
    OK, relative paths work of course, however if you are working on the same project in multiple workspaces, on multiple PC-s maybe, you would rather use absolute paths (as far as I know it is not possible to tell makesis that your paths are relative to the SDK root).

Similar Threads

  1. Can't include png file into jar file when create MIDlet suite
    By hi_sailom in forum Mobile Java Tools & SDKs
    Replies: 7
    Last Post: 2008-08-01, 04:07
  2. File corrupted - with signed sis
    By annehj in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2007-12-10, 13:44
  3. problem--I can´t generate the .rsg file
    By mobilepig in forum Symbian
    Replies: 1
    Last Post: 2006-07-18, 11:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×