-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'topic/kliemann/bb-runtimes-79-native-cpu' into 'master'
Split native into separate Linux and Windows targets See merge request eng/toolchain/bb-runtimes!129
- Loading branch information
Showing
3 changed files
with
81 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
from support.bsp_sources.target import DFBBTarget | ||
|
||
|
||
class Windows(DFBBTarget): | ||
def __init__(self): | ||
super().__init__() | ||
self.add_gnat_sources("src/s-macres__native.adb", "src/s-textio__stdio.adb") | ||
|
||
@property | ||
def name(self): | ||
return self.target | ||
|
||
def has_libc(self, profile): | ||
return True | ||
|
||
def dump_runtime_xml(self, rts_name, rts): | ||
return ( | ||
'<?xml version="1.0" ?>\n' | ||
"<gprconfig>\n" | ||
" <configuration>\n" | ||
" </configuration>\n" | ||
"</gprconfig>\n" | ||
) | ||
|
||
@property | ||
def is_legacy_format(self): | ||
return True | ||
|
||
|
||
class X86Windows(Windows): | ||
@property | ||
def target(self): | ||
return "x86-windows" | ||
|
||
@property | ||
def system_ads(self): | ||
return {"light": "system-native-x86-light.ads"} | ||
|
||
|
||
class X8664Windows(Windows): | ||
@property | ||
def target(self): | ||
return "x86_64-windows" | ||
|
||
@property | ||
def is_64bit(self): | ||
return True | ||
|
||
@property | ||
def system_ads(self): | ||
return {"light": "system-native-x86-light.ads"} |