diff options
author | Ryo ONODERA <ryo_on@yk.rim.or.jp> | 2014-07-19 09:45:25 (GMT) |
---|---|---|
committer | Ryo ONODERA <ryo_on@yk.rim.or.jp> | 2014-07-19 09:45:25 (GMT) |
commit | 9138007a916fe96274782dbdd02c45d7759caf8c (patch) | |
tree | 1fa6bd3c53b0d4cd95f6ec9ba1b769af86393d6c /platform_helper.py | |
parent | 0917ff862bc54626b68bcdc208551e9ab17a2e4a (diff) | |
download | Ninja-9138007a916fe96274782dbdd02c45d7759caf8c.zip Ninja-9138007a916fe96274782dbdd02c45d7759caf8c.tar.gz Ninja-9138007a916fe96274782dbdd02c45d7759caf8c.tar.bz2 |
Add NetBSD support.
It works fine under NetBSD/amd64 6.99.47.
Diffstat (limited to 'platform_helper.py')
-rw-r--r-- | platform_helper.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/platform_helper.py b/platform_helper.py index bc3a125..eab8262 100644 --- a/platform_helper.py +++ b/platform_helper.py @@ -19,7 +19,7 @@ import sys def platforms(): return ['linux', 'darwin', 'freebsd', 'openbsd', 'solaris', 'sunos5', - 'mingw', 'msvc', 'gnukfreebsd', 'bitrig'] + 'mingw', 'msvc', 'gnukfreebsd', 'bitrig', 'netbsd'] class Platform(object): def __init__(self, platform): @@ -43,6 +43,8 @@ class Platform(object): self._platform = 'msvc' elif self._platform.startswith('bitrig'): self._platform = 'bitrig' + elif self._platform.startswith('netbsd'): + self._platform = 'netbsd' def platform(self): return self._platform @@ -81,3 +83,6 @@ class Platform(object): def is_bitrig(self): return self._platform == 'bitrig' + + def is_netbsd(self): + return self._platform == 'netbsd' |