File tree Expand file tree Collapse file tree 8 files changed +28
-8
lines changed Expand file tree Collapse file tree 8 files changed +28
-8
lines changed Original file line number Diff line number Diff line change 57
57
'eclipse_armc5' : cdt .EclipseArmc5 ,
58
58
'gnuarmeclipse' : gnuarmeclipse .GNUARMEclipse ,
59
59
'qtcreator' : qtcreator .QtCreator ,
60
- 'zip' : zip .ZIP ,
61
- 'cmsis' : cmsis .CMSIS ,
62
60
'vscode_gcc_arm' : vscode .VSCodeGcc ,
63
61
'vscode_iar' : vscode .VSCodeIAR ,
64
62
'vscode_armc5' : vscode .VSCodeArmc5
Original file line number Diff line number Diff line change 17
17
import uuid
18
18
from os .path import splitext , basename , dirname
19
19
20
- from tools .export .exporters import Exporter
20
+ from tools .export .exporters import Exporter , deprecated_exporter
21
21
22
22
23
+ @deprecated_exporter
23
24
class AtmelStudio (Exporter ):
24
25
NAME = 'AtmelStudio'
25
26
TOOLCHAIN = 'GCC_ARM'
@@ -36,6 +37,10 @@ class AtmelStudio(Exporter):
36
37
37
38
MBED_CONFIG_HEADER_SUPPORTED = True
38
39
40
+ @classmethod
41
+ def is_target_supported (cls , maybe_supported ):
42
+ return maybe_supported in cls .TARGETS
43
+
39
44
def generate (self ):
40
45
41
46
source_files = []
Original file line number Diff line number Diff line change 16
16
"""
17
17
from os .path import splitext , basename
18
18
19
- from tools .export .exporters import Exporter
19
+ from tools .export .exporters import Exporter , deprecated_exporter
20
20
21
21
22
+ @deprecated_exporter
22
23
class CoIDE (Exporter ):
23
24
NAME = 'CoIDE'
24
25
TOOLCHAIN = 'GCC_ARM'
Original file line number Diff line number Diff line change 16
16
"""
17
17
from os .path import splitext , basename
18
18
19
- from tools .export .exporters import Exporter
19
+ from tools .export .exporters import Exporter , deprecated_exporter
20
20
21
+ @deprecated_exporter
21
22
class E2Studio (Exporter ):
22
23
NAME = 'e2 studio'
23
24
TOOLCHAIN = 'GCC_ARM'
Original file line number Diff line number Diff line change @@ -25,6 +25,18 @@ def __init__(self, func):
25
25
def __get__ (self , inst , cls ):
26
26
return self .func (cls )
27
27
28
+ def deprecated_exporter (CLS ):
29
+ old_init = CLS .__init__
30
+ old_name = CLS .NAME
31
+ def __init__ (* args , ** kwargs ):
32
+ print ("==================== DEPRECATION NOTICE ====================" )
33
+ print ("The exporter %s is no longer maintained, and deprecated." % old_name )
34
+ print ("%s will be removed from mbed OS for the mbed OS 5.6 release." % old_name )
35
+ old_init (* args , ** kwargs )
36
+ CLS .__init__ = __init__
37
+ CLS .NAME = "%s (DEPRECATED)" % old_name
38
+ return CLS
39
+
28
40
class Exporter (object ):
29
41
"""Exporter base class
30
42
Original file line number Diff line number Diff line change 16
16
"""
17
17
from os .path import splitext , basename
18
18
19
- from tools .export .exporters import Exporter
19
+ from tools .export .exporters import Exporter , deprecated_exporter
20
20
21
21
22
+ @deprecated_exporter
22
23
class KDS (Exporter ):
23
24
NAME = 'Kinetis Design Studio'
24
25
TOOLCHAIN = 'GCC_ARM'
Original file line number Diff line number Diff line change 16
16
"""
17
17
from os .path import splitext , basename
18
18
19
- from tools .export .exporters import Exporter
19
+ from tools .export .exporters import Exporter , deprecated_exporter
20
20
21
+ @deprecated_exporter
21
22
class LPCXpresso (Exporter ):
22
23
NAME = 'LPCXpresso'
23
24
TOOLCHAIN = 'GCC_ARM'
Original file line number Diff line number Diff line change 16
16
"""
17
17
from os .path import split ,splitext , basename
18
18
19
- from tools .export .exporters import Exporter
19
+ from tools .export .exporters import Exporter , deprecated_exporter
20
20
21
21
class Folder :
22
22
def __init__ (self , name ):
@@ -54,6 +54,7 @@ def addChild(self, folderName):
54
54
55
55
return self .findChild (folderName )
56
56
57
+ @deprecated_exporter
57
58
class SimplicityV3 (Exporter ):
58
59
NAME = 'SimplicityV3'
59
60
TOOLCHAIN = 'GCC_ARM'
You can’t perform that action at this time.
0 commit comments