omadrm/drmengine/group/CryptoPrep.flm
author William Roberts <williamr@symbian.org>
Mon, 08 Mar 2010 17:28:28 +0000
branchRCL_3
changeset 13 77a4e6a1beb4
parent 5 79d62d1d7957
child 26 c8580ce65571
permissions -rw-r--r--
Rework CryptoPrep.flm to make a proper fix for Bug 2121
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     1
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
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
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    20
TMPROOT:=$(subst \,/,$(EPOCROOT))
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    21
EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    22
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    23
# 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
    24
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
    25
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
    26
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
    27
else
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    28
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
    29
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
    30
endif
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    31
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    32
crypto_files:=$(wildcard $(EXTENSION_ROOT)/../drmengine/drmcrypto/CMLA/*.cpp)
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    33
ifeq ($(crypto_files),)
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    34
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
    35
else
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    36
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
    37
endif
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    38
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    39
$(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
    40
	$(GNUCP) $< $@
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    41
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    42
# Create dirs
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    43
$(call makepath,$(CREATABLEPATH))
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    44
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    45
## Clean up
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    46
CLEANTARGETS:=$(CREATABLEPATH)/cmlacrypto.cpp
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    47
$(eval $(call GenerateStandardCleanTarget,$(CLEANTARGETS)))
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    48
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    49
else
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    50
# FLM already included - don't duplicate the targets
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    51
endif