]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
easy-builder: also build builtins, make macos use builtin gtkglext
authorThomas Debesse <dev@illwieckz.net>
Mon, 21 Dec 2020 16:12:51 +0000 (17:12 +0100)
committerThomas Debesse <dev@illwieckz.net>
Tue, 22 Dec 2020 22:53:06 +0000 (23:53 +0100)
easy-builder

index 82c08d90836a84dc99d4b832d77f780d554bceff..845d2c7ca2e29f5a1e28fcf185fc6a5c923d4c8e 100755 (executable)
@@ -77,6 +77,12 @@ do
        fi
 done
 
+case "$(uname -s)" in
+       'Darwin')
+               cmake_user_opts[${#cmake_user_opts[@]}]='-DBUILTIN_GTKGLEXT=ON'
+               ;;
+esac
+
 set -x
 
 "${fetch_submodules_cmd[@]}"
@@ -91,6 +97,12 @@ cmake \
        "${cmake_user_opts[@]}" \
        "${project_source_dir}"
 
+cmake \
+       --build "${build_dir}" \
+       -- \
+       -j"${job_count}" \
+       'builtins'
+
 cmake \
        --build "${build_dir}" \
        -- \