author | timkelly |
Wed, 11 Aug 2010 18:14:52 -0500 | |
branch | C3_BUILDER_WORK |
changeset 1811 | b1772bf1197b |
parent 1621 | 393b985a50f3 |
child 1871 | 4d38e1ac1cff |
permissions | -rw-r--r-- |
1434 | 1 |
/* |
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
* All rights reserved. |
|
4 |
* This component and the accompanying materials are made available |
|
5 |
* under the terms of the License "Eclipse Public License v1.0" |
|
6 |
* which accompanies this distribution, and is available |
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
* |
|
9 |
* Initial Contributors: |
|
10 |
* Nokia Corporation - initial contribution. |
|
11 |
* |
|
12 |
*/ |
|
13 |
||
14 |
package com.nokia.carbide.cpp.internal.api.sdk; |
|
15 |
||
16 |
import java.util.List; |
|
1568
508bfdb3a934
Added caching of Raptor query data for aliases, products and configs.
stechong
parents:
1471
diff
changeset
|
17 |
import java.util.Map; |
1434 | 18 |
|
19 |
import org.eclipse.core.runtime.IPath; |
|
20 |
||
21 |
import com.nokia.carbide.cpp.sdk.core.ISDKBuildInfo; |
|
22 |
||
23 |
/** |
|
24 |
* Interface for SBSv2 specific build information. |
|
25 |
* |
|
26 |
*/ |
|
27 |
public interface ISBSv2BuildInfo extends ISDKBuildInfo { |
|
28 |
||
1462 | 29 |
/** |
1811
b1772bf1197b
major refactor to wrap retieval of macros all around ISymbianBuildContext, to avoid need to access internal apis. Added getTargetTypeMacro(String targettype),
timkelly
parents:
1621
diff
changeset
|
30 |
* Returns the list of all platform/metadata macros for a given build alias (sbs configuration). |
1434 | 31 |
* <p> |
1811
b1772bf1197b
major refactor to wrap retieval of macros all around ISymbianBuildContext, to avoid need to access internal apis. Added getTargetTypeMacro(String targettype),
timkelly
parents:
1621
diff
changeset
|
32 |
* These are the <metadata/> macros from a query to Raptor with 'sbs --query=config[<config>]. |
b1772bf1197b
major refactor to wrap retieval of macros all around ISymbianBuildContext, to avoid need to access internal apis. Added getTargetTypeMacro(String targettype),
timkelly
parents:
1621
diff
changeset
|
33 |
* These are the macros that can be used in MMP and INF files. |
1434 | 34 |
* </p> |
1811
b1772bf1197b
major refactor to wrap retieval of macros all around ISymbianBuildContext, to avoid need to access internal apis. Added getTargetTypeMacro(String targettype),
timkelly
parents:
1621
diff
changeset
|
35 |
* @param sbs build alias |
b1772bf1197b
major refactor to wrap retieval of macros all around ISymbianBuildContext, to avoid need to access internal apis. Added getTargetTypeMacro(String targettype),
timkelly
parents:
1621
diff
changeset
|
36 |
* @return a map of macros and value pairs, which may be empty. |
1434 | 37 |
*/ |
1811
b1772bf1197b
major refactor to wrap retieval of macros all around ISymbianBuildContext, to avoid need to access internal apis. Added getTargetTypeMacro(String targettype),
timkelly
parents:
1621
diff
changeset
|
38 |
Map<String, String> getMetadataMacros(String buildAlias); |
1462 | 39 |
|
40 |
/** |
|
1811
b1772bf1197b
major refactor to wrap retieval of macros all around ISymbianBuildContext, to avoid need to access internal apis. Added getTargetTypeMacro(String targettype),
timkelly
parents:
1621
diff
changeset
|
41 |
* Returns the list of all build macros fro a given build alias (sbs configuration). |
b1772bf1197b
major refactor to wrap retieval of macros all around ISymbianBuildContext, to avoid need to access internal apis. Added getTargetTypeMacro(String targettype),
timkelly
parents:
1621
diff
changeset
|
42 |
* <p> |
b1772bf1197b
major refactor to wrap retieval of macros all around ISymbianBuildContext, to avoid need to access internal apis. Added getTargetTypeMacro(String targettype),
timkelly
parents:
1621
diff
changeset
|
43 |
* These are the <build/> macros from a query to Raptor with 'sbs --query=config[<config>]. |
b1772bf1197b
major refactor to wrap retieval of macros all around ISymbianBuildContext, to avoid need to access internal apis. Added getTargetTypeMacro(String targettype),
timkelly
parents:
1621
diff
changeset
|
44 |
* These are the macros that can be used in C/C++ files. |
b1772bf1197b
major refactor to wrap retieval of macros all around ISymbianBuildContext, to avoid need to access internal apis. Added getTargetTypeMacro(String targettype),
timkelly
parents:
1621
diff
changeset
|
45 |
* </p> |
b1772bf1197b
major refactor to wrap retieval of macros all around ISymbianBuildContext, to avoid need to access internal apis. Added getTargetTypeMacro(String targettype),
timkelly
parents:
1621
diff
changeset
|
46 |
* @param buildAlias |
b1772bf1197b
major refactor to wrap retieval of macros all around ISymbianBuildContext, to avoid need to access internal apis. Added getTargetTypeMacro(String targettype),
timkelly
parents:
1621
diff
changeset
|
47 |
* @return a map of macros and value pairs, which may be empty. |
b1772bf1197b
major refactor to wrap retieval of macros all around ISymbianBuildContext, to avoid need to access internal apis. Added getTargetTypeMacro(String targettype),
timkelly
parents:
1621
diff
changeset
|
48 |
*/ |
b1772bf1197b
major refactor to wrap retieval of macros all around ISymbianBuildContext, to avoid need to access internal apis. Added getTargetTypeMacro(String targettype),
timkelly
parents:
1621
diff
changeset
|
49 |
public Map<String, String> getBuildMacros(String buildAlias); |
b1772bf1197b
major refactor to wrap retieval of macros all around ISymbianBuildContext, to avoid need to access internal apis. Added getTargetTypeMacro(String targettype),
timkelly
parents:
1621
diff
changeset
|
50 |
|
b1772bf1197b
major refactor to wrap retieval of macros all around ISymbianBuildContext, to avoid need to access internal apis. Added getTargetTypeMacro(String targettype),
timkelly
parents:
1621
diff
changeset
|
51 |
/** |
1462 | 52 |
* Get the full path to the prefix file defined under \epoc32\tools\variant\variant.cfg |
53 |
* @return A path object, or null if the variant.cfg does not exist. This routine does not check to see if the returned path exists. |
|
54 |
*/ |
|
55 |
public IPath getPrefixFromVariantCfg(); |
|
56 |
||
57 |
/** |
|
1811
b1772bf1197b
major refactor to wrap retieval of macros all around ISymbianBuildContext, to avoid need to access internal apis. Added getTargetTypeMacro(String targettype),
timkelly
parents:
1621
diff
changeset
|
58 |
* Get the macro for the given target type, e.g. "__EXE__" or "__DLL__" |
1434 | 59 |
* @param targettype |
60 |
* @return list of macro strings, may be empty |
|
61 |
*/ |
|
1811
b1772bf1197b
major refactor to wrap retieval of macros all around ISymbianBuildContext, to avoid need to access internal apis. Added getTargetTypeMacro(String targettype),
timkelly
parents:
1621
diff
changeset
|
62 |
String getTargetTypeMacro(String targettype); |
1434 | 63 |
|
64 |
/** |
|
65 |
* Tells whether or not the plug-in installer has sniffed this SDK for eclipse plug-ins to install. |
|
66 |
* @return true if the SDK was scanned. |
|
67 |
* @since 2.0 |
|
68 |
*/ |
|
1462 | 69 |
boolean isPreviouslyScanned(); |
1434 | 70 |
|
1462 | 71 |
void setPreviouslyScanned(boolean wasScanned); |
1434 | 72 |
|
73 |
} |