| author | Pat Downey <patd@symbian.org> |
| Tue, 26 Oct 2010 15:52:41 +0100 | |
| branch | RCL_3 |
| changeset 89 | c38f396e1cd0 |
| parent 58 | 5816b2634c8a |
| permissions | -rw-r--r-- |
|
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 |
|
|
13
77a4e6a1beb4
Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents:
5
diff
changeset
|
21 |
# 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
|
22 |
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
|
23 |
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
|
24 |
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
|
25 |
else |
|
77a4e6a1beb4
Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents:
5
diff
changeset
|
26 |
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
|
27 |
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
|
28 |
endif |
|
0
95b198f216e5
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
29 |
|
|
95b198f216e5
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
30 |
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
|
31 |
|
|
13
77a4e6a1beb4
Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents:
5
diff
changeset
|
32 |
ifeq ($(crypto_files),) |
|
77a4e6a1beb4
Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents:
5
diff
changeset
|
33 |
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
|
34 |
else |
|
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)/../CMLA/CmlaCrypto.cpp |
|
77a4e6a1beb4
Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents:
5
diff
changeset
|
36 |
endif |
|
0
95b198f216e5
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
37 |
|
|
13
77a4e6a1beb4
Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents:
5
diff
changeset
|
38 |
$(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
|
39 |
$(GNUCP) $< $@ |
|
0
95b198f216e5
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
40 |
|
|
95b198f216e5
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
41 |
# Create dirs |
|
95b198f216e5
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
42 |
$(call makepath,$(CREATABLEPATH)) |
|
95b198f216e5
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
43 |
|
|
95b198f216e5
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
44 |
## Clean up |
|
95b198f216e5
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
45 |
$(eval $(call GenerateStandardCleanTarget,$(CLEANTARGETS))) |
|
95b198f216e5
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
46 |
|
|
26
c8580ce65571
Remerge fixes for Bug 2121 and Bug 1993
William Roberts <williamr@symbian.org>
diff
changeset
|
47 |
$(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
|
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 |
|
26
c8580ce65571
Remerge fixes for Bug 2121 and Bug 1993
William Roberts <williamr@symbian.org>
diff
changeset
|
50 |
$(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
|
51 |
# 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
|
52 |
|
|
13
77a4e6a1beb4
Rework CryptoPrep.flm to make a proper fix for Bug 2121
William Roberts <williamr@symbian.org>
parents:
5
diff
changeset
|
53 |
endif |