sbsv1/buildsystem/extension/tools/ant_launch.flm
changeset 40 68f68128601f
equal deleted inserted replaced
39:fa9d7d89d3d6 40:68f68128601f
       
     1 # Copyright (c) 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 JAVABLDDIR := $(EPOCBLD)/$(PLATFORM_PATH)/$(CFG_PATH)
       
    17 RELDIR := $(EPOCROOT)/epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)
       
    18 ANTLIBCMD := $(subst \,/,$(ANT_HOME))/bin/ant -lib $(EPOCROOT)/epoc32/tools/java
       
    19 ANTBLDFILE := $(TO_BLDINF)/$(BUILD_XML)
       
    20 
       
    21 JAVAMARKER := $(JAVABLDDIR)/javabld.$(BUILD_XML).done
       
    22 
       
    23 # Build
       
    24 ANTCMD_BUILD := $(ANTLIBCMD) -logger com.symbian.ant.ScanLogger -buildfile $(ANTBLDFILE) -Depoc.build=$(JAVABLDDIR) -Depoc.rel=$(RELDIR) -Dtools.rel=$(EPOCROOT)/epoc32/tools ; $(GNUTOUCH) $(JAVAMARKER)
       
    25 
       
    26 TARGET :: $(JAVAMARKER)
       
    27 
       
    28 $(call raptor_recipe,ant_build,$(JAVAMARKER),$(ANTBLDFILE) $(JAVABLDDIR),$(ANTCMD_BUILD))
       
    29 
       
    30 # Clean
       
    31 ANTCMD_CLEAN := $(ANTLIBCMD) -logger com.symbian.ant.ScanLogger -buildfile $(ANTBLDFILE) -Depoc.build=$(JAVABLDDIR) -Depoc.rel=$(RELDIR) -Dtools.rel=$(EPOCROOT)/epoc32/tools clean ; $(GNURM) -f $(JAVAMARKER)
       
    32 
       
    33 $(call raptor_phony_recipe,ant_clean,CLEAN,,$(ANTCMD_CLEAN))
       
    34 
       
    35 # sbs --what
       
    36 JAVARELEASABLES := $(shell $(ANTLIBCMD) -logger com.symbian.ant.AbldWhatLogger -quiet -buildfile $(ANTBLDFILE) -Depoc.rel=$(RELDIR) -Dtools.rel=$(EPOCROOT)/epoc32/tools what)
       
    37 
       
    38 $(eval $(call whatmacro,$(JAVARELEASABLES),USERFLM))
       
    39 
       
    40 # Create directory
       
    41 CREATABLEPATHS := $(JAVABLDDIR)
       
    42 $(call makepath,$(CREATABLEPATHS))
       
    43