File tree Expand file tree Collapse file tree 3 files changed +40
-1
lines changed Expand file tree Collapse file tree 3 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 1+ # Copyright 2014-present PlatformIO <[email protected] > 2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ from SCons .Script import AlwaysBuild , Import
16+
17+
18+ Import ("env" )
19+
20+
21+ # Added in PIO Core 4.4.0
22+ if not hasattr (env , "AddPlatformTarget" ):
23+
24+ def AddPlatformTarget (
25+ env ,
26+ name ,
27+ dependencies ,
28+ actions ,
29+ title = None ,
30+ description = None ,
31+ always_build = True ,
32+ ):
33+ target = env .Alias (name , dependencies , actions )
34+ if always_build :
35+ AlwaysBuild (target )
36+ return target
37+
38+ env .AddMethod (AddPlatformTarget )
Original file line number Diff line number Diff line change 2121 Builder , Default , DefaultEnvironment )
2222
2323env = DefaultEnvironment ()
24+ env .SConscript ("compat.py" , exports = "env" )
2425platform = env .PioPlatform ()
2526board = env .BoardConfig ()
2627
Original file line number Diff line number Diff line change 1111 "type" : " git" ,
1212 "url" : " https://github.com/platformio/platform-nxplpc.git"
1313 },
14- "version" : " 5.2.0 " ,
14+ "version" : " 5.2.1 " ,
1515 "packageRepositories" : [
1616 " https://dl.bintray.com/platformio/dl-packages/manifest.json" ,
1717 " http://dl.platformio.org/packages/manifest.json"
You can’t perform that action at this time.
0 commit comments