]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - easy-builder
Merge branch 'DefaultUser/Fix185_gcc13_uint64_t' into 'master'
[xonotic/netradiant.git] / easy-builder
index 9fe738b677ba4120551d6d2ba949cc45dbbef59d..47020d2d2d4892c4c0c8151beea9765bc4eccdbb 100755 (executable)
@@ -17,10 +17,15 @@ build_type='Release'
 case "$(uname -s)" in
        # Stripping is known to make non-PIE Linux netradiant binary unusable.
        # Maybe that's related to the way we patch rpath?
+       #
        # Building NetRadiant as non-PIE is required because of
        # a mistake in the mimetype-library that prevents users
        # to run the application from file managers on Linux.
+       #
        # See: https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/11
+       #
+       # After installation it's possible to strip manually all binaries except
+       # the netradiant one.
        'Linux')
                install_target='install'
                ;;
@@ -89,8 +94,7 @@ do
 done
 
 declare -a fetch_submodules_cmd
-for submodule_file in 'libs/crunch/inc/crn_decomp.h' \
-       'tools/unvanquished/daemonmap/tools/quake3/q3map2/main.c'
+for submodule_file in 'libs/crunch/inc/crn_decomp.h'
 do
        if ! [ -f "${project_source_dir}/${submodule_file}" ]
        then
@@ -130,6 +134,11 @@ task_build_builtins () {
        make -j"${job_count}" builtins
 }
 
+task_discover_builtins () {
+       sync
+       cmake "${project_source_dir}"
+}
+
 task_build () {
        sync
        make -j"${job_count}"
@@ -150,6 +159,8 @@ task_configure
 
 task_build_builtins
 
+task_discover_builtins
+
 task_build
 
 task_install