@@ -75,8 +75,8 @@ export const EIDE_CONF_VERSION = '3.1';
7575
7676////////////////////////////////////////////////////////
7777
78- export abstract class ManagerInterface {
79- abstract Init ( ) : void ;
78+ export interface ManagerInterface {
79+ Init ( ) : void ;
8080}
8181
8282export interface FileItem {
@@ -445,7 +445,9 @@ export interface VirtualFolder {
445445 folders : VirtualFolder [ ] ;
446446}
447447
448- export interface ProjectConfigData < T extends CompileData > {
448+ export interface BuilderConfigData { }
449+
450+ export interface ProjectConfigData < T extends BuilderConfigData > {
449451
450452 name : string ;
451453 type : ProjectType ;
@@ -488,7 +490,7 @@ interface ProjectConfigApi {
488490 toRelativePath : ( path : string ) => string ;
489491}
490492
491- export class ProjectConfiguration < T extends CompileData >
493+ export class ProjectConfiguration < T extends BuilderConfigData >
492494 extends Configuration < ProjectConfigData < T > , ProjectConfigEvent > {
493495
494496 static readonly BUILD_IN_GROUP_NAME = 'build-in' ;
@@ -1537,8 +1539,6 @@ export abstract class ConfigModel<DataType> {
15371539// Compiler Models
15381540//////////////////////////////////////////////////////////////////////////////////
15391541
1540- interface CompileData { }
1541-
15421542export interface ICompileOptions {
15431543 version : number ;
15441544 beforeBuildTasks ?: any [ ] ;
@@ -1558,7 +1558,7 @@ export abstract class CompileConfigModel<T> extends ConfigModel<T> {
15581558 this . prjConfigData = config ;
15591559 }
15601560
1561- static getInstance < T extends CompileData > ( prjConfigData : ProjectConfigData < any > ) : CompileConfigModel < T > {
1561+ static getInstance < T extends BuilderConfigData > ( prjConfigData : ProjectConfigData < any > ) : CompileConfigModel < T > {
15621562 switch ( prjConfigData . toolchain ) {
15631563 case 'SDCC' :
15641564 return < any > new SdccCompileConfigModel ( prjConfigData ) ;
@@ -1647,7 +1647,8 @@ export interface ARMStorageLayout {
16471647
16481648export type FloatingHardwareOption = 'no_dsp' | 'none' | 'single' | 'double' ;
16491649
1650- export interface ArmBaseCompileData extends CompileData {
1650+ // deprecated
1651+ export interface ArmBaseCompileData extends BuilderConfigData {
16511652 cpuType : string ;
16521653 floatingPointHardware : FloatingHardwareOption ;
16531654 useCustomScatterFile : boolean ;
@@ -1656,6 +1657,8 @@ export interface ArmBaseCompileData extends CompileData {
16561657 options : string ;
16571658}
16581659
1660+ export type ArmBaseBuilderConfigData = ArmBaseCompileData ;
1661+
16591662/**
16601663 * @note We need export this class, becasue we need export internal functions
16611664 * */
@@ -2052,11 +2055,14 @@ class GccCompileConfigModel extends ArmBaseCompileConfigModel {
20522055
20532056// -------- RISC-V --------
20542057
2055- export interface RiscvCompileData extends CompileData {
2058+ // deprecated
2059+ export interface RiscvCompileData extends BuilderConfigData {
20562060 linkerScriptPath : string ;
20572061 options : string ;
20582062}
20592063
2064+ export type RiscvBuilderConfigData = RiscvCompileData ;
2065+
20602066class RiscvCompileConfigModel extends CompileConfigModel < RiscvCompileData > {
20612067
20622068 GetKeyDescription ( key : string ) : string {
@@ -2153,11 +2159,14 @@ class RiscvCompileConfigModel extends CompileConfigModel<RiscvCompileData> {
21532159
21542160// -------- ANY-GCC ---------
21552161
2156- export interface AnyGccCompileData extends CompileData {
2162+ // deprecated
2163+ export interface AnyGccCompileData extends BuilderConfigData {
21572164 linkerScriptPath : string ;
21582165 options : string ;
21592166}
21602167
2168+ export type AnyGccBuilderConfigData = AnyGccCompileData ;
2169+
21612170class AnyGccCompileConfigModel extends CompileConfigModel < AnyGccCompileData > {
21622171
21632172 GetKeyDescription ( key : string ) : string {
@@ -2254,11 +2263,14 @@ class AnyGccCompileConfigModel extends CompileConfigModel<AnyGccCompileData> {
22542263
22552264// -------- 8Bit ----------
22562265
2257- export interface C51BaseCompileData extends CompileData {
2266+ // deprecated
2267+ export interface C51BaseCompileData extends BuilderConfigData {
22582268 options : string ;
22592269 linkerScript ?: string ;
22602270}
22612271
2272+ export type C51BuilderConfigData = C51BaseCompileData ;
2273+
22622274abstract class C51BaseCompileConfigModel extends CompileConfigModel < C51BaseCompileData > {
22632275
22642276 constructor ( config : ProjectConfigData < any > ) {
0 commit comments