CI: Various updates to buildAsterisk.sh
[asterisk/asterisk.git] / build_tools / cflags.xml
index 75d512d..6a95672 100644 (file)
-       <category name="MENUSELECT_CFLAGS" displayname="Compiler Flags" positive_output="yes">
-               <member name="DONT_OPTIMIZE" displayname="Disable Optimizations by the Compiler" remove_on_change=".lastclean">
+<category name="MENUSELECT_CFLAGS" displayname="Compiler Flags" positive_output="yes" remove_on_change=".lastclean">
+               <member name="DONT_OPTIMIZE" displayname="Disable Optimizations by the Compiler">
+                       <use autoselect="yes">COMPILE_DOUBLE</use>
+                       <support_level>core</support_level>
                </member>
-               <member name="DEBUG_THREADS" displayname="Enable Thread Debugging" touch_on_change="include/asterisk/lock.h include/asterisk/astobj2.h">
+               <member name="COMPILE_DOUBLE" displayname="Pre-compile with optimizations to detect errors, then discard and recompile with DONT_OPTIMIZE.  Creates intermediate .i files">
+                       <depend>DONT_OPTIMIZE</depend>
+                       <support_level>core</support_level>
                </member>
-               <member name="STATIC_BUILD" displayname="Build static binaries" remove_on_change=".lastclean">
+               <member name="DEBUG_THREADS" displayname="Enable Thread Debugging">
+                       <support_level>core</support_level>
                </member>
-               <member name="LOADABLE_MODULES" displayname="Runtime module loading" remove_on_change=".lastclean">
-                       <defaultenabled>yes</defaultenabled>
+               <member name="REF_DEBUG" displayname="Enable reference count debugging by default">
+                       <support_level>extended</support_level>
+               </member>
+               <member name="AO2_DEBUG" displayname="Enable internal Astobj2 debugging">
+                       <support_level>extended</support_level>
                </member>
-               <member name="DEBUG_FD_LEAKS" displayname="Enable File Descriptor Leak Detection" remove_on_change=".lastclean">
+               <member name="DEBUG_FD_LEAKS" displayname="Enable File Descriptor Leak Detection">
+                       <support_level>core</support_level>
                </member>
                <member name="REBUILD_PARSERS" displayname="Rebuild AEL and expression parsers from bison/flex source files">
                        <depend>bison</depend>
                        <depend>flex</depend>
                        <defaultenabled>no</defaultenabled>
+                       <support_level>extended</support_level>
+               </member>
+               <member name="LOW_MEMORY" displayname="Optimize for Low Memory Usage">
+                       <support_level>extended</support_level>
+               </member>
+               <member name="DISABLE_INLINE" displayname="Disable the inline API">
+                       <!-- Added to work around GCC bug
+                            See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47816
+                         -->
+                       <support_level>extended</support_level>
+               </member>
+               <member name="OPTIONAL_API" displayname="Enable the optional API">
+                       <!-- Added to manually disable the optional API, since
+                            it's now supported on all systems.
+                         -->
+                       <defaultenabled>yes</defaultenabled>
+                       <support_level>extended</support_level>
                </member>
-               <member name="LOW_MEMORY" displayname="Optimize for Low Memory Usage" remove_on_change=".lastclean">
+               <member name="BETTER_BACKTRACES" displayname="Use libbfd (GPL) to generate better inline backtraces">
+                       <depend>BFD</depend>
+                       <depend>DLADDR</depend>
+                       <defaultenabled>no</defaultenabled>
+                       <support_level>core</support_level>
                </member>
-               <member name="USE_HOARD_ALLOCATOR" displayname="Use the Hoard Memory Allocator instead of the default system one" remove_on_change=".lastclean">
+               <member name="USE_HOARD_ALLOCATOR" displayname="Use the Hoard Memory Allocator instead of the default system one">
                        <defaultenabled>no</defaultenabled>
                        <depend>hoard</depend>
+                       <support_level>extended</support_level>
                </member>
-               <member name="LOTS_OF_SPANS" displayname="More than 32 DAHDI spans" touch_on_change="channels/chan_dahdi.c">
+               <member name="LOTS_OF_SPANS" displayname="More than 32 DAHDI spans">
+                       <support_level>core</support_level>
                </member>
-               <member name="RADIO_RELAX" displayname="Relax DTMF for Radio Applications" touch_on_change="main/dsp.c">
+               <member name="RADIO_RELAX" displayname="Relax DTMF for Radio Applications">
+                       <support_level>extended</support_level>
                </member>
-               <member name="G711_NEW_ALGORITHM" displayname="Use the NEW ulaw/alaw codecs (slower, but cleaner)" touch_on_change="include/asterisk/alaw.h include/asterisk/ulaw.h">
+               <member name="G711_NEW_ALGORITHM" displayname="Use the NEW ulaw/alaw codecs (slower, but cleaner)">
                        <defaultenabled>no</defaultenabled>
+                       <support_level>extended</support_level>
                </member>
-               <member name="G711_REDUCED_BRANCHING" displayname="New ulaw/alaw codec, reduced branching (might help it run faster in some architectures)" touch_on_change="include/asterisk/alaw.h include/asterisk/ulaw.h">
+               <member name="G711_REDUCED_BRANCHING" displayname="New ulaw/alaw codec, reduced branching (might help it run faster in some architectures)">
                        <depend>G711_NEW_ALGORITHM</depend>
+                       <support_level>extended</support_level>
                </member>
-               <member name="TEST_CODING_TABLES" displayname="New ulaw/alaw codec, turn on table tests on init" touch_on_change="main/ulaw.c main/alaw.c">
+               <member name="TEST_CODING_TABLES" displayname="New ulaw/alaw codec, turn on table tests on init">
                        <depend>G711_NEW_ALGORITHM</depend>
+                       <support_level>extended</support_level>
                </member>
-               <member name="TEST_TANDEM_TRANSCODING" displayname="New ulaw/alaw codec, turn on transcoding tests on init" touch_on_change="main/ulaw.c main/alaw.c">
+               <member name="TEST_TANDEM_TRANSCODING" displayname="New ulaw/alaw codec, turn on transcoding tests on init">
                        <depend>G711_NEW_ALGORITHM</depend>
-               </member>
-               <member name="MALLOC_DEBUG" displayname="Keep Track of Memory Allocations" remove_on_change=".lastclean">
-               </member>
-               <member name="BUSYDETECT_TONEONLY" displayname="Enable additional comparison of only the tone duration not the silence part" touch_on_change="main/dsp.c channels/chan_dahdi.c">
+                       <support_level>extended</support_level>
+               </member>
+               <member name="MALLOC_DEBUG" displayname="Keep Track of Memory Allocations">
+                       <support_level>core</support_level>
+               </member>
+               <member name="DEBUG_CHAOS" displayname="Randomly FAIL memory allocations or other operations">
+                       <support_level>core</support_level>
+               </member>
+               <member name="ADDRESS_SANITIZER" displayname="Address Sanitizer">
+                       <depend>HAVE_ADDRESS_SANITIZER</depend>
+                       <support_level>extended</support_level>
+                       <conflict>THREAD_SANITIZER</conflict>
+                       <conflict>LEAK_SANITIZER</conflict>
+                       <conflict>MALLOC_DEBUG</conflict>
+                       <conflict>DEBUG_CHAOS</conflict>
+               </member>
+               <member name="THREAD_SANITIZER" displayname="Thread Sanitizer">
+                       <depend>HAVE_THREAD_SANITIZER</depend>
+                       <support_level>extended</support_level>
+                       <conflict>ADDRESS_SANITIZER</conflict>
+                       <conflict>LEAK_SANITIZER</conflict>
+               </member>
+               <member name="LEAK_SANITIZER" displayname="Leak Sanitizer">
+                       <depend>HAVE_LEAK_SANITIZER</depend>
+                       <support_level>extended</support_level>
+                       <conflict>ADDRESS_SANITIZER</conflict>
+                       <conflict>THREAD_SANITIZER</conflict>
+                       <conflict>MALLOC_DEBUG</conflict>
+                       <conflict>DEBUG_CHAOS</conflict>
+               </member>
+               <member name="UNDEFINED_SANITIZER" displayname="Undefined Behavior Sanitizer">
+                       <depend>HAVE_UNDEFINED_SANITIZER</depend>
+                       <support_level>extended</support_level>
+               </member>
+               <member name="BUSYDETECT_TONEONLY" displayname="Enable additional comparision of only the tone duration not the silence part">
                        <conflict>BUSYDETECT_COMPARE_TONE_AND_SILENCE</conflict>
                        <defaultenabled>no</defaultenabled>
+                       <support_level>extended</support_level>
                </member>
-               <member name="BUSYDETECT_COMPARE_TONE_AND_SILENCE" displayname="Assume that tone and silence have the same duration" touch_on_change="main/dsp.c channels/chan_dahdi.c">
+               <member name="BUSYDETECT_COMPARE_TONE_AND_SILENCE" displayname="Assume that tone and silence have the same duration">
                        <conflict>BUSYDETECT_TONEONLY</conflict>
                        <defaultenabled>no</defaultenabled>
+                       <support_level>extended</support_level>
                </member>
-               <member name="BUSYDETECT_DEBUG" displayname="Enable additional busy detection debugging" touch_on_change="main/dsp.c channels/chan_dahdi.c">
+               <member name="BUSYDETECT_DEBUG" displayname="Enable additional busy detection debugging">
                        <defaultenabled>no</defaultenabled>
+                       <support_level>extended</support_level>
                </member>
-               <member name="IAX_OLD_FIND" displayname="Use the old, slow method of searching for IAX callnos" touch_on_change="channels/chan_iax2.c">
+               <member name="INTEGER_CALLERID" displayname="Use the (less accurate) integer-based method for decoding FSK tones (for embedded systems)">
+                       <support_level>extended</support_level>
                </member>
-               <member name="INTEGER_CALLERID" displayname="Use the (less accurate) integer-based method for decoding FSK tones (for embedded systems)" touch_on_change="include/asterisk/fskmodem.h">
+               <member name="BUILD_NATIVE" displayname="Allow compiler to generate code optimized for the CPU on which the build is performed.">
+                       <support_level>core</support_level>
+                       <defaultenabled>yes</defaultenabled>
+                       <depend>native_arch</depend>
                </member>
        </category>