brandingserver/tools/makefile/import.mk
changeset 0 e6b17d312c8b
child 21 cfd5c2994f10
equal deleted inserted replaced
-1:000000000000 0:e6b17d312c8b
       
     1 #
       
     2 # Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 # All rights reserved.
       
     4 # This component and the accompanying materials are made available
       
     5 # under the terms of "Eclipse Public License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 #
       
    14 # Description: make file
       
    15 #
       
    16 
       
    17 
       
    18 # ----------------------------------------------------------------------------
       
    19 # Application ID
       
    20 # This should be the same string as is used as the application ID
       
    21 # of this application in the brand data.
       
    22 # This is used for cleaning the brand data when calling abld clean.
       
    23 #
       
    24 # !!IMPORTANT!!
       
    25 #
       
    26 # Note that all the brands for this application will be wiped!
       
    27 # If this is not wanted, change the rule in CLEAN to do_nothing, but
       
    28 # then you will get errors when recompiling, since the same brand data
       
    29 # cannot be entered twice.
       
    30 # ----------------------------------------------------------------------------
       
    31 
       
    32 APPID=app_id
       
    33 
       
    34 
       
    35 # ----------------------------------------------------------------------------
       
    36 # Brand ID
       
    37 # Name of the created brand
       
    38 # ----------------------------------------------------------------------------
       
    39 BRAND=default
       
    40 
       
    41 # ----------------------------------------------------------------------------
       
    42 # Brand version
       
    43 # ----------------------------------------------------------------------------
       
    44 VERSION=1
       
    45 
       
    46 # ----------------------------------------------------------------------------
       
    47 # Source directory of the brand XML:s.
       
    48 # Just put every XML you want to import into this directory.
       
    49 # Note that this directory is for emulator, so c-drive is pointing to
       
    50 # \epoc32\winscw\c.
       
    51 # ----------------------------------------------------------------------------
       
    52 SOURCEDIR=c:\xml
       
    53 
       
    54 
       
    55 # ----------------------------------------------------------------------------
       
    56 # Directory to clean when abld clean is called
       
    57 # ----------------------------------------------------------------------------
       
    58 CLEANED_DIR=\epoc32\winscw\c\private\102828dd\data\$(APPID)
       
    59 
       
    60 # ----------------------------------------------------------------------------
       
    61 # Language definition
       
    62 # This should stay unchanged. Build script will change this when needed
       
    63 # ----------------------------------------------------------------------------
       
    64 LANGUAGE=sc
       
    65 
       
    66 # ----------------------------------------------------------------------------
       
    67 # empty rules 
       
    68 # ----------------------------------------------------------------------------
       
    69 do_nothing :
       
    70 	@rem do_nothing
       
    71 
       
    72 # ----------------------------------------------------------------------------
       
    73 # Build rules 
       
    74 # ----------------------------------------------------------------------------
       
    75 
       
    76 MAKMAKE : do_nothing
       
    77 
       
    78 # ----------------------------------------------------------------------------
       
    79 # Resources
       
    80 # Runs the parsers and importer. Note that this will cause an error when
       
    81 # compiling more than once with the same brand data without calling abld
       
    82 # clean in between
       
    83 #
       
    84 # Note! Edit these to suit our application
       
    85 # ----------------------------------------------------------------------------
       
    86 RESOURCE : 
       
    87 	perl -- \s60\brandingserver\tools\xml\loc2xml.pl \S60\someapp\Group\someapp.loc \epoc32\winscw\c\xml\someapp_loc_$(LANGUAGE).xml $(BRAND) $(APPID) $(LANGUAGE) $(VERSION)
       
    88 	perl -- \s60\brandingserver\tools\xml\mbg2xml.pl \epoc32\include\someapp.mbg \epoc32\winscw\c\xml\someapp_gfx.xml $(BRAND) $(APPID) SC $(VERSION)
       
    89 	\epoc32\release\winscw\udeb\bsimport.exe -dtextshell -- -D $(SOURCEDIR)
       
    90 
       
    91 # ----------------------------------------------------------------------------
       
    92 # Build
       
    93 # ----------------------------------------------------------------------------
       
    94 BLD : do_nothing
       
    95 
       
    96 # ----------------------------------------------------------------------------
       
    97 # Cleans all brand data for the given application.
       
    98 # ----------------------------------------------------------------------------
       
    99 CLEAN : 
       
   100 	if exist $(CLEANED_DIR) rd /S /Q $(CLEANED_DIR)
       
   101 	
       
   102 
       
   103 LIB : do_nothing
       
   104 
       
   105 CLEANLIB : do_nothing
       
   106 
       
   107 FREEZE : do_nothing
       
   108 
       
   109 SAVESPACE : do_nothing
       
   110 
       
   111 RELEASABLES :
       
   112 	do_nothing
       
   113 	
       
   114 FINAL : do_nothing