]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - easy-builder
prevent string overflow in radiant md2 loader
[xonotic/netradiant.git] / easy-builder
index 9fe738b677ba4120551d6d2ba949cc45dbbef59d..220649fd9cf2b8d6d0a4cc2a2c074e87913377d1 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'
                ;;
@@ -130,6 +135,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 +160,8 @@ task_configure
 
 task_build_builtins
 
+task_discover_builtins
+
 task_build
 
 task_install