1. Update build-qnx content to make it buildable again.
authorMike Gorchak <mgorchak@blackberry.com>
Thu, 24 Aug 2023 17:19:39 +0000 (13:19 -0400)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Thu, 24 Aug 2023 20:34:30 +0000 (14:34 -0600)
2. Switch __QNXNTO__ macro check to __QNX__

During last 23 years the QNX Neutrino microkernel was active, __QNXNTO__ macro belongs to it. Now QNX Muon microkernel is under development, so __QNX__ macro covers both versions: Neutrino and Muon.

First public announce of QNX Muon was here: https://blogs.blackberry.com/en/2023/04/get-in-the-sdv-podcast-from-blackberry-season-2-episode-3

build-qnx/common.mk
loader/loader.c
loader/vk_loader_platform.h
tests/framework/test_util.h

index a0d2a7352a5055fd42c3989bffacd88b46d5befd..16f68f1a86f855e0f55af2a4995d935c16458109 100644 (file)
@@ -22,7 +22,9 @@ NAME=vulkan
 
 SRCS = cJSON.c debug_utils.c dev_ext_trampoline.c loader.c \
        phys_dev_ext.c trampoline.c unknown_ext_chain.c wsi.c \
-       extension_manual.c unknown_function_handling.c
+       extension_manual.c unknown_function_handling.c settings.c \
+       log.c allocation.c loader_environment.c gpa_helper.c \
+       terminator.c
 
 LDFLAGS += -Wl,--unresolved-symbols=report-all -Wl,--no-undefined -Wl,-fPIC
 
index 2e2ed2a01f416caeff4bacdf7d26024f79d544b1..fdecd938d14417580a76d021285510d0d7555c88 100644 (file)
@@ -2964,7 +2964,7 @@ VkResult read_data_files_in_search_paths(const struct loader_instance *inst, enu
     char *xdg_config_home = loader_secure_getenv("XDG_CONFIG_HOME", inst);
     char *xdg_config_dirs = loader_secure_getenv("XDG_CONFIG_DIRS", inst);
 
-#if !defined(__Fuchsia__) && !defined(__QNXNTO__)
+#if !defined(__Fuchsia__) && !defined(__QNX__)
     if (NULL == xdg_config_dirs || '\0' == xdg_config_dirs[0]) {
         xdg_config_dirs = FALLBACK_CONFIG_DIRS;
     }
@@ -2973,7 +2973,7 @@ VkResult read_data_files_in_search_paths(const struct loader_instance *inst, enu
     char *xdg_data_home = loader_secure_getenv("XDG_DATA_HOME", inst);
     char *xdg_data_dirs = loader_secure_getenv("XDG_DATA_DIRS", inst);
 
-#if !defined(__Fuchsia__) && !defined(__QNXNTO__)
+#if !defined(__Fuchsia__) && !defined(__QNX__)
     if (NULL == xdg_data_dirs || '\0' == xdg_data_dirs[0]) {
         xdg_data_dirs = FALLBACK_DATA_DIRS;
     }
index 0cdb1bf07a5a8edf37fd4e608a8a9e0a1d218957..f70350ba5664e8c717b4460c33e1ea36c888ff91 100644 (file)
@@ -41,7 +41,7 @@
 #endif  // defined(__Fuchsia__)
 
 // Set of platforms with a common set of functionality which is queried throughout the program
-#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) || defined(__QNXNTO__) || defined(__FreeBSD__) || \
+#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) || defined(__QNX__) || defined(__FreeBSD__) || \
     defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__GNU__)
 #define COMMON_UNIX_PLATFORMS 1
 #else
 #define VK_ILAYERS_INFO_REGISTRY_LOC ""
 #define VK_SETTINGS_INFO_REGISTRY_LOC ""
 
-#if defined(__QNXNTO__)
+#if defined(__QNX__)
 #define SYSCONFDIR "/etc"
 #endif
 
@@ -306,7 +306,7 @@ static inline char *loader_platform_executable_path(char *buffer, size_t size) {
 }
 #elif defined(__Fuchsia__) || defined(__OpenBSD__)
 static inline char *loader_platform_executable_path(char *buffer, size_t size) { return NULL; }
-#elif defined(__QNXNTO__)
+#elif defined(__QNX__)
 
 #define SYSCONFDIR "/etc"
 
@@ -330,7 +330,7 @@ static inline char *loader_platform_executable_path(char *buffer, size_t size) {
 
     return buffer;
 }
-#endif  // defined (__QNXNTO__)
+#endif  // defined (__QNX__)
 
 // Compatability with compilers that don't support __has_feature
 #if !defined(__has_feature)
index 3c5ea2742664e8974df5d8b063a0d8d77b81123c..7bb423776d2e3140d2227394067dffd0fcf3cbbb 100644 (file)
@@ -62,7 +62,7 @@
 #include <stdint.h>
 
 // Set of platforms with a common set of functionality which is queried throughout the program
-#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) || defined(__QNXNTO__) || defined(__FreeBSD__) || \
+#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) || defined(__QNX__) || defined(__FreeBSD__) || \
     defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__GNU__)
 #define COMMON_UNIX_PLATFORMS 1
 #else
@@ -836,7 +836,7 @@ inline std::string test_platform_executable_path() {
 }
 #elif defined(__Fuchsia__) || defined(__OpenBSD__)
 inline std::string test_platform_executable_path() { return {}; }
-#elif defined(__QNXNTO__)
+#elif defined(__QNX__)
 
 #define SYSCONFDIR "/etc"
 
@@ -863,7 +863,7 @@ inline std::string test_platform_executable_path() {
 
     return buffer;
 }
-#endif  // defined (__QNXNTO__)
+#endif  // defined (__QNX__)
 #if defined(WIN32)
 inline std::string test_platform_executable_path() {
     std::string buffer;