32 lines
539 B
Python
32 lines
539 B
Python
|
|
import os
|
||
|
|
|
||
|
|
class Builder:
|
||
|
|
def get_prefix(self):
|
||
|
|
return os.environ.get('MEADOW_NATIVE_ROOT', None)
|
||
|
|
|
||
|
|
|
||
|
|
def get_target(self):
|
||
|
|
env = os.environ
|
||
|
|
target = os.environ.get('MEADOW_TARGET_PLATFORM', None)
|
||
|
|
parts = target.split('-')
|
||
|
|
return f'{parts[0]}-rosetta'
|
||
|
|
|
||
|
|
|
||
|
|
def download(self):
|
||
|
|
pass
|
||
|
|
|
||
|
|
|
||
|
|
def configure(self):
|
||
|
|
pass
|
||
|
|
|
||
|
|
|
||
|
|
def build(self):
|
||
|
|
pass
|
||
|
|
|
||
|
|
|
||
|
|
def install(self):
|
||
|
|
pass
|
||
|
|
|
||
|
|
|
||
|
|
print(f'building cross compiler for {get_gcc_target()}, installed to {get_prefix()}')
|