imgtools/imaker/src/imaker_public.mk
changeset 1 be27ed110b50
child 584 56dd7656a965
equal deleted inserted replaced
0:044383f39525 1:be27ed110b50
       
     1 #
       
     2 # Copyright (c) 2009 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 the License "Symbian Foundation License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 #
       
    14 # Description: iMaker public interface
       
    15 #
       
    16 
       
    17 
       
    18 
       
    19 #==============================================================================
       
    20 # Product variant variables
       
    21 
       
    22 FEATVARIANT_CONFML = $(wildcard $(PRODUCT_DIR)/$(FEATURE_VARIANT).confml)
       
    23 
       
    24 PRODVARIANT_DIR    = $(PRODUCT_DIR)
       
    25 PRODVARIANT_CONFML = $(or $(FEATVARIANT_CONFML),$(PRODUCT_DIR)/$(PRODUCT_NAME).confml)
       
    26 PRODVARIANT_CONFCP =\
       
    27   $(PLATFORM_NAME) $(PRODUCT_MSTNAME) $(PRODUCT_NAME)\
       
    28   $(if $(FEATVARIANT_CONFML),$(call select,$(PRODUCT_NAME),$(FEATURE_VARIANT),,$(FEATURE_VARIANT)))
       
    29 
       
    30 #==============================================================================
       
    31 # Customer variant variables
       
    32 # Root for customer variant (custvariant) package settings
       
    33 
       
    34 CUSTVARIANT_ROOT   = $(PRODUCT_DIR)/customer
       
    35 CUSTVARIANT_PREFIX = custvariant_
       
    36 CUSTVARIANT_NAME   =
       
    37 CUSTVARIANT_ID     =
       
    38 CUSTVARIANT_DIR    = $(CUSTVARIANT_ROOT)/$(CUSTVARIANT_NAME)
       
    39 CUSTVARIANT_COMPLP =
       
    40 
       
    41 #==============================================================================
       
    42 # The Target specific override settings
       
    43 
       
    44 $(CUSTVARIANT_PREFIX)%: CUSTVARIANT_NAME = $(TARGETNAME)
       
    45 $(CUSTVARIANT_PREFIX)%: CUSTVARIANT_ID   = $(TARGETID)
       
    46 $(CUSTVARIANT_PREFIX)%: VARIANT_DIR      = $(CUSTVARIANT_DIR)
       
    47 $(CUSTVARIANT_PREFIX)%: variantrofs3_$(TARGETID)$(TARGETEXT) ;
       
    48 
       
    49 #==============================================================================
       
    50 # Helps
       
    51 
       
    52 $(call add_help,PRODVARIANT_DIR,v,(string),Overrides the VARIANT_DIR for product variant, see the instructions of VARIANT_CONFCP for details.)
       
    53 $(call add_help,PRODVARIANT_CONFML,v,(string),Overrides the VARIANT_CONFML for product variant, see the instructions of VARIANT_CONFML for details.)
       
    54 $(call add_help,PRODVARIANT_CONFCP,v,(string),Overrides the VARIANT_CONFCP for product variant, see the instructions of VARIANT_CONFCP for details.)
       
    55 $(call add_help,CUSTVARIANT_DIR,v,(string),Overrides the VARIANT_DIR for customer variant, see the instructions of VARIANT_CONFCP for details.)
       
    56 $(call add_help,CUSTVARIANT_COMPLP,v,(string),Compatible language variant.)