2
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 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 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
package com.nokia.carbide.cdt.builder.project;
|
|
18 |
|
|
19 |
import java.util.List;
|
|
20 |
|
|
21 |
import com.nokia.carbide.cpp.sdk.core.ISymbianBuildContext;
|
|
22 |
|
|
23 |
/**
|
|
24 |
* An ICarbideBuildConfiguration interface represents on buildable target for a project. A single
|
|
25 |
* Carbide.c++ project (ICarbideProjectInfo) contains 1 to N ICarbideBuildConfigation objects.
|
|
26 |
*
|
|
27 |
*/
|
|
28 |
public interface ICarbideBuildConfiguration extends ISymbianBuildContext {
|
|
29 |
|
|
30 |
/** Integer identifier for the set of parser to be used for building the WINSCW platform */
|
|
31 |
public static final int ERROR_PARSERS_WINSCW = 1;
|
|
32 |
/** Integer identifier for the set of parser to be used for building the GCCE platform */
|
|
33 |
public static final int ERROR_PARSERS_GCCE = 2;
|
|
34 |
/** Integer identifier for the set of parser to be used for building the ARMVx platforms */
|
|
35 |
public static final int ERROR_PARSERS_ARMVx = 3;
|
|
36 |
/** Integer identifier for the set of parser to be used for building with makesis, makekeys, and signsis */
|
|
37 |
public static final int ERROR_PARSERS_SIS_BUILDER = 4;
|
|
38 |
/** Integer identifier for the set of parser to be used for building the ARMI, THUMB, and ARM4 platforms */
|
|
39 |
public static final int ERROR_PARSERS_ARM_EKA1 = 5;
|
|
40 |
/** Integer identifier for the set of parser to be used when calling bldmake bldfiles platform */
|
|
41 |
public static final int ERROR_PARSERS_BLDMAKE_MAKE = 6;
|
|
42 |
/** Integer identifier for the set of parser to be used for building ROM images */
|
|
43 |
public static final int ERROR_PARSERS_ROM_BUILDER = 7;
|
|
44 |
/** Integer identifier to use all available parsers */
|
|
45 |
public static final int ERROR_PARSERS_ALL = 99;
|
|
46 |
|
|
47 |
/**
|
|
48 |
* Get a list of error parser ID's
|
|
49 |
* @return A full list of error parser IDs. Returns an empty array if none are specified
|
|
50 |
*/
|
|
51 |
String[] getErrorParserList();
|
|
52 |
|
|
53 |
/**
|
|
54 |
* Writes this configuration to the .settings\file. If the data does no exist it will
|
|
55 |
* be created. Otherwise the configuration data will be updated.
|
|
56 |
* @param refreshFileSystem - Set to true if eclipse needs to know about changes to the file system. Set to false if there's possibility thata the ressource tree is locked on the project (e.g. the project is being created)
|
|
57 |
* @return true on success, false otherwise.
|
|
58 |
*/
|
|
59 |
boolean saveConfiguration(boolean refreshFileSystem);
|
|
60 |
|
|
61 |
/**
|
|
62 |
* Get the modifiable list of SIS builder info. Contains pref settings used to generated SIS files from PKG files
|
|
63 |
* @return ISiSBuilderInfo list, which may be empty
|
|
64 |
*/
|
|
65 |
List<ISISBuilderInfo> getSISBuilderInfoList();
|
|
66 |
|
|
67 |
/**
|
102
|
68 |
* Get the (abld)build arguments info. Contains pref settings from the Arguments tab.
|
|
69 |
* This only applies when building with SBSv1 (bldmake, abld)
|
2
|
70 |
* @return IBuildArgumentsInfo instance, never null
|
|
71 |
*/
|
|
72 |
IBuildArgumentsInfo getBuildArgumentsInfo();
|
|
73 |
|
|
74 |
/**
|
102
|
75 |
* Set the build arguments info for SBSv2 build arguments
|
|
76 |
* @return IBuildArgumentsInfo instance, never null
|
|
77 |
*/
|
|
78 |
void setBuildArgumentsInfo(IBuildArgumentsInfo bldArgInfo);
|
|
79 |
|
|
80 |
/**
|
2
|
81 |
* Get the parent Carbide project of this configuration.
|
|
82 |
* @return ICarbideProjectInfo
|
|
83 |
*/
|
|
84 |
ICarbideProjectInfo getCarbideProject();
|
|
85 |
|
|
86 |
/**
|
|
87 |
* Get the environment variables for this configuration.
|
|
88 |
* @return IEnvironmentVarsInfo object.
|
|
89 |
*/
|
|
90 |
IEnvironmentVarsInfo getEnvironmentVarsInfo();
|
|
91 |
|
|
92 |
/**
|
|
93 |
* Get the id that specifies the array of error parsers to use for a given build platform.
|
|
94 |
* @return The integer ID of the parser to be use.
|
|
95 |
* @see CarbideCPPBuilder.getParserIds(int id)
|
|
96 |
*/
|
|
97 |
int getErrorParserId();
|
|
98 |
|
|
99 |
/**
|
|
100 |
* Returns the list of all built in macros for this configuration
|
|
101 |
* <p>
|
|
102 |
* Macros will be just a name, e.g. "_DEBUG", "__SYMBIAN32__", etc..
|
|
103 |
* </p>
|
|
104 |
*
|
|
105 |
* @return a list of macros which may be empty.
|
|
106 |
*/
|
|
107 |
List<String> getBuiltinMacros();
|
|
108 |
|
|
109 |
/**
|
|
110 |
* Returns the ROM builder info from the ROM Builder tab.
|
|
111 |
* @return
|
|
112 |
*/
|
|
113 |
IROMBuilderInfo getROMBuildInfo();
|
|
114 |
|
|
115 |
}
|