toolsandutils/buildsystem/extension/tools/jni_ant_launch.mk
changeset 0 83f4b4db085c
child 1 d4b442d23379
equal deleted inserted replaced
-1:000000000000 0:83f4b4db085c
       
     1 # Copyright (c) 1999-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 # Get standard shell definitions
       
    21 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
       
    22 
       
    23 LETTERS:=a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
       
    24 
       
    25 # Raptor includes the drive letter on paths - this makefile can't handle the drive letter
       
    26 # If we don't do this we get "multiple target patterns" errors in sbsv2
       
    27 TMPROOT:=$(strip $(foreach let,$(LETTERS),$(if $(findstring $(let):,$(EPOCROOT)),$(subst $(let):,,$(EPOCROOT)))))
       
    28 ifneq ($(TMPROOT),)
       
    29 	EPOCROOT:=$(TMPROOT)
       
    30 endif
       
    31 TMPROOT:=$(strip $(foreach let,$(LETTERS),$(if $(findstring $(let):,$(EXTENSION_ROOT)),$(subst $(let):,,$(EXTENSION_ROOT)))))
       
    32 ifneq ($(TMPROOT),)
       
    33 	EXTENSION_ROOT:=$(TMPROOT)
       
    34 endif
       
    35 
       
    36 
       
    37 BUILDDIR = $(EPOCROOT)epoc32/build/$(EXTENSION_ROOT)/$(PLATFORM_PATH)
       
    38 RELDIR = $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)
       
    39 LIBDIR = $(ANT_HOME)/bin/ant -lib $(EPOCROOT)epoc32/tools/java
       
    40 BLDFILE = -buildfile $(EXTENSION_ROOT)/build.xml
       
    41 
       
    42 BUILD = $(BUILDDIR)/${notdir ${build_xml}}_${target}
       
    43 HAS_BUILT = ${wildcard ${BUILD}}
       
    44 
       
    45 DO_NOTHING :
       
    46 	@echo Nothing to do
       
    47 
       
    48 SAVESPACE : BLD	
       
    49 MAKMAKE FREEZE CLEANLIB RESOURCE FINAL : DO_NOTHING
       
    50 
       
    51 BLD: DO_NOTHING
       
    52 
       
    53 LIB:
       
    54 	@$(call createdir,"$(BUILDDIR)")
       
    55 	$(LIBDIR) -logger com.symbian.ant.ScanLogger $(BLDFILE) -Depoc.build=$(BUILDDIR) -Depoc.rel=$(RELDIR) -Dtools.rel=$(EPOCROOT)tools ${args} ${target}
       
    56 	echo $(BUILDDIR)/${build_xml} ${target} > ${BUILD}	
       
    57 
       
    58 ## Allow for a abld reallyclean
       
    59 CLEAN :
       
    60 	$(LIBDIR) -logger com.symbian.ant.ScanLogger $(BLDFILE) -Depoc.build=$(BUILDDIR) -Depoc.rel=$(RELDIR) -Dtools.rel=$(EPOCROOT)tools clean 
       
    61 
       
    62 ## Allow for a abld -what
       
    63 RELEASABLES : 
       
    64 	$(LIBDIR) -logger com.symbian.ant.AbldWhatLogger -quiet $(BLDFILE) -Depoc.rel=$(RELDIR) -Dtools.rel=$(EPOCROOT)tools what