omadrm/drmengine/group/CryptoPrep.flm
author Dario Sestito <darios@symbian.org>
Thu, 13 May 2010 13:41:25 +0100
branchRCL_3
changeset 28 34a204558a6a
parent 27 03016feedc4b
child 58 5816b2634c8a
permissions -rw-r--r--
Bug 2707 - cryptoprep.flm changes the value of EPOCROOT
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
25
04da681812a9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 5
diff changeset
     1
# Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     2
# All rights reserved.
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     3
# This component and the accompanying materials are made available
5
79d62d1d7957 Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 0
diff changeset
     4
# under the terms of the License "Eclipse Public License v1.0"
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     5
# which accompanies this distribution, and is available
5
79d62d1d7957 Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 0
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     7
#
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     8
# Initial Contributors:
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     9
# Nokia Corporation - initial contribution.
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    10
#
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    11
# Contributors:
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    12
#
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    13
# Description: DRM Crypto Library build configuration
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    14
#
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    15
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    16
ifeq ($(_CRYPTOPREP_FLM_),)
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    17
# first instance of this FLM
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    18
_CRYPTOPREP_FLM_:= 1
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    19
28
34a204558a6a Bug 2707 - cryptoprep.flm changes the value of EPOCROOT
Dario Sestito <darios@symbian.org>
parents: 27
diff changeset
    20
# darios: changing the value of EPOCROOT while make is running
34a204558a6a Bug 2707 - cryptoprep.flm changes the value of EPOCROOT
Dario Sestito <darios@symbian.org>
parents: 27
diff changeset
    21
# messes up the target dependecies
34a204558a6a Bug 2707 - cryptoprep.flm changes the value of EPOCROOT
Dario Sestito <darios@symbian.org>
parents: 27
diff changeset
    22
# also these two lines are not needed for this flm
34a204558a6a Bug 2707 - cryptoprep.flm changes the value of EPOCROOT
Dario Sestito <darios@symbian.org>
parents: 27
diff changeset
    23
#TMPROOT:=$(subst \,/,$(EPOCROOT))
34a204558a6a Bug 2707 - cryptoprep.flm changes the value of EPOCROOT
Dario Sestito <darios@symbian.org>
parents: 27
diff changeset
    24
#EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    25
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    26
# NB: abspath doesn't like Windows drive letters
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    27
CRYPTO_SOURCE_DRIVE:=$(firstword $(subst :, ,$(EXTENSION_ROOT)))
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    28
ifeq ($(CRYPTO_SOURCE_DRIVE),$(EXTENSION_ROOT))
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    29
CREATABLEPATH:=$(abspath $(EXTENSION_ROOT)/../drmengine/drmcrypto/build))
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    30
else
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    31
CRYPTO_ABSPATH:=$(abspath $(subst $(CRYPTO_SOURCE_DRIVE):,,$(EXTENSION_ROOT)/../drmengine/drmcrypto/build))
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    32
CREATABLEPATH:=$(CRYPTO_SOURCE_DRIVE):$(CRYPTO_ABSPATH)
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    33
endif
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    34
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    35
crypto_files:=$(wildcard $(EXTENSION_ROOT)/../drmengine/drmcrypto/CMLA/*.cpp)
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    36
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    37
ifeq ($(crypto_files),)
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    38
CMLA_CRYPTO_SOURCE:=$(CREATABLEPATH)/../stub/CmlaCryptoStub.cpp
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    39
else
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    40
CMLA_CRYPTO_SOURCE:=$(CREATABLEPATH)/../CMLA/CmlaCrypto.cpp
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    41
endif
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    42
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    43
$(CREATABLEPATH)/cmlacrypto.cpp: $(CMLA_CRYPTO_SOURCE)
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    44
	$(GNUCP) $< $@
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    45
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    46
# Create dirs
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    47
$(call makepath,$(CREATABLEPATH))
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    48
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    49
## Clean up
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    50
$(eval $(call GenerateStandardCleanTarget,$(CLEANTARGETS)))
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    51
26
c8580ce65571 Remerge fixes for Bug 2121 and Bug 1993
William Roberts <williamr@symbian.org>
parents: 25 13
diff changeset
    52
$(info <debug>$(PLATFORM) $(CFG), selecting $(CMLA_CRYPTO_SOURCE)</debug>)
25
04da681812a9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 5
diff changeset
    53
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    54
else
26
c8580ce65571 Remerge fixes for Bug 2121 and Bug 1993
William Roberts <williamr@symbian.org>
parents: 25 13
diff changeset
    55
$(info <debug>$(PLATFORM) $(CFG), already handled $(CMLA_CRYPTO_SOURCE)</debug>)
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    56
# FLM already included - don't duplicate the targets
25
04da681812a9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 5
diff changeset
    57
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    58
endif