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:
Tomasz CEDRO 2021-05-23 19:35:51 +02:00 committed by GitHub
parent 1859a8633a
commit 3a135d8210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -140,8 +140,8 @@ def build_libraries():
# 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("nmake")
elif "freebsd" in SYSTEM:
# FreeBSD distinguishes make (BSD) vs gmake (GNU). Use cmake + bsd make :-)
elif "bsd" in SYSTEM:
# *BSD distinguishes make (BSD) vs gmake (GNU). Use cmake + bsd make :-)
if not os.path.exists("build"): os.mkdir("build")
os.chdir("build")
# Do not build tests & static library