Changeset 98127 in vbox
- Timestamp:
- Jan 19, 2023 1:54:42 AM (23 months ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r98126 r98127 7890 7890 # as a result QT_VERSION can't be calculated and it's not only used in our 7891 7891 # GUI but by the moc itself to parse modern signal/slot definitions. 7892 # We were hardcoding QT_VERSION for TEMPLATE_VB OXQTGUIEXEbelow for quite7892 # We were hardcoding QT_VERSION for TEMPLATE_VBoxQtGuiExe below for quite 7893 7893 # a long, but this have to end. Instead we can pass both includes manually. 7894 7894 TOOL_QT5_MOCFLAGS.darwin += --include qconfig.h --include qglobal.h … … 7899 7899 # Template for building Qt GUI executables. 7900 7900 # 7901 TEMPLATE_VB OXQTGUIEXE= VBox Qt GUI Executable7901 TEMPLATE_VBoxQtGuiExe = VBox Qt GUI Executable 7902 7902 ifndef VBOX_WITH_QT6 7903 TEMPLATE_VB OXQTGUIEXE_USES := qt57904 TEMPLATE_VB OXQTGUIEXE_QTTOOL := QT57905 TEMPLATE_VB OXQTGUIEXE_MOCTOOL := QT57906 TEMPLATE_VB OXQTGUIEXE_UICTOOL := QT57907 TEMPLATE_VB OXQTGUIEXE_RCCTOOL := QT57908 TEMPLATE_VB OXQTGUIEXE_LRCTOOL := QT57909 TEMPLATE_VB OXQTGUIEXE_SDKS := QT57903 TEMPLATE_VBoxQtGuiExe_USES := qt5 7904 TEMPLATE_VBoxQtGuiExe_QTTOOL := QT5 7905 TEMPLATE_VBoxQtGuiExe_MOCTOOL := QT5 7906 TEMPLATE_VBoxQtGuiExe_UICTOOL := QT5 7907 TEMPLATE_VBoxQtGuiExe_RCCTOOL := QT5 7908 TEMPLATE_VBoxQtGuiExe_LRCTOOL := QT5 7909 TEMPLATE_VBoxQtGuiExe_SDKS := QT5 7910 7910 else 7911 TEMPLATE_VB OXQTGUIEXE_USES := qt67912 TEMPLATE_VB OXQTGUIEXE_QTTOOL := QT67913 TEMPLATE_VB OXQTGUIEXE_MOCTOOL := QT67914 TEMPLATE_VB OXQTGUIEXE_UICTOOL := QT67915 TEMPLATE_VB OXQTGUIEXE_RCCTOOL := QT67916 TEMPLATE_VB OXQTGUIEXE_LRCTOOL := QT67917 TEMPLATE_VB OXQTGUIEXE_SDKS := QT67918 TEMPLATE_VB OXQTGUIEXE_QT_MODULES := Core5Compat7919 endif 7920 TEMPLATE_VB OXQTGUIEXE_QT_INFIX = $(VBOX_QT_INFIX)7921 TEMPLATE_VB OXQTGUIEXE_DEFS = IN_RING3 QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H $(ARCH_BITS_DEFS)7922 TEMPLATE_VB OXQTGUIEXE_RCDEFS = $(TEMPLATE_VBOXR3EXE_RCDEFS)7911 TEMPLATE_VBoxQtGuiExe_USES := qt6 7912 TEMPLATE_VBoxQtGuiExe_QTTOOL := QT6 7913 TEMPLATE_VBoxQtGuiExe_MOCTOOL := QT6 7914 TEMPLATE_VBoxQtGuiExe_UICTOOL := QT6 7915 TEMPLATE_VBoxQtGuiExe_RCCTOOL := QT6 7916 TEMPLATE_VBoxQtGuiExe_LRCTOOL := QT6 7917 TEMPLATE_VBoxQtGuiExe_SDKS := QT6 7918 TEMPLATE_VBoxQtGuiExe_QT_MODULES := Core5Compat 7919 endif 7920 TEMPLATE_VBoxQtGuiExe_QT_INFIX = $(VBOX_QT_INFIX) 7921 TEMPLATE_VBoxQtGuiExe_DEFS = IN_RING3 QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H $(ARCH_BITS_DEFS) 7922 TEMPLATE_VBoxQtGuiExe_RCDEFS = $(TEMPLATE_VBOXR3EXE_RCDEFS) 7923 7923 7924 7924 ifeq ($(KBUILD_TARGET),win) 7925 7925 # Note! No use of VBOX_VCC_CRT_TYPE here yet as it requires a /MDd build of Qt as well. 7926 TEMPLATE_VB OXQTGUIEXE_TOOL = $(VBOX_VCC_TOOL)7926 TEMPLATE_VBoxQtGuiExe_TOOL = $(VBOX_VCC_TOOL) 7927 7927 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140" 7928 TEMPLATE_VB OXQTGUIEXE_SDKS = WINSDK10-UCRT7929 endif 7930 TEMPLATE_VB OXQTGUIEXE_DEFS += \7928 TEMPLATE_VBoxQtGuiExe_SDKS = WINSDK10-UCRT 7929 endif 7930 TEMPLATE_VBoxQtGuiExe_DEFS += \ 7931 7931 _WIN32_WINNT=0x0500 UNICODE _UNICODE \ 7932 7932 QT_DLL _CRT_SECURE_NO_DEPRECATE \ 7933 7933 $(QMAKE_PRL_DEFINES) 7934 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS = -nologo -Zm200 -MD -Zi -EHsc -Zc:wchar_t- $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_SANITIZER_FLAGS) $(VBOX_VCC_std)7934 TEMPLATE_VBoxQtGuiExe_CXXFLAGS = -nologo -Zm200 -MD -Zi -EHsc -Zc:wchar_t- $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_SANITIZER_FLAGS) $(VBOX_VCC_std) 7935 7935 # -wd4481: nonstandard extension used: override specifier 'override' 7936 7936 # -wd4625: 'QRubberBand' : copy constructor could not be generated because a base class copy constructor is inaccessible … … 7941 7941 # -wd4718: qmap.h(222) : warning C4718: 'QMapNode<enum DetailsElementType,bool>::destroySubTree' : recursive call has no side effects, deleting 7942 7942 # -wd5204: pplwin.h(78): warning C5204: 'Concurrency::details::_DefaultPPLTaskScheduler': class has virtual functions 7943 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS += $(VBOX_VCC_WARN_ALL) -wd4481 -wd4625 -wd4626 -wd4640 -wd4350 -wd4371 -wd4121 -wd4718 -wd5204 $(VBOX_VCC_WERR)7943 TEMPLATE_VBoxQtGuiExe_CXXFLAGS += $(VBOX_VCC_WARN_ALL) -wd4481 -wd4625 -wd4626 -wd4640 -wd4350 -wd4371 -wd4121 -wd4718 -wd5204 $(VBOX_VCC_WERR) 7944 7944 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC120" 7945 7945 # -wd4619: qvectro.h(305 : warning C4619: #pragma warning : there is no warning number '4345' 7946 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS += -wd46197946 TEMPLATE_VBoxQtGuiExe_CXXFLAGS += -wd4619 7947 7947 endif 7948 7948 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140" … … 7952 7952 # qwidget.h(730): note: see declaration of 'QWidget::data' 7953 7953 # -wd4946: qmap.h(213): warning C4946: reinterpret_cast used between related classes: 'QMapNodeBase' and 'QMapNode<Key,T>' 7954 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS += -wd4774 -wd4456 -wd4458 -wd49467954 TEMPLATE_VBoxQtGuiExe_CXXFLAGS += -wd4774 -wd4456 -wd4458 -wd4946 7955 7955 endif 7956 7956 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC141" 7957 7957 # -wd4866: UIVirtualBoxManager.cpp(221) : warning C4866: compiler may not enforce left-to-right evaluation order for call to 'QStringList::operator<<' 7958 7958 # Only with -std=c++17 and later. 7959 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS += -wd48667959 TEMPLATE_VBoxQtGuiExe_CXXFLAGS += -wd4866 7960 7960 endif 7961 7961 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC142" # With v16.11.9, not with v16.6.0 4242 7962 7962 # -wd5219: qpoint.h(187): warning C5219: implicit conversion from 'const int' to 'float', possible loss of data 7963 7963 # -wd5240: qcolor.h(235): warning C5240: 'nodiscard': attribute is ignored in this syntactic position 7964 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS += -wd5219 -wd52407965 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS += /volatileMetadata- # Don't waste space on x86/amd64-on-arm emulation optimizations.7966 endif 7967 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS += -Gy7964 TEMPLATE_VBoxQtGuiExe_CXXFLAGS += -wd5219 -wd5240 7965 TEMPLATE_VBoxQtGuiExe_CXXFLAGS += /volatileMetadata- # Don't waste space on x86/amd64-on-arm emulation optimizations. 7966 endif 7967 TEMPLATE_VBoxQtGuiExe_CXXFLAGS += -Gy 7968 7968 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC120" 7969 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS += -Gw7969 TEMPLATE_VBoxQtGuiExe_CXXFLAGS += -Gw 7970 7970 endif 7971 7971 ifdef VBOX_WITH_MSC_ANALYZE_THIS 7972 TEMPLATE_VBox R0Drv_CXXFLAGS += /analyze7973 endif 7974 7975 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS.debug = -RTCsu7976 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS.debug = -RTCsu7977 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS.dbgopt = $(NO_SUCH_VARIABLE)7978 TEMPLATE_VB OXQTGUIEXE_PCHFLAGS = $(TEMPLATE_VBOXQTGUIEXE_CXXFLAGS)7979 TEMPLATE_VB OXQTGUIEXE_PCHFLAGS.debug = $(TEMPLATE_VBOXQTGUIEXE_CXXFLAGS.debug)7980 TEMPLATE_VB OXQTGUIEXE_PCHFLAGS.dbgopt = $(TEMPLATE_VBOXQTGUIEXE_CXXFLAGS.dbgopt)7981 TEMPLATE_VB OXQTGUIEXE_LDFLAGS = -Ignore:4197 \7972 TEMPLATE_VBoxQtGuiExe_CXXFLAGS += /analyze 7973 endif 7974 7975 TEMPLATE_VBoxQtGuiExe_CXXFLAGS.debug = -RTCsu 7976 TEMPLATE_VBoxQtGuiExe_CXXFLAGS.debug = -RTCsu 7977 TEMPLATE_VBoxQtGuiExe_CXXFLAGS.dbgopt = $(NO_SUCH_VARIABLE) 7978 TEMPLATE_VBoxQtGuiExe_PCHFLAGS = $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS) 7979 TEMPLATE_VBoxQtGuiExe_PCHFLAGS.debug = $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS.debug) 7980 TEMPLATE_VBoxQtGuiExe_PCHFLAGS.dbgopt = $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS.dbgopt) 7981 TEMPLATE_VBoxQtGuiExe_LDFLAGS = -Ignore:4197 \ 7982 7982 /NOD /INCREMENTAL:NO /MAPINFO:EXPORTS /LargeAddressAware /DynamicBase /NxCompat /Release /Debug /Opt:Ref /Opt:Icf \ 7983 7983 $(VBOX_VCC_LD_GUARD_CF) $(VBOX_VCC_SANITIZER_LDFLAGS) \ … … 7985 7985 /STUB:$(PATH_ROOT)/src/VBox/HostDrivers/Support/win/winstub.com 7986 7986 if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_HARDENING) 7987 TEMPLATE_VB OXQTGUIEXE_LDFLAGS += -IntegrityCheck7987 TEMPLATE_VBoxQtGuiExe_LDFLAGS += -IntegrityCheck 7988 7988 endif 7989 7989 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC142" # Don't waste space on x86/amd64-on-arm emulation optimizations. 7990 TEMPLATE_VB OXQTGUIEXE_LDFLAGS += -EmitVolatileMetadata:NO7991 endif 7992 TEMPLATE_VB OXQTGUIEXE_LDFLAGS.win.amd64 = $(VBOX_VCC_LD_HIGH_ENTRYOPY_VA)7993 7994 TEMPLATE_VB OXQTGUIEXE_SDKS += $(VBOX_WINPSDK)7990 TEMPLATE_VBoxQtGuiExe_LDFLAGS += -EmitVolatileMetadata:NO 7991 endif 7992 TEMPLATE_VBoxQtGuiExe_LDFLAGS.win.amd64 = $(VBOX_VCC_LD_HIGH_ENTRYOPY_VA) 7993 7994 TEMPLATE_VBoxQtGuiExe_SDKS += $(VBOX_WINPSDK) 7995 7995 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140" 7996 TEMPLATE_VB OXQTGUIEXE_LIBS = \7996 TEMPLATE_VBoxQtGuiExe_LIBS = \ 7997 7997 $(VBOX_LIBS_QT) \ 7998 7998 $(LIB_RUNTIME) \ … … 8003 8003 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib 8004 8004 ifeq ($(KBUILD_TYPE),asan) 8005 TEMPLATE_VB OXQTGUIEXE_LIBS += \8005 TEMPLATE_VBoxQtGuiExe_LIBS += \ 8006 8006 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/clang_rt.asan_dynamic-x86_64.lib \ 8007 8007 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/clang_rt.asan_dynamic_runtime_thunk-x86_64.lib 8008 8008 endif 8009 8009 else 8010 TEMPLATE_VB OXQTGUIEXE_LIBS = \8010 TEMPLATE_VBoxQtGuiExe_LIBS = \ 8011 8011 $(VBOX_LIBS_QT) \ 8012 8012 $(LIB_RUNTIME) \ … … 8016 8016 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib 8017 8017 endif 8018 TEMPLATE_VB OXQTGUIEXE_POST_CMDS = $(VBOX_UTF8_MANIFEST_CMDS)$(NLTAB)$(VBOX_SIGN_IMAGE_CMDS)8019 TEMPLATE_VB OXQTGUIEXE_ORDERDEPS = $(VBOX_SIGN_IMAGE_CMDS_ORDERDEPS)8018 TEMPLATE_VBoxQtGuiExe_POST_CMDS = $(VBOX_UTF8_MANIFEST_CMDS)$(NLTAB)$(VBOX_SIGN_IMAGE_CMDS) 8019 TEMPLATE_VBoxQtGuiExe_ORDERDEPS = $(VBOX_SIGN_IMAGE_CMDS_ORDERDEPS) 8020 8020 8021 8021 else # the gcc guys: 8022 TEMPLATE_VB OXQTGUIEXE_TOOL = $(VBOX_GCC_TOOL)8022 TEMPLATE_VBoxQtGuiExe_TOOL = $(VBOX_GCC_TOOL) 8023 8023 if $(VBOX_GCC_VERSION_CC) < 30400 8024 TEMPLATE_VB OXQTGUIEXE_DEFS += RT_WITHOUT_PRAGMA_ONCE8025 endif 8026 TEMPLATE_VB OXQTGUIEXE_DEFS.linux = _REENTRANT8027 TEMPLATE_VB OXQTGUIEXE_DEFS.solaris = _REENTRANT8024 TEMPLATE_VBoxQtGuiExe_DEFS += RT_WITHOUT_PRAGMA_ONCE 8025 endif 8026 TEMPLATE_VBoxQtGuiExe_DEFS.linux = _REENTRANT 8027 TEMPLATE_VBoxQtGuiExe_DEFS.solaris = _REENTRANT 8028 8028 8029 8029 ## @todo Use VBOX_GCC_PEDANTIC_CXX? 8030 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS = \8030 TEMPLATE_VBoxQtGuiExe_CXXFLAGS = \ 8031 8031 -g $(VBOX_GCC_pipe) $(filter-out -Wno-unused $(VBOX_GCC_Wno-unused-parameter),$(VBOX_GCC_WARN)) -frtti -fno-exceptions \ 8032 8032 -Wno-long-long -fshort-wchar -fno-strict-aliasing \ … … 8034 8034 $(VBOX_GCC_Wno-return-type-c-linkage) $(VBOX_GCC_std) $(VBOX_GCC_IPRT_FMT_CHECK) $(VBOX_GCC_SANITIZER_FLAGS) 8035 8035 ifdef VBOX_WITH_NO_GCC_WARNING_POLICY 8036 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS += $(VBOX_GCC_WERR)8036 TEMPLATE_VBoxQtGuiExe_CXXFLAGS += $(VBOX_GCC_WERR) 8037 8037 endif 8038 8038 ifn1of ($(USERNAME),dsen serkan) # Bunch of stuff deprecated after 5.6.*. These guys knows how to deal with it. :) 8039 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS += $(VBOX_GCC_Wno-deprecated-declarations)8039 TEMPLATE_VBoxQtGuiExe_CXXFLAGS += $(VBOX_GCC_Wno-deprecated-declarations) 8040 8040 endif 8041 8041 ifdef VBOX_WITH_QT6 8042 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS += -std=gnu++178043 endif 8044 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS.x86 = -m328045 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS.amd64 = -m648046 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS.linux = -pthread8047 TEMPLATE_VB OXQTGUIEXE_PCHFLAGS = $(TEMPLATE_VBOXQTGUIEXE_CXXFLAGS)8048 TEMPLATE_VB OXQTGUIEXE_PCHFLAGS.x86 = $(TEMPLATE_VBOXQTGUIEXE_CXXFLAGS.x86)8049 TEMPLATE_VB OXQTGUIEXE_PCHFLAGS.amd64 = $(TEMPLATE_VBOXQTGUIEXE_CXXFLAGS.amd64)8050 TEMPLATE_VB OXQTGUIEXE_PCHFLAGS.linux = $(TEMPLATE_VBOXQTGUIEXE_CXXFLAGS.linux)8051 TEMPLATE_VB OXQTGUIEXE_PCHFLAGS.debug = $(TEMPLATE_VBOXQTGUIEXE_CXXFLAGS.debug)8052 TEMPLATE_VB OXQTGUIEXE_PCHFLAGS.dbgopt = $(TEMPLATE_VBOXQTGUIEXE_CXXFLAGS.dbgopt)8053 TEMPLATE_VB OXQTGUIEXE_OBJCFLAGS = -g $(VBOX_GCC_pipe) $(VBOX_GCC_PEDANTIC_C) -fno-exceptions $(VBOX_GCC_IPRT_FMT_CHECK)8054 TEMPLATE_VB OXQTGUIEXE_OBJCFLAGS.x86 = $(TEMPLATE_VBOXQTGUIEXE_CXXFLAGS.x86)8055 TEMPLATE_VB OXQTGUIEXE_OBJCFLAGS.amd64 = $(TEMPLATE_VBOXQTGUIEXE_CXXFLAGS.amd64)8056 TEMPLATE_VB OXQTGUIEXE_OBJCXXFLAGS = \8042 TEMPLATE_VBoxQtGuiExe_CXXFLAGS += -std=gnu++17 8043 endif 8044 TEMPLATE_VBoxQtGuiExe_CXXFLAGS.x86 = -m32 8045 TEMPLATE_VBoxQtGuiExe_CXXFLAGS.amd64 = -m64 8046 TEMPLATE_VBoxQtGuiExe_CXXFLAGS.linux = -pthread 8047 TEMPLATE_VBoxQtGuiExe_PCHFLAGS = $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS) 8048 TEMPLATE_VBoxQtGuiExe_PCHFLAGS.x86 = $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS.x86) 8049 TEMPLATE_VBoxQtGuiExe_PCHFLAGS.amd64 = $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS.amd64) 8050 TEMPLATE_VBoxQtGuiExe_PCHFLAGS.linux = $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS.linux) 8051 TEMPLATE_VBoxQtGuiExe_PCHFLAGS.debug = $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS.debug) 8052 TEMPLATE_VBoxQtGuiExe_PCHFLAGS.dbgopt = $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS.dbgopt) 8053 TEMPLATE_VBoxQtGuiExe_OBJCFLAGS = -g $(VBOX_GCC_pipe) $(VBOX_GCC_PEDANTIC_C) -fno-exceptions $(VBOX_GCC_IPRT_FMT_CHECK) 8054 TEMPLATE_VBoxQtGuiExe_OBJCFLAGS.x86 = $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS.x86) 8055 TEMPLATE_VBoxQtGuiExe_OBJCFLAGS.amd64 = $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS.amd64) 8056 TEMPLATE_VBoxQtGuiExe_OBJCXXFLAGS = \ 8057 8057 -g $(VBOX_GCC_pipe) $(VBOX_GCC_PEDANTIC_CXX) \ 8058 8058 -frtti -fno-exceptions $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_IPRT_FMT_CHECK) 8059 8059 ifdef VBOX_WITH_NO_GCC_WARNING_POLICY 8060 TEMPLATE_VB OXQTGUIEXE_OBJCXXFLAGS += $(VBOX_GCC_WERR)8060 TEMPLATE_VBoxQtGuiExe_OBJCXXFLAGS += $(VBOX_GCC_WERR) 8061 8061 endif 8062 8062 ifdef VBOX_WITH_QT6 8063 TEMPLATE_VB OXQTGUIEXE_OBJCXXFLAGS += -std=gnu++178064 endif 8065 TEMPLATE_VB OXQTGUIEXE_OBJCXXFLAGS.x86 = $(TEMPLATE_VBOXQTGUIEXE_CXXFLAGS.x86)8066 TEMPLATE_VB OXQTGUIEXE_OBJCXXFLAGS.amd64 = $(TEMPLATE_VBOXQTGUIEXE_CXXFLAGS.amd64)8067 TEMPLATE_VB OXQTGUIEXE_LDFLAGS = $(VBOX_GCC_SANITIZER_FLAGS) $(VBOX_GCC_SANITIZER_LDFLAGS)8068 TEMPLATE_VB OXQTGUIEXE_LDFLAGS.x86 = -m328069 TEMPLATE_VB OXQTGUIEXE_LDFLAGS.amd64 = -m648070 TEMPLATE_VB OXQTGUIEXE_LIBS = \8063 TEMPLATE_VBoxQtGuiExe_OBJCXXFLAGS += -std=gnu++17 8064 endif 8065 TEMPLATE_VBoxQtGuiExe_OBJCXXFLAGS.x86 = $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS.x86) 8066 TEMPLATE_VBoxQtGuiExe_OBJCXXFLAGS.amd64 = $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS.amd64) 8067 TEMPLATE_VBoxQtGuiExe_LDFLAGS = $(VBOX_GCC_SANITIZER_FLAGS) $(VBOX_GCC_SANITIZER_LDFLAGS) 8068 TEMPLATE_VBoxQtGuiExe_LDFLAGS.x86 = -m32 8069 TEMPLATE_VBoxQtGuiExe_LDFLAGS.amd64 = -m64 8070 TEMPLATE_VBoxQtGuiExe_LIBS = \ 8071 8071 $(VBOX_LIBS_QT) \ 8072 8072 $(LIB_RUNTIME) 8073 8073 8074 8074 ifeq ($(KBUILD_TARGET),linux) 8075 TEMPLATE_VB OXQTGUIEXE_LDFLAGS += -Wl,-z,noexecstack,-z,relro $(VBOX_LD_as_needed)8076 TEMPLATE_VB OXQTGUIEXE_LIBS += \8075 TEMPLATE_VBoxQtGuiExe_LDFLAGS += -Wl,-z,noexecstack,-z,relro $(VBOX_LD_as_needed) 8076 TEMPLATE_VBoxQtGuiExe_LIBS += \ 8077 8077 $(VBOX_XCURSOR_LIBS) \ 8078 8078 Xext \ 8079 8079 X11 8080 TEMPLATE_VB OXQTGUIEXE_LIBPATH += \8080 TEMPLATE_VBoxQtGuiExe_LIBPATH += \ 8081 8081 $(VBOX_LIBPATH_X11) 8082 8082 else ifeq ($(KBUILD_TARGET),darwin) 8083 TEMPLATE_VB OXQTGUIEXE_SDKS.darwin += $(VBOX_DARWIN_DEF_SDK_SDKS)8084 TEMPLATE_VB OXQTGUIEXE_DEFS.darwin += $(VBOX_DARWIN_DEF_SDK_DEFS)8085 TEMPLATE_VB OXQTGUIEXE_CFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_CFLAGS)8086 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_CXXFLAGS)8087 TEMPLATE_VB OXQTGUIEXE_PCHFLAGS.darwin += $(TEMPLATE_VBOXQTGUIEXE_CXXFLAGS.darwin)8088 TEMPLATE_VB OXQTGUIEXE_OBJCFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_OBJCFLAGS)8083 TEMPLATE_VBoxQtGuiExe_SDKS.darwin += $(VBOX_DARWIN_DEF_SDK_SDKS) 8084 TEMPLATE_VBoxQtGuiExe_DEFS.darwin += $(VBOX_DARWIN_DEF_SDK_DEFS) 8085 TEMPLATE_VBoxQtGuiExe_CFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_CFLAGS) 8086 TEMPLATE_VBoxQtGuiExe_CXXFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) 8087 TEMPLATE_VBoxQtGuiExe_PCHFLAGS.darwin += $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS.darwin) 8088 TEMPLATE_VBoxQtGuiExe_OBJCFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_OBJCFLAGS) 8089 8089 ifdef VBOX_WITH_QT6 8090 TEMPLATE_VB OXQTGUIEXE_OBJCXXFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_OBJCXXFLAGS)8090 TEMPLATE_VBoxQtGuiExe_OBJCXXFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_OBJCXXFLAGS) 8091 8091 else 8092 TEMPLATE_VB OXQTGUIEXE_OBJCXXFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_OBJCXXFLAGS) $(VBOX_GCC_std)8092 TEMPLATE_VBoxQtGuiExe_OBJCXXFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_OBJCXXFLAGS) $(VBOX_GCC_std) 8093 8093 endif 8094 TEMPLATE_VB OXQTGUIEXE_LDFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -bind_at_load -Wl,-headerpad_max_install_names8095 TEMPLATE_VB OXQTGUIEXE_LIBS +=8096 TEMPLATE_VB OXQTGUIEXE_LIBPATH +=8097 TEMPLATE_VB OXQTGUIEXE_POST_CMDS.darwin = $(VBOX_SIGN_IMAGE_CMDS)8094 TEMPLATE_VBoxQtGuiExe_LDFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -bind_at_load -Wl,-headerpad_max_install_names 8095 TEMPLATE_VBoxQtGuiExe_LIBS += 8096 TEMPLATE_VBoxQtGuiExe_LIBPATH += 8097 TEMPLATE_VBoxQtGuiExe_POST_CMDS.darwin = $(VBOX_SIGN_IMAGE_CMDS) 8098 8098 else 8099 TEMPLATE_VB OXQTGUIEXE_INCS += \8099 TEMPLATE_VBoxQtGuiExe_INCS += \ 8100 8100 $(VBOX_XCURSOR_INCS) 8101 TEMPLATE_VB OXQTGUIEXE_LIBS += \8101 TEMPLATE_VBoxQtGuiExe_LIBS += \ 8102 8102 $(VBOX_XCURSOR_LIBS) \ 8103 8103 Xext \ … … 8105 8105 m \ 8106 8106 $(LIB_PTHREAD) 8107 TEMPLATE_VB OXQTGUIEXE_LIBPATH += \8107 TEMPLATE_VBoxQtGuiExe_LIBPATH += \ 8108 8108 $(VBOX_LIBPATH_X11) 8109 8109 ifeq ($(KBUILD_TARGET),freebsd) 8110 TEMPLATE_VB OXQTGUIEXE_INCS += \8110 TEMPLATE_VBoxQtGuiExe_INCS += \ 8111 8111 /usr/include \ 8112 8112 /usr/X11R6/include \ 8113 8113 /usr/local/include 8114 TEMPLATE_VB OXQTGUIEXE_LIBPATH += \8114 TEMPLATE_VBoxQtGuiExe_LIBPATH += \ 8115 8115 /usr/lib \ 8116 8116 /usr/X11R6/lib \ … … 8118 8118 endif 8119 8119 ifeq ($(KBUILD_TARGET),solaris) 8120 TEMPLATE_VB OXQTGUIEXE_LDFLAGS.solaris = -Wl,-z,ignore # Same as VBOX_LD_as_needed.8121 TEMPLATE_VB OXQTGUIEXE_LIBS += \8120 TEMPLATE_VBoxQtGuiExe_LDFLAGS.solaris = -Wl,-z,ignore # Same as VBOX_LD_as_needed. 8121 TEMPLATE_VBoxQtGuiExe_LIBS += \ 8122 8122 rt socket nsl 8123 8123 endif … … 8125 8125 # Assume the Qt shared objects are in the same directory as the executable, on Solaris too. 8126 8126 ifdef VBOX_WITH_RUNPATH 8127 TEMPLATE_VB OXQTGUIEXE_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)'8127 TEMPLATE_VBoxQtGuiExe_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' 8128 8128 else ifdef VBOX_WITH_RELATIVE_RUNPATH 8129 TEMPLATE_VB OXQTGUIEXE_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)'8129 TEMPLATE_VBoxQtGuiExe_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)' 8130 8130 endif 8131 8131 … … 8133 8133 8134 8134 # Add COM/XPCOM stuff 8135 TEMPLATE_VB OXQTGUIEXE_LIBS += \8135 TEMPLATE_VBoxQtGuiExe_LIBS += \ 8136 8136 $(PATH_STAGE_LIB)/VBoxCOM$(if-expr defined(VBOX_WITH_DEBUG_VCC_CRT) && $(KBUILD_TARGET) == win,-GUI,)$(VBOX_SUFF_LIB) 8137 8137 ifdef VBOX_WITH_XPCOM 8138 8138 ## @todo may be worth creating the VBOX_XPCOM SDK def, or just a SDK_VBOXXPCOM. 8139 TEMPLATE_VB OXQTGUIEXE_DEFS += VBOX_WITH_XPCOM8139 TEMPLATE_VBoxQtGuiExe_DEFS += VBOX_WITH_XPCOM 8140 8140 ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP 8141 TEMPLATE_VB OXQTGUIEXE_DEFS += VBOX_WITH_XPCOM_NAMESPACE_CLEANUP8142 endif 8143 TEMPLATE_VB OXQTGUIEXE_INCS += \8141 TEMPLATE_VBoxQtGuiExe_DEFS += VBOX_WITH_XPCOM_NAMESPACE_CLEANUP 8142 endif 8143 TEMPLATE_VBoxQtGuiExe_INCS += \ 8144 8144 $(VBOX_XPCOM_INCS) 8145 TEMPLATE_VB OXQTGUIEXE_LIBS += \8145 TEMPLATE_VBoxQtGuiExe_LIBS += \ 8146 8146 $(LIB_XPCOM) 8147 TEMPLATE_VB OXQTGUIEXE_INTERMEDIATES += \8147 TEMPLATE_VBoxQtGuiExe_INTERMEDIATES += \ 8148 8148 $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h 8149 8149 else # COM 8150 TEMPLATE_VB OXQTGUIEXE_INCS += \8150 TEMPLATE_VBoxQtGuiExe_INCS += \ 8151 8151 $(VBOX_PATH_SDK)/bindings/mscom/include 8152 TEMPLATE_VB OXQTGUIEXE_INTERMEDIATES += \8152 TEMPLATE_VBoxQtGuiExe_INTERMEDIATES += \ 8153 8153 $(VBOX_PATH_SDK)/bindings/mscom/include/VirtualBox.h 8154 8154 endif # COM 8155 8155 8156 8156 ifn1of ($(KBUILD_TARGET), darwin os2 win) 8157 TEMPLATE_VB OXQTGUIEXE_DEFS += PIC8158 TEMPLATE_VB OXQTGUIEXE_CFLAGS += -fPIC8159 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS += -fPIC8157 TEMPLATE_VBoxQtGuiExe_DEFS += PIC 8158 TEMPLATE_VBoxQtGuiExe_CFLAGS += -fPIC 8159 TEMPLATE_VBoxQtGuiExe_CXXFLAGS += -fPIC 8160 8160 # Needed for GCC 9. Even system's Qt 5.12.4 (on Ubuntu 19.10) did not have this fixed yet. 8161 TEMPLATE_VB OXQTGUIEXE_CXXFLAGS.linux = -Wno-deprecated-copy $(TEMPLATE_VBOXQTGUIEXE_CXXFLAGS)8162 TEMPLATE_VB OXQTGUIEXE_LDFLAGS += -fPIC8161 TEMPLATE_VBoxQtGuiExe_CXXFLAGS.linux = -Wno-deprecated-copy $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS) 8162 TEMPLATE_VBoxQtGuiExe_LDFLAGS += -fPIC 8163 8163 endif # not darwin, os2 or win 8164 8164 8165 8165 ifeq ($(KBUILD_TARGET),darwin) 8166 8166 ifndef VBOX_WITH_QT6 8167 TEMPLATE_VB OXQTGUIEXE_POST_CMDS = $(QUIET)install_name_tool $(foreach qtmod, $(VBOX_QT_MOD_NAMES), \8167 TEMPLATE_VBoxQtGuiExe_POST_CMDS = $(QUIET)install_name_tool $(foreach qtmod, $(VBOX_QT_MOD_NAMES), \ 8168 8168 $(foreach prefix, @executable_path/../Frameworks/ $(VBOX_PATH_QT)/Frameworks/ $(PATH_SDK_QT5)/, \ 8169 8169 -change "$(prefix)$(qtmod).framework/Versions/5/$(qtmod)" \ 8170 8170 "$(if $(VBOX_WITH_HARDENING),/Applications/VirtualBox.app/Contents/Frameworks,@rpath)/$(qtmod).framework/Versions/5/$(qtmod)" ) ) "$(out)" 8171 8171 else 8172 TEMPLATE_VB OXQTGUIEXE_POST_CMDS = $(QUIET)install_name_tool $(foreach qtmod, $(VBOX_QT_MOD_NAMES), \8172 TEMPLATE_VBoxQtGuiExe_POST_CMDS = $(QUIET)install_name_tool $(foreach qtmod, $(VBOX_QT_MOD_NAMES), \ 8173 8173 $(foreach prefix, @executable_path/../Frameworks/ $(VBOX_PATH_QT)/Frameworks/ $(PATH_SDK_QT6)/, \ 8174 8174 -change "$(prefix)$(qtmod).framework/Versions/A/$(qtmod)" \ … … 8180 8180 # Template for building Qt GUI components. 8181 8181 # 8182 TEMPLATE_VB OXQTGUI= VBox Qt GUI Components8183 TEMPLATE_VB OXQTGUI_EXTENDS = VBOXQTGUIEXE8184 TEMPLATE_VB OXQTGUI_LIBS = $(filter-out $(QTMAIN),$(TEMPLATE_VBOXQTGUIEXE_LIBS))8182 TEMPLATE_VBoxQtGuiDll = VBox Qt GUI Components 8183 TEMPLATE_VBoxQtGuiDll_EXTENDS = VBoxQtGuiExe 8184 TEMPLATE_VBoxQtGuiDll_LIBS = $(filter-out $(QTMAIN),$(TEMPLATE_VBoxQtGuiExe_LIBS)) 8185 8185 ifeq ($(KBUILD_TARGET),darwin) 8186 TEMPLATE_VB OXQTGUI_LDFLAGS.darwin += $(filter-out -bind_at_load,$(TEMPLATE_VBOXQTGUIEXE_LDFLAGS.darwin)) \8186 TEMPLATE_VBoxQtGuiDll_LDFLAGS.darwin += $(filter-out -bind_at_load,$(TEMPLATE_VBoxQtGuiExe_LDFLAGS.darwin)) \ 8187 8187 -current_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \ 8188 8188 -compatibility_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) 8189 8189 endif 8190 8190 ifn1of ($(KBUILD_TARGET), darwin os2 win) 8191 TEMPLATE_VB OXQTGUI_DEFS = PIC $(TEMPLATE_VBOXQTGUIEXE_DEFS)8192 TEMPLATE_VB OXQTGUI_CFLAGS = -fPIC $(TEMPLATE_VBOXQTGUIEXE_CFLAGS)8193 TEMPLATE_VB OXQTGUI_CXXFLAGS = -fPIC $(TEMPLATE_VBOXQTGUIEXE_CXXFLAGS)8194 TEMPLATE_VB OXQTGUI_PCHFLAGS = $(TEMPLATE_VBOXQTGUI_CXXFLAGS)8195 TEMPLATE_VB OXQTGUI_LDFLAGS = -fPIC $(TEMPLATE_VBOXQTGUIEXE_LDFLAGS)8191 TEMPLATE_VBoxQtGuiDll_DEFS = PIC $(TEMPLATE_VBoxQtGuiExe_DEFS) 8192 TEMPLATE_VBoxQtGuiDll_CFLAGS = -fPIC $(TEMPLATE_VBoxQtGuiExe_CFLAGS) 8193 TEMPLATE_VBoxQtGuiDll_CXXFLAGS = -fPIC $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS) 8194 TEMPLATE_VBoxQtGuiDll_PCHFLAGS = $(TEMPLATE_VBoxQtGuiDll_CXXFLAGS) 8195 TEMPLATE_VBoxQtGuiDll_LDFLAGS = -fPIC $(TEMPLATE_VBoxQtGuiExe_LDFLAGS) 8196 8196 endif 8197 8197 endif # VBOX_WITH_QTGUI -
trunk/src/VBox/Debugger/Makefile.kmk
r98103 r98127 113 113 endif 114 114 DLLS += VBoxDbg 115 VBoxDbg_TEMPLATE = VB OXQTGUI115 VBoxDbg_TEMPLATE = VBoxQtGuiDll 116 116 VBoxDbg_DEFS = IN_DBG_R3 117 117 VBoxDbg_INCS = . -
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r98103 r98127 106 106 # VirtualBox Manager Application 107 107 # 108 VirtualBox_TEMPLATE := VB OXQTGUIEXE108 VirtualBox_TEMPLATE := VBoxQtGuiExe 109 109 VirtualBox_NAME = VirtualBox 110 110 VirtualBox_DEPS = $(UICommon_0_OUTDIR)/include/COMWrappers … … 165 165 # VirtualBox Virtual Machine Application 166 166 # 167 VirtualBoxVM_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VB OXQTGUI,VBOXQTGUIEXE)167 VirtualBoxVM_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBoxQtGuiDll,VBoxQtGuiExe) 168 168 VirtualBoxVM_NAME = VirtualBoxVM 169 169 ifndef VBOX_WITH_HARDENING … … 233 233 # VirtualBox - GUI Global Shared Library. 234 234 # 235 UICommon_TEMPLATE = VB OXQTGUI235 UICommon_TEMPLATE = VBoxQtGuiDll 236 236 UICommon_NAME = UICommon 237 237 UICommon_DEFS = VBOX_GUI_LIBRARY -
trunk/src/VBox/GuestHost/DragAndDrop/testcase/tstDragAndDropQt/Makefile.kmk
r98103 r98127 38 38 # tstDragAndDropQt 39 39 # 40 tstDragAndDropQt_TEMPLATE = VB OXQTGUIEXE40 tstDragAndDropQt_TEMPLATE = VBoxQtGuiExe 41 41 tstDragAndDropQt_DEFS = UNIT_TEST TESTCASE 42 42 tstDragAndDropQt_NAME = tstDragAndDropQt -
trunk/src/VBox/GuestHost/SharedClipboard/testcase/tstClipboardQt/Makefile.kmk
r98103 r98127 38 38 # tstClipboardQt 39 39 # 40 tstClipboardQt_TEMPLATE = VB OXQTGUIEXE40 tstClipboardQt_TEMPLATE = VBoxQtGuiExe 41 41 tstClipboardQt_NAME = tstClipboardQt 42 42 tstClipboardQt_CXXFLAGS = \ -
trunk/src/VBox/Main/Makefile.kmk
r98103 r98127 1442 1442 LIBRARIES += VBoxCOM-GUI 1443 1443 USES += qt5 1444 VBoxCOM-GUI_TEMPLATE = VBOXQTGUI$(if-expr defined(VBOX_WITH_HARDENING),,EXE)1444 VBoxCOM-GUI_TEMPLATE = $(if-expr defined(VBOX_WITH_HARDENING),VBoxQtGuiDll,VBoxQtGuiExe) 1445 1445 VBoxCOM-GUI_EXTENDS = VBoxCOM 1446 1446 endif -
trunk/src/VBox/Main/src-helper-apps/OpenGLTest/Makefile.kmk
r98103 r98127 62 62 endif 63 63 PROGRAMS += VBoxTestOGL 64 VBoxTestOGL_TEMPLATE = $(if $(VBOX_WITH_VIDEOHWACCEL),$(if $(VBOX_WITH_HARDENING),VB OXQTGUI,VBOXQTGUIEXE),VBOXMAINEXE)64 VBoxTestOGL_TEMPLATE = $(if $(VBOX_WITH_VIDEOHWACCEL),$(if $(VBOX_WITH_HARDENING),VBoxQtGuiDll,VBoxQtGuiExe),VBOXMAINEXE) 65 65 VBoxTestOGL_DEFS.win = _WIN32_WINNT=0x0500 WINDOWS=1 66 66 VBoxTestOGL_DEFS.linux = Linux=1 _GNU_SOURCE
Note:
See TracChangeset
for help on using the changeset viewer.