This commit is contained in:
M 2020-09-11 21:03:43 +00:00 committed by GitHub
commit 9f250cae65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -17,6 +17,7 @@ debug_opts='--enable-debug'
user_opts=''
build_cflags='-O0 -g'
job_count='4'
make_tool='make'
while [ ! -z ${1} ]
do
@ -65,6 +66,12 @@ case "$(uname -s)" in # adjust compilation option based on platform
sys_opts='--python=python3 --disable-cocoa --disable-opengl --disable-fortify-source'
postbuild='package_windows' # set the above function to be called after build
;;
Free*|Open*|Net*|DragonFly*|BSD)
echo 'Compiling for BSD…'
sys_cflags='-march=native'
sys_opts='--disable-kvm --disable-xen --disable-werror --enable-bsd-user'
make_tool='gmake'
;;
*)
echo "could not detect OS $(uname -s), aborting" >&2
exit -1
@ -136,6 +143,6 @@ set -x # Print commands from now on
--disable-blobs \
${user_opts}
time make -j"${job_count}" subdir-i386-softmmu 2>&1 | tee build.log
time "${make_tool}" -j"${job_count}" subdir-i386-softmmu 2>&1 | tee build.log
${postbuild} # call post build functions

View File

@ -1,4 +1,8 @@
obj-y += gloffscreen_common.o
obj-$(CONFIG_WIN32) += gloffscreen_wgl.o
obj-$(CONFIG_DARWIN) += gloffscreen_cgl.o
obj-$(CONFIG_LINUX) += gloffscreen_glx.o
obj-$(CONFIG_DARWIN) += gloffscreen_cgl.o
ifneq ($(CONFIG_DARWIN),y)
obj-$(CONFIG_BSD) += gloffscreen_glx.o
endif