gfxconversion/mifconv/makefile_templates/mifconv_step4.make
changeset 0 f453ebb75370
equal deleted inserted replaced
-1:000000000000 0:f453ebb75370
       
     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 "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 
       
    18 # Generation of TARGETFILE, BITMAPFILE or HEADERFILE is depending on *.svgb and *.bmp files
       
    19 $(TARGETFILE) $(BITMAPFILE) $(HEADERFILE) : MIFCONVOPTS:=$(MIFCONVOPTS)
       
    20 $(TARGETFILE) $(BITMAPFILE) $(HEADERFILE) : BITMAPS:=$(addsuffix .bmp,$(BITMAPBASESOURCES))
       
    21 $(TARGETFILE) $(BITMAPFILE) $(HEADERFILE) : TARGETFILE:=$(TARGETFILE)
       
    22 $(TARGETFILE) $(BITMAPFILE) $(HEADERFILE) : HEADERFILE:=$(HEADERFILE)
       
    23 $(TARGETFILE) $(BITMAPFILE) $(HEADERFILE) : PARAMFILE:=$(PARAMFILE)
       
    24 $(TARGETFILE) $(BITMAPFILE) $(HEADERFILE) : $(SVGBFILES) $(BMPFILES)
       
    25     # Set the prefix for header 
       
    26     # Pick only input files matching *.svgb (created directory may also appear in the input)
       
    27     # And set the colordepth options
       
    28 ifneq ($(strip $(HEADERFILE)),)
       
    29 	echo $(addprefix -h,$(HEADERFILE))  > $(PARAMFILE)
       
    30 	echo $(wordlist 1,100,$(MIFCONVOPTS)) >> $(PARAMFILE)
       
    31 else
       
    32 	echo $(wordlist 1,100,$(MIFCONVOPTS)) > $(PARAMFILE)
       
    33 endif
       
    34 
       
    35 ifneq ($(strip $(wordlist 101,200,$(MIFCONVOPTS))),)
       
    36 	echo $(wordlist 101,200,$(MIFCONVOPTS)) >> $(PARAMFILE)
       
    37 endif
       
    38 
       
    39 ifneq ($(strip $(wordlist 201,300,$(MIFCONVOPTS))),)
       
    40 	echo $(wordlist 201,300,$(MIFCONVOPTS)) >> $(PARAMFILE)
       
    41 endif
       
    42 
       
    43 ifneq ($(strip $(wordlist 301,400,$(MIFCONVOPTS))),)
       
    44 	echo $(wordlist 301,400,$(MIFCONVOPTS)) >> $(PARAMFILE)
       
    45 endif
       
    46 
       
    47 ifneq ($(strip $(wordlist 401,500,$(MIFCONVOPTS))),)
       
    48 	echo $(wordlist 401,500,$(MIFCONVOPTS)) >> $(PARAMFILE)
       
    49 endif
       
    50 
       
    51 ifneq ($(strip $(wordlist 501,600,$(MIFCONVOPTS))),)
       
    52 	echo $(wordlist 501,600,$(MIFCONVOPTS)) >> $(PARAMFILE)
       
    53 endif
       
    54 
       
    55 ifneq ($(strip $(wordlist 601,700,$(MIFCONVOPTS))),)
       
    56 	echo $(wordlist 601,700,$(MIFCONVOPTS)) >> $(PARAMFILE)
       
    57 endif
       
    58 
       
    59 ifneq ($(strip $(wordlist 701,800,$(MIFCONVOPTS))),)
       
    60 	echo $(wordlist 701,800,$(MIFCONVOPTS)) >> $(PARAMFILE)
       
    61 endif
       
    62 
       
    63 ifneq ($(strip $(wordlist 801,900,$(MIFCONVOPTS))),)
       
    64 	echo $(wordlist 801,900,$(MIFCONVOPTS)) >> $(PARAMFILE)
       
    65 endif
       
    66 
       
    67 ifneq ($(strip $(wordlist 901,1000,$(MIFCONVOPTS))),)
       
    68 	echo $(wordlist 901,1000,$(MIFCONVOPTS)) >> $(PARAMFILE)
       
    69 endif
       
    70 
       
    71 ifneq ($(strip $(wordlist 1001,1100,$(MIFCONVOPTS))),)
       
    72 	echo $(wordlist 1001,1100,$(MIFCONVOPTS)) >> $(PARAMFILE)
       
    73 endif
       
    74 
       
    75 ifneq ($(strip $(wordlist 1101,1200,$(MIFCONVOPTS))),)
       
    76 	echo $(wordlist 1101,1200,$(MIFCONVOPTS)) >> $(PARAMFILE)
       
    77 endif
       
    78 
       
    79 ifneq ($(strip $(wordlist 1201,1300,$(MIFCONVOPTS))),)
       
    80 	echo $(wordlist 1201,1300,$(MIFCONVOPTS)) >> $(PARAMFILE)
       
    81 endif
       
    82 
       
    83 ifneq ($(strip $(wordlist 1301,1400,$(MIFCONVOPTS))),)
       
    84 	echo $(wordlist 1301,1400,$(MIFCONVOPTS)) >> $(PARAMFILE)
       
    85 endif
       
    86 
       
    87 ifneq ($(strip $(wordlist 1401,1500,$(MIFCONVOPTS))),)
       
    88 	echo $(wordlist 1401,1500,$(MIFCONVOPTS)) >> $(PARAMFILE)
       
    89 endif
       
    90 
       
    91 ifneq ($(strip $(wordlist 1501,1600,$(MIFCONVOPTS))),)
       
    92 	echo $(wordlist 1501,1600,$(MIFCONVOPTS)) >> $(PARAMFILE)
       
    93 endif
       
    94 
       
    95 
       
    96 
       
    97 # Execute Mifconv with the parameter list 
       
    98 ifneq ($(strip $(SOURCEDIR)),)
       
    99 	$(MIFCONV) $(TARGETFILE) -i$(SOURCEDIR) -e -f$(PARAMFILE)
       
   100 else
       
   101 	$(MIFCONV) $(TARGETFILE) -e -f$(PARAMFILE)
       
   102 endif
       
   103 
       
   104 
       
   105 
       
   106 %-erase :
       
   107 	-$(RM) $*