Enable detection and build on all BSD systems. (#1753)
With FreeBSD, OpenBSD, NetBSD verified we can simply use "bsd". Signed-off-by: Tomasz 'CeDeROM' CEDRO <tomek@cedro.info>
This commit is contained in:
parent
1859a8633a
commit
3a135d8210
|
@ -140,8 +140,8 @@ def build_libraries():
|
||||||
# Do not build tests & static library
|
# Do not build tests & static library
|
||||||
os.system('cmake -DCMAKE_BUILD_TYPE=RELEASE -DCAPSTONE_BUILD_TESTS=0 -DCAPSTONE_BUILD_STATIC=0 -G "NMake Makefiles" ..')
|
os.system('cmake -DCMAKE_BUILD_TYPE=RELEASE -DCAPSTONE_BUILD_TESTS=0 -DCAPSTONE_BUILD_STATIC=0 -G "NMake Makefiles" ..')
|
||||||
os.system("nmake")
|
os.system("nmake")
|
||||||
elif "freebsd" in SYSTEM:
|
elif "bsd" in SYSTEM:
|
||||||
# FreeBSD distinguishes make (BSD) vs gmake (GNU). Use cmake + bsd make :-)
|
# *BSD distinguishes make (BSD) vs gmake (GNU). Use cmake + bsd make :-)
|
||||||
if not os.path.exists("build"): os.mkdir("build")
|
if not os.path.exists("build"): os.mkdir("build")
|
||||||
os.chdir("build")
|
os.chdir("build")
|
||||||
# Do not build tests & static library
|
# Do not build tests & static library
|
||||||
|
|
Loading…
Reference in New Issue