dtdinstaller/bin/dtd.mk
branchRCL_3
changeset 32 fe49e33862e2
parent 31 b685c59de105
child 33 04b7640f6fb5
equal deleted inserted replaced
31:b685c59de105 32:fe49e33862e2
     1 #
       
     2 # Copyright (c) 2008 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:
       
    15 #
       
    16 
       
    17 # To ensure that EPOCROOT always ends with a forward slash
       
    18 TMPROOT:=$(subst \,/,$(EPOCROOT))
       
    19 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
       
    20 
       
    21 ifndef SWITCH_LOC_FILE_NAME
       
    22 $(error switch loc file unknown)
       
    23 endif
       
    24 
       
    25 DTD_INSTALLER_TOOL := perl $(EPOCROOT)epoc32/tools/dtd_installer.pl
       
    26 
       
    27 ifdef SWITCH_LOC_FILE_PATH
       
    28 SWITCH_LOC_FILE_PATH := $(EPOCROOT)$(SWITCH_LOC_FILE_PATH)
       
    29 endif
       
    30 
       
    31 # default type is dtd (Theme installer is not called, only loc_to_dtd_converter.pl !)
       
    32 ifndef DTD_TYPE
       
    33   DTD_TYPE := dtd
       
    34 endif
       
    35 
       
    36 
       
    37 ifeq ($(DTD_TYPE),widget)
       
    38   ifndef DTD_PRIVATE_LOCATION
       
    39     DTD_PRIVATE_LOCATION := z/private/200159c0/install
       
    40   endif
       
    41   ifeq ($(PLATFORM),WINSCW)
       
    42         PRODUCTIZATION_LOCATION := $(EPOCROOT)epoc32/release/winscw/$(CFG)/$(DTD_PRIVATE_LOCATION)
       
    43   endif
       
    44   ifeq ($(PLATFORM),ARMV5)
       
    45   		PRODUCTIZATION_LOCATION := $(EPOCROOT)epoc32/data/$(DTD_PRIVATE_LOCATION)
       
    46   endif
       
    47 else # Type is DTD by default
       
    48   ifndef DTD_PRIVATE_LOCATION
       
    49     DTD_PRIVATE_LOCATION := z/private/200113DD/content
       
    50   endif
       
    51   ifeq ($(PLATFORM),WINSCW)
       
    52         PRODUCTIZATION_LOCATION := $(EPOCROOT)epoc32/release/winscw/$(CFG)/$(DTD_PRIVATE_LOCATION)
       
    53   endif
       
    54   ifeq ($(PLATFORM),ARMV5)
       
    55   		PRODUCTIZATION_LOCATION := $(EPOCROOT)epoc32/data/$(DTD_PRIVATE_LOCATION)
       
    56   endif
       
    57 endif
       
    58 
       
    59 ifndef DTD_OUTPUT_LOCATION
       
    60   DTD_OUTPUT_LOCATION := $(PRODUCTIZATION_LOCATION)
       
    61 else 
       
    62   DTD_OUTPUT_LOCATION := $(EPOCROOT)$(DTD_OUTPUT_LOCATION)
       
    63 endif 
       
    64 
       
    65 DTD_INSTALLER_TOOL := $(DTD_INSTALLER_TOOL) -o $(DTD_OUTPUT_LOCATION) -n $(SWITCH_LOC_FILE_NAME) -t $(DTD_TYPE)
       
    66 
       
    67 ifdef LOC_FOLDERS
       
    68 	DTD_INSTALLER_TOOL := $(DTD_INSTALLER_TOOL) -f force
       
    69 endif
       
    70 
       
    71 ifdef DEBUG_MODE
       
    72 	DTD_INSTALLER_TOOL := $(DTD_INSTALLER_TOOL) -d yes
       
    73 endif
       
    74 
       
    75 DTD_INSTALLER_TOOL_BUILD := $(DTD_INSTALLER_TOOL) -a build
       
    76 DTD_INSTALLER_TOOL_CLEAN := $(DTD_INSTALLER_TOOL) -a clean
       
    77 DTD_INSTALLER_TOOL_WHAT := $(DTD_INSTALLER_TOOL) -a what
       
    78 
       
    79 #OUTPUT_PATH
       
    80 
       
    81 # DTD tool will be invoked here
       
    82 DO_DTD_BUILD:
       
    83 	$(DTD_INSTALLER_TOOL_BUILD)
       
    84 DO_DTD_CLEAN:	
       
    85 	$(DTD_INSTALLER_TOOL_CLEAN)
       
    86 DO_DTD_WHAT:	
       
    87 	$(DTD_INSTALLER_TOOL_WHAT)
       
    88 
       
    89 	
       
    90 BLD SAVESPACE: DO_NOTHING
       
    91 CLEAN : DO_DTD_CLEAN
       
    92 RELEASABLES :	DO_DTD_WHAT
       
    93 	
       
    94 DO_NOTHING :
       
    95 	@echo do nothing
       
    96 	
       
    97 MAKMAKE : 
       
    98 FREEZE : DO_NOTHING
       
    99 LIB : DO_NOTHING
       
   100 CLEANLIB : DO_NOTHING
       
   101 RESOURCE : DO_DTD_BUILD
       
   102 FINAL : DO_NOTHING
       
   103 
       
   104 FINAL FREEZE LIB CLEANLIB RESOURCE RELEASABLES CLEAN BLD SAVESPACE MAKMAKE :
       
   105 
       
   106 
       
   107