deprecated/buildtools/buildsystem/extension/tools/features.mk
author jascui
Mon, 29 Nov 2010 15:43:27 +0800
changeset 709 1ec2202bb75b
parent 655 3f65fd25dfd4
permissions -rw-r--r--
Removing "repeated" file existence checking from ROMBUILD
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
655
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     1
# Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     2
# All rights reserved.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     3
# This component and the accompanying materials are made available
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     4
# under the terms of "Eclipse Public License v1.0"
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     5
# which accompanies this distribution, and is available
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     7
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     8
# Initial Contributors:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
     9
# Nokia Corporation - initial contribution.
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    10
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    11
# Contributors:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    12
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    13
# Description:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    14
# This makefile template is used to generate header/iby/features.dat file
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    15
# 
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    16
#
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    17
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    18
# To ensure that EPOCROOT always ends with a forward slash
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    19
TMPROOT:=$(subst \,/,$(EPOCROOT))
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    20
EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    21
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    22
include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    23
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    24
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    25
ifeq "$(CFG_PATH)" "rel"
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    26
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    27
FEAT_TOOL := perl -S $(call slash2generic,features.pl)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    28
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    29
ifndef FEAT_DATABASE
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    30
FEAT_DATABASE := $(EPOCROOT)epoc32/rom/include/featuredatabase.xml
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    31
endif
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    32
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    33
ifndef FEAT_HEADER_PATH
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    34
FEAT_HEADER_PATH := $(EPOCROOT)epoc32/include
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    35
endif
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    36
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    37
ifndef FEAT_IBY_PATH
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    38
FEAT_IBY_PATH := $(EPOCROOT)epoc32/rom/include
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    39
endif
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    40
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    41
ifndef FEAT_DAT_PATH
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    42
FEAT_DAT_PATH := $(EPOCROOT)epoc32/data/config
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    43
endif
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    44
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    45
# Features tool will be invoked here
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    46
ALL:
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    47
	$(FEAT_TOOL) --datfile=$(FEAT_DAT_PATH) --hdrfile=$(FEAT_HEADER_PATH) --ibyfile=$(FEAT_IBY_PATH) $(FEAT_DATABASE)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    48
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    49
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    50
BLD SAVESPACE: ALL
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    51
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    52
CLEAN :
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    53
	-$(ERASE) $(call slash2generic,$(FEAT_HEADER_PATH)/featureuids.h)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    54
	-$(ERASE) $(call slash2generic,$(FEAT_IBY_PATH)/feature.iby)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    55
	-$(ERASE) $(call slash2generic,$(FEAT_DAT_PATH)/features.dat)
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    56
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    57
RELEASABLES :
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    58
	@echo $(FEAT_HEADER_PATH)/featureuids.h
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    59
	@echo $(FEAT_IBY_PATH)/feature.iby
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    60
	@echo $(FEAT_DAT_PATH)/features.dat
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    61
	
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    62
DO_NOTHING :
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    63
	@echo do nothing
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    64
	
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    65
MAKMAKE : DO_NOTHING
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    66
FREEZE : DO_NOTHING
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    67
LIB : DO_NOTHING
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    68
CLEANLIB : DO_NOTHING
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    69
RESOURCE : DO_NOTHING
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    70
FINAL : DO_NOTHING
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    71
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    72
#if $(CFG_PATH) == "deb"
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    73
else
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    74
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    75
FINAL FREEZE LIB CLEANLIB RESOURCE RELEASABLES CLEAN BLD SAVESPACE MAKMAKE :
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    76
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    77
endif
3f65fd25dfd4 sync up SVN codes
kelvzhu
parents:
diff changeset
    78