(self)
| 47 | } |
| 48 | |
| 49 | def detect_build_env(self): |
| 50 | self.BUILD_ENV = platform.system() |
| 51 | assert (self.BUILD_ENV in self.SUPPORT_BUILD_ENV |
| 52 | ), "now only support build env at: {}".format( |
| 53 | self.SUPPORT_BUILD_ENV) |
| 54 | if self.BUILD_ENV == "Darwin": |
| 55 | READLINK = "greadlink" |
| 56 | elif self.BUILD_ENV == "Windows": |
| 57 | self.NINJA_BASE = "Ninja" |
| 58 | logging.debug("build runtime at host env: {}".format(self.BUILD_ENV)) |
| 59 | |
| 60 | def build(self): |
| 61 | self.detect_build_env() |