×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    33

    Running user scripts as part of build?

    Is there a facility in the Symbian build process to run my own perl/python scripts? I'd like to define a perl or python script that I've developed to run before the regular Symbian build is done in Carbide. Its obviously straightforward from the command line but I'd like to provide the same facility within the IDE.

    If there is then I assume its some modification to the mmp or bld.inf file. I have had trouble finding documentation for the format of these (especially the mmp file).

    Anyway, thanks for any clues for this issue.

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: Running user scripts as part of build?

    Create an extension makefile (*.mk) and call your scripts at desired build stage. Place it before the *.mmp entries in bld.inf and your script will be run before the other project's makefile will be executed.

    It works from Carbide.c++ and command line builds as well.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  3. #3
    Registered User
    Join Date
    Jan 2009
    Posts
    33

    Re: Running user scripts as part of build?

    Works like a charm. Thank you very much.

    Here's the template that I used in case someone else is searching for this and stumbles upon this discussion entry :


    Code:
    do_nothing :
    	@rem do_nothing
    
    do_build :
    	perl (my perl stuff here)
    
    MAKMAKE : do_nothing
    
    BLD : do_build
    
    CLEAN : do_nothing
     
    LIB : do_nothing
     
    CLEANLIB : do_nothing
    
    RESOURCE : do_nothing
    
    FINAL : do_nothing
    Last edited by ltomuta; 2009-06-06 at 20:09. Reason: Made fornatting visible. Tab indentation is essential for makefiles

Similar Threads

  1. Carbide C++ 2.0: crippled build and design scripts
    By elviin in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2009-04-15, 12:19
  2. S60_3rd_FP1 build error
    By zeynep in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2008-11-05, 07:41
  3. Replies: 2
    Last Post: 2004-09-15, 22:47
  4. armi build not working
    By lemody in forum Symbian
    Replies: 0
    Last Post: 2003-06-14, 15:04
  5. Replies: 0
    Last Post: 2003-06-09, 04:46

Posting Permissions

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