toolsandutils/buildsystem/extension/graphics/gen_khronos_cpp_from_hdr.mk
changeset 0 83f4b4db085c
child 1 d4b442d23379
equal deleted inserted replaced
-1:000000000000 0:83f4b4db085c
       
     1 # Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 # All rights reserved.
       
     3 # This component and the accompanying materials are made available
       
     4 # under the terms of "Eclipse Public License v1.0"
       
     5 # which accompanies this distribution, and is available
       
     6 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 #
       
     8 # Initial Contributors:
       
     9 # Nokia Corporation - initial contribution.
       
    10 #
       
    11 # Contributors:
       
    12 #
       
    13 # Description:
       
    14 #
       
    15 
       
    16 # To ensure that EPOCROOT always ends with a forward slash
       
    17 TMPROOT:=$(subst \,/,$(EPOCROOT))
       
    18 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
       
    19 
       
    20 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
       
    21 
       
    22 SOURCE_HDR=$(SOURCES)
       
    23 TARGET_CPP=$(TARGET)
       
    24 CONVERSION_SCRIPT = $(EPOCROOT)epoc32$/tools$/conv_khronos_hdr_to_cpp.pl
       
    25 
       
    26 MAKMAKE : $(TARGET_CPP)
       
    27 
       
    28 FREEZE :
       
    29 
       
    30 LIB :
       
    31 
       
    32 CLEANLIB :
       
    33 
       
    34 RESOURCE :
       
    35 
       
    36 FINAL :
       
    37 
       
    38 BLD SAVESPACE : $(TARGET_CPP)
       
    39 
       
    40 RELEASABLES :
       
    41 
       
    42 CLEAN :
       
    43 	perl $(CONVERSION_SCRIPT) $(SOURCE_HDR) $(TARGET_CPP) delete
       
    44 
       
    45 $(TARGET_CPP): $(SOURCE_HDR)
       
    46 	perl $(CONVERSION_SCRIPT) $(SOURCE_HDR) $(TARGET_CPP) create