]> Kevux Git Server - control/commitdiff
Update: Add android build support. development
authorKevin Day <Kevin@kevux.org>
Fri, 6 Sep 2024 01:28:22 +0000 (20:28 -0500)
committerKevin Day <Kevin@kevux.org>
Fri, 6 Sep 2024 01:28:22 +0000 (20:28 -0500)
data/build/settings
data/build/settings.control
data/build/stand_alone/settings.control

index d5ca4f4415fee707c65499d73e52fac7683463ae..35e9961253abf2a0855f8e9517976664b5efff62 100644 (file)
@@ -1,15 +1,16 @@
 # fss-0001
 #
 # Modes:
-#   - individual:        Compile using per project (individual) libraries, does not handle thread or threadless cases.
-#   - individual_thread: This is required when compiling in individual mode with "thread" mode.
-#   - level:             Compile using per level libraries.
-#   - monolithic:        Compile using per monolithic libraries.
+#   - android:           Compile on an android system (using Termux; may need modification depending on the android system).
 #   - clang:             Use CLang rather than the default, which is generally GCC.
 #   - coverage:          Compile for building coverage.
 #   - fanalyzer:         Compile using GCC's -fanalyzer compile time option.
 #   - gcc:               Use GCC specific settings.
 #   - gcc_13:            Use GCC version 13 or greater specific settings.
+#   - individual:        Compile using per project (individual) libraries, does not handle thread or threadless cases.
+#   - individual_thread: This is required when compiling in individual mode with "thread" mode.
+#   - level:             Compile using per level libraries.
+#   - monolithic:        Compile using per monolithic libraries.
 #   - test:              Compile for a test, such as unit testing.
 #   - thread:            Compile with thread support.
 #   - threadless:        Compile without thread support.
@@ -23,7 +24,7 @@ version_micro 0
 version_file micro
 version_target minor
 
-modes individual individual_thread level monolithic clang coverage fanalyzer gcc gcc_13 test thread threadless
+modes android clang coverage fanalyzer gcc gcc_13 individual individual_thread level monolithic test thread threadless
 modes_default monolithic thread gcc
 
 build_compiler gcc
@@ -78,12 +79,14 @@ environment LANG LC_ALL LC_COLLATE LC_CTYPE LC_FASTMSG LC_MESSAGES LC_MONETARY L
 
 #defines -D_di_libcap_
 defines -D_libcap_legacy_only_
+defines-android -D_di_f_thread_attribute_affinity_get_ -D_di_f_thread_attribute_affinity_set_ -D_di_f_thread_attribute_concurrency_get_ -D_di_f_thread_attribute_concurrency_set_ -D_di_f_thread_attribute_default_get_ -D_di_f_thread_attribute_default_set_ -D_di_f_thread_cancel_ -D_di_f_thread_cancel_state_set_ -D_di_f_thread_cancel_test_ -D_di_f_thread_join_try_ -D_di_f_thread_join_timed_ -D_pthread_mutex_prioceiling_unsupported_ -D_di_f_thread_semaphore_file_close_ -D_di_f_thread_semaphore_file_open_ -D_di_f_thread_semaphore_file_delete_ -D_di_f_thread_cancel_type_set_
 defines-thread -D_pthread_attr_unsupported_ -D_pthread_sigqueue_unsupported_
 defines-threadless -D_di_thread_support_
 
 flags -O2 -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces
 flags -fstack-clash-protection -fno-delete-null-pointer-checks
 flags -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now
+flags-android -Wno-implicit-function-declaration -Wl,-z,norelro
 flags-clang -Wno-logical-op-parentheses
 flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/
 flags-fanalyzer -fanalyzer
@@ -94,3 +97,4 @@ flags-thread -pthread
 flags_library -fPIC
 flags_object -fPIC
 flags_program -fPIE
+flags_program-android -fPIE -Wl,-z,relro
index 0d0f399ee4745717a43af1fcfbbd99884f53f9c9..95b0b85a7cc873889712edcacbcb29de6f38e98e 100644 (file)
@@ -1,15 +1,16 @@
 # fss-0001
 #
 # Modes:
-#   - individual:        Compile using per project (individual) libraries, does not handle thread or threadless cases.
-#   - individual_thread: This is required when compiling in individual mode with "thread" mode.
-#   - level:             Compile using per level libraries.
-#   - monolithic:        Compile using per monolithic libraries.
+#   - android:           Compile on an android system (using Termux; may need modification depending on the android system).
 #   - clang:             Use CLang rather than the default, which is generally GCC.
 #   - coverage:          Compile for building coverage.
 #   - fanalyzer:         Compile using GCC's -fanalyzer compile time option.
 #   - gcc:               Use GCC specific settings.
 #   - gcc_13:            Use GCC version 13 or greater specific settings.
+#   - individual:        Compile using per project (individual) libraries, does not handle thread or threadless cases.
+#   - individual_thread: This is required when compiling in individual mode with "thread" mode.
+#   - level:             Compile using per level libraries.
+#   - monolithic:        Compile using per monolithic libraries.
 #   - test:              Compile for a test, such as unit testing.
 #   - thread:            Compile with thread support.
 #   - threadless:        Compile without thread support.
@@ -23,7 +24,7 @@ version_micro 0
 version_file micro
 version_target minor
 
-modes individual individual_thread level monolithic clang coverage fanalyzer gcc gcc_13 test thread threadless
+modes android clang coverage fanalyzer gcc gcc_13 individual individual_thread level monolithic test thread threadless
 modes_default monolithic thread gcc
 
 build_compiler gcc
@@ -77,12 +78,14 @@ environment LANG LC_ALL LC_COLLATE LC_CTYPE LC_FASTMSG LC_MESSAGES LC_MONETARY L
 
 #defines -D_di_libcap_
 defines -D_libcap_legacy_only_
+defines-android -D_di_f_thread_attribute_affinity_get_ -D_di_f_thread_attribute_affinity_set_ -D_di_f_thread_attribute_concurrency_get_ -D_di_f_thread_attribute_concurrency_set_ -D_di_f_thread_attribute_default_get_ -D_di_f_thread_attribute_default_set_ -D_di_f_thread_cancel_ -D_di_f_thread_cancel_state_set_ -D_di_f_thread_cancel_test_ -D_di_f_thread_join_try_ -D_di_f_thread_join_timed_ -D_pthread_mutex_prioceiling_unsupported_ -D_di_f_thread_semaphore_file_close_ -D_di_f_thread_semaphore_file_open_ -D_di_f_thread_semaphore_file_delete_ -D_di_f_thread_cancel_type_set_
 defines-thread -D_pthread_attr_unsupported_ -D_pthread_sigqueue_unsupported_
 defines-threadless -D_di_thread_support_
 
 flags -O2 -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces
 flags -fstack-clash-protection -fno-delete-null-pointer-checks
 flags -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now
+flags-android -Wno-implicit-function-declaration -Wl,-z,norelro
 flags-clang -Wno-logical-op-parentheses
 flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/
 flags-fanalyzer -fanalyzer
@@ -93,3 +96,4 @@ flags-thread -pthread
 flags_library -fPIC
 flags_object -fPIC
 flags_program -fPIE
+flags_program-android -fPIE -Wl,-z,relro
index 21f77385670cf17b2fb2c95ec71a11f10a9f85e9..555a19069692cb18d1657cdacbee7999ecbcb7ef 100644 (file)
@@ -6,6 +6,7 @@
 #   fake -s data/build/stand_alone/settings.control clean build
 #
 # Modes:
+#   - android:    Compile on an android system (using Termux; may need modification depending on the android system).
 #   - clang:      Use Clang rather than the default, which is generally GCC.
 #   - coverage:   Compile for building coverage.
 #   - fanalyzer:  Compile using GCC's -fanalyzer compile time option.
@@ -25,7 +26,7 @@ version_micro 0
 version_file micro
 version_target minor
 
-modes clang coverage fanalyzer gcc gcc_13 test thread threadless
+modes android clang coverage fanalyzer gcc gcc_13 test thread threadless
 modes_default thread gcc
 
 build_compiler gcc
@@ -107,12 +108,14 @@ environment LANG LC_ALL LC_COLLATE LC_CTYPE LC_FASTMSG LC_MESSAGES LC_MONETARY L
 defines -include sources/c/config.h -I sources/c/
 #defines -D_di_libcap_
 defines -D_libcap_legacy_only_
+defines-android -D_di_f_thread_attribute_affinity_get_ -D_di_f_thread_attribute_affinity_set_ -D_di_f_thread_attribute_concurrency_get_ -D_di_f_thread_attribute_concurrency_set_ -D_di_f_thread_attribute_default_get_ -D_di_f_thread_attribute_default_set_ -D_di_f_thread_cancel_ -D_di_f_thread_cancel_state_set_ -D_di_f_thread_cancel_test_ -D_di_f_thread_join_try_ -D_di_f_thread_join_timed_ -D_pthread_mutex_prioceiling_unsupported_ -D_di_f_thread_semaphore_file_close_ -D_di_f_thread_semaphore_file_open_ -D_di_f_thread_semaphore_file_delete_ -D_di_f_thread_cancel_type_set_
 defines-thread -D_pthread_attr_unsupported_ -D_pthread_sigqueue_unsupported_
 defines-threadless -D_di_thread_support_
 
 flags -O2 -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces
 flags -fstack-clash-protection -fno-delete-null-pointer-checks
 flags -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now
+flags-android -Wno-implicit-function-declaration -Wl,-z,norelro
 flags-clang -Wno-logical-op-parentheses
 flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/
 flags-fanalyzer -fanalyzer
@@ -123,3 +126,4 @@ flags-thread -pthread
 flags_library -fPIC
 flags_object -fPIC
 flags_program -fPIE
+flags_program-android -fPIE -Wl,-z,relro