omadrm/drmengine/group/CryptoPrep.flm
author William Roberts <williamr@symbian.org>
Mon, 03 May 2010 13:37:56 +0100
branchRCL_3
changeset 27 03016feedc4b
parent 26 c8580ce65571
child 28 34a204558a6a
permissions -rw-r--r--
Fix "missing endif" problem in CryptoPrep.flm
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
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)
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    33
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    34
ifeq ($(crypto_files),)
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    35
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
    36
else
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    37
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
    38
endif
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    39
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    40
$(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
    41
	$(GNUCP) $< $@
0
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    42
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    43
# Create dirs
95b198f216e5 Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    44
$(call makepath,$(CREATABLEPATH))
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
## Clean up
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
26
c8580ce65571 Remerge fixes for Bug 2121 and Bug 1993
William Roberts <williamr@symbian.org>
parents: 25 13
diff changeset
    49
$(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
    50
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    51
else
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), 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
    53
# 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
    54
13
77a4e6a1beb4 Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents: 5
diff changeset
    55
endif