Changeset 16349 in vbox
- Timestamp:
- Jan 28, 2009 10:15:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r16343 r16349 760 760 VBOX_WITH_DEBUGGER_GUI= 761 761 VBOX_WITH_HEADLESS= 762 ifdef VBOX_ONLY_DOCS 763 $(error Oh, does VBOX_ONLY_DOCS actually end up here. sweet.) 764 endif 765 VBOX_WITH_DOCS= 762 766 endif 763 767 … … 2903 2907 # Qt 4 2904 2908 # 2905 2906 # Guess VBOX_WITH_QT4_SUN 2907 ifndef VBOX_WITH_QT4_SUN 2908 ifndef VBOX_OSE 2909 if1of ($(KBUILD_TARGET), darwin solaris win) 2910 VBOX_WITH_QT4_SUN := 1 2911 endif 2912 endif 2913 endif 2914 2915 # 2916 # Handmade configuration of qt4 - very annoying, this needs to 2917 # be cleaned up properly later some time (not important now). 2918 # 2919 ifeq ($(VBOX_PATH_QT4),) 2920 ifeq ($(KBUILD_TARGET),darwin) 2921 VBOX_PATH_QT4 := $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v4*))) 2922 ifeq ($(VBOX_PATH_QT4),) 2923 ifneq ($(wildcard /Library/Frameworks/QtCore.framework),) 2924 # Using the global installation (for OSE). 2925 VBOX_PATH_QT4 ?= /usr 2926 VBOX_PATH_QT4_FRAMEWORKS ?= /Library/Frameworks 2909 ifdef VBOX_WITH_QTGUI 2910 2911 # Guess VBOX_WITH_QT4_SUN 2912 ifndef VBOX_WITH_QT4_SUN 2913 ifndef VBOX_OSE 2914 if1of ($(KBUILD_TARGET), darwin solaris win) 2915 VBOX_WITH_QT4_SUN := 1 2927 2916 endif 2928 2917 endif 2929 else if1of ($(KBUILD_TARGET),win) 2930 VBOX_PATH_QT4 ?= $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v4*))) 2931 else if1of ($(KBUILD_TARGET),solaris) 2932 VBOX_PATH_QT4 ?= $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v4*))) 2933 ifneq ($(VBOX_PATH_QT4),) 2934 VBOX_WITH_QT4_SUN = 1 2918 endif 2919 2920 # 2921 # Handmade configuration of qt4 - very annoying, this needs to 2922 # be cleaned up properly later some time (not important now). 2923 # 2924 ifeq ($(VBOX_PATH_QT4),) 2925 ifeq ($(KBUILD_TARGET),darwin) 2926 VBOX_PATH_QT4 := $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v4*))) 2927 ifeq ($(VBOX_PATH_QT4),) 2928 ifneq ($(wildcard /Library/Frameworks/QtCore.framework),) 2929 # Using the global installation (for OSE). 2930 VBOX_PATH_QT4 ?= /usr 2931 VBOX_PATH_QT4_FRAMEWORKS ?= /Library/Frameworks 2932 endif 2933 endif 2934 else if1of ($(KBUILD_TARGET),win) 2935 VBOX_PATH_QT4 ?= $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v4*))) 2936 else if1of ($(KBUILD_TARGET),solaris) 2937 VBOX_PATH_QT4 ?= $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v4*))) 2938 ifneq ($(VBOX_PATH_QT4),) 2939 VBOX_WITH_QT4_SUN = 1 2940 endif 2935 2941 endif 2936 2942 endif 2937 endif 2938 ifeq ($(VBOX_PATH_QT4),) 2939 if1of ($(USERNAME), bird) 2940 # gentoo (64-bit) 2941 VBOX_PATH_QT4 ?= /usr 2942 VBOX_PATH_QT4_LIB ?= /usr/lib/qt4 2943 endif 2944 endif 2945 VBOX_PATH_QT4 ?= /usr 2946 VBOX_PATH_QT4_LIB ?= $(VBOX_PATH_QT4)/lib 2947 2948 # Hack LD_LIBRARY_PATH for stuff in tools. 2949 ifdef VBOX_WITH_QT4_SUN 2950 if1of ($(KBUILD_TARGET), linux) 2951 export LD_LIBRARY_PATH := $(VBOX_PATH_QT4_LIB):$(LD_LIBRARY_PATH) 2952 endif 2953 endif 2954 2955 2956 # 2957 # Template for building Qt GUI executables. 2958 # 2959 TEMPLATE_VBOXQT4GUIEXE = VBox Qt GUI Executable 2960 TEMPLATE_VBOXQT4GUIEXE_USES = qt4 2961 TEMPLATE_VBOXQT4GUIEXE_QTTOOL = QT4 2962 TEMPLATE_VBOXQT4GUIEXE_MOCTOOL = QT4 2963 TEMPLATE_VBOXQT4GUIEXE_UICTOOL = QT4 2964 TEMPLATE_VBOXQT4GUIEXE_RCCTOOL = QT4 2965 TEMPLATE_VBOXQT4GUIEXE_LRCTOOL = QT4 2966 TEMPLATE_VBOXQT4GUIEXE_SDKS = QT4 2967 ifdef VBOX_WITH_QT4_SUN 2968 ifneq ($(KBUILD_TARGET),darwin) ## @todo The next darwin build should also make use the prefix just to make things more uniform. 2969 TEMPLATE_VBOXQT4GUIEXE_QT_PREFIX = VBox 2970 endif 2971 endif 2972 TEMPLATE_VBOXQT4GUIEXE_DEFS = IN_RING3 QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H $(ARCH_BITS_DEFS) 2973 2974 ifeq ($(KBUILD_TARGET),win) 2975 TEMPLATE_VBOXQT4GUIEXE_TOOL = $(VBOX_VCC_TOOL) 2976 TEMPLATE_VBOXQT4GUIEXE_DEFS += \ 2977 _WIN32_WINNT=0x0500 UNICODE _UNICODE \ 2978 QT_DLL _CRT_SECURE_NO_DEPRECATE \ 2979 $(QMAKE_PRL_DEFINES) 2980 ## @todo VCC70 flags? 2981 ifdef VBOX_USE_VCC80 2943 ifeq ($(VBOX_PATH_QT4),) 2944 if1of ($(USERNAME), bird) 2945 # gentoo (64-bit) 2946 VBOX_PATH_QT4 ?= /usr 2947 VBOX_PATH_QT4_LIB ?= /usr/lib/qt4 2948 endif 2949 endif 2950 VBOX_PATH_QT4 ?= /usr 2951 VBOX_PATH_QT4_LIB ?= $(VBOX_PATH_QT4)/lib 2952 2953 # Hack LD_LIBRARY_PATH for stuff in tools. 2954 ifdef VBOX_WITH_QT4_SUN 2955 if1of ($(KBUILD_TARGET), linux) 2956 export LD_LIBRARY_PATH := $(VBOX_PATH_QT4_LIB):$(LD_LIBRARY_PATH) 2957 endif 2958 endif 2959 2960 2961 # 2962 # Template for building Qt GUI executables. 2963 # 2964 TEMPLATE_VBOXQT4GUIEXE = VBox Qt GUI Executable 2965 TEMPLATE_VBOXQT4GUIEXE_USES = qt4 2966 TEMPLATE_VBOXQT4GUIEXE_QTTOOL = QT4 2967 TEMPLATE_VBOXQT4GUIEXE_MOCTOOL = QT4 2968 TEMPLATE_VBOXQT4GUIEXE_UICTOOL = QT4 2969 TEMPLATE_VBOXQT4GUIEXE_RCCTOOL = QT4 2970 TEMPLATE_VBOXQT4GUIEXE_LRCTOOL = QT4 2971 TEMPLATE_VBOXQT4GUIEXE_SDKS = QT4 2972 ifdef VBOX_WITH_QT4_SUN 2973 ifneq ($(KBUILD_TARGET),darwin) ## @todo The next darwin build should also make use the prefix just to make things more uniform. 2974 TEMPLATE_VBOXQT4GUIEXE_QT_PREFIX = VBox 2975 endif 2976 endif 2977 TEMPLATE_VBOXQT4GUIEXE_DEFS = IN_RING3 QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H $(ARCH_BITS_DEFS) 2978 2979 ifeq ($(KBUILD_TARGET),win) 2980 TEMPLATE_VBOXQT4GUIEXE_TOOL = $(VBOX_VCC_TOOL) 2981 TEMPLATE_VBOXQT4GUIEXE_DEFS += \ 2982 _WIN32_WINNT=0x0500 UNICODE _UNICODE \ 2983 QT_DLL _CRT_SECURE_NO_DEPRECATE \ 2984 $(QMAKE_PRL_DEFINES) 2985 ## @todo VCC70 flags? 2986 ifdef VBOX_USE_VCC80 2987 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS = \ 2988 -nologo -Zm200 -W3 -MD -Zi -EHsc -Zc:wchar_t- 2989 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.debug = -RTCsu 2990 else 2991 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS = \ 2992 -nologo -Zm200 -W3 -MD -Zi -GX 2993 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.debug = -GZ 2994 endif 2995 TEMPLATE_VBOXQT4GUIEXE_INCS += \ 2996 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_INC) 2997 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS = \ 2998 /NOD /NOLOGO /INCREMENTAL:NO /MAPINFO:EXPORTS /DEBUG \ 2999 /DELAYLOAD:oleaut32.dll 3000 TEMPLATE_VBOXQT4GUIEXE_SDKS += WINPSDK 3001 TEMPLATE_VBOXQT4GUIEXE_LIBS = \ 3002 $(VBOX_LIBS_QT4) \ 3003 $(LIB_RUNTIME) \ 3004 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/msvcprt.lib \ 3005 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/msvcrt.lib \ 3006 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/oldnames.lib \ 3007 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib \ 3008 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib 3009 TEMPLATE_VBOXQT4GUIEXE_POST_CMDS = $(VBOX_SIGN_IMAGE_CMDS) 3010 3011 else # the gcc guys: 3012 TEMPLATE_VBOXQT4GUIEXE_TOOL = $(VBOX_GCC_TOOL) 3013 TEMPLATE_VBOXQT4GUIEXE_DEFS.linux = _REENTRANT 3014 3015 TEMPLATE_VBOXQT4GUIEXE_DEFS.solaris = _REENTRANT 3016 3017 TEMPLATE_VBOXQT4GUIEXE_INCS += \ 3018 $(LIB_SDL_INC) 2982 3019 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS = \ 2983 -nologo -Zm200 -W3 -MD -Zi -EHsc -Zc:wchar_t- 2984 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.debug = -RTCsu 2985 else 2986 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS = \ 2987 -nologo -Zm200 -W3 -MD -Zi -GX 2988 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.debug = -GZ 2989 endif 2990 TEMPLATE_VBOXQT4GUIEXE_INCS += \ 2991 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_INC) 2992 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS = \ 2993 /NOD /NOLOGO /INCREMENTAL:NO /MAPINFO:EXPORTS /DEBUG \ 2994 /DELAYLOAD:oleaut32.dll 2995 TEMPLATE_VBOXQT4GUIEXE_SDKS += WINPSDK 2996 TEMPLATE_VBOXQT4GUIEXE_LIBS = \ 2997 $(VBOX_LIBS_QT4) \ 2998 $(LIB_RUNTIME) \ 2999 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/msvcprt.lib \ 3000 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/msvcrt.lib \ 3001 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/oldnames.lib \ 3002 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib \ 3003 $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib 3004 TEMPLATE_VBOXQT4GUIEXE_POST_CMDS = $(VBOX_SIGN_IMAGE_CMDS) 3005 3006 else # the gcc guys: 3007 TEMPLATE_VBOXQT4GUIEXE_TOOL = $(VBOX_GCC_TOOL) 3008 TEMPLATE_VBOXQT4GUIEXE_DEFS.linux = _REENTRANT 3009 3010 TEMPLATE_VBOXQT4GUIEXE_DEFS.solaris = _REENTRANT 3011 3012 TEMPLATE_VBOXQT4GUIEXE_INCS += \ 3013 $(LIB_SDL_INC) 3014 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS = \ 3015 -g -pipe $(VBOX_GCC_WARN) -frtti -fno-exceptions -Wno-non-virtual-dtor \ 3016 -Wno-long-long -fshort-wchar -fno-strict-aliasing \ 3017 $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_fvisibility-inlines-hidden) 3018 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.x86 = -m32 3019 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.amd64 = -m64 3020 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.linux = -pthread 3021 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS.x86 = -m32 3022 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS.amd64 = -m64 3023 TEMPLATE_VBOXQT4GUIEXE_LIBS = \ 3024 $(VBOX_LIBS_QT4) \ 3025 $(LIB_SDL) \ 3026 $(LIB_RUNTIME) \ 3027 $(LIB_REM) \ 3028 $(LIB_VMM) 3029 3030 ifeq ($(KBUILD_TARGET),linux) 3031 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += $(VBOX_LD_as_needed) 3020 -g -pipe $(VBOX_GCC_WARN) -frtti -fno-exceptions -Wno-non-virtual-dtor \ 3021 -Wno-long-long -fshort-wchar -fno-strict-aliasing \ 3022 $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_fvisibility-inlines-hidden) 3023 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.x86 = -m32 3024 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.amd64 = -m64 3025 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.linux = -pthread 3026 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS.x86 = -m32 3027 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS.amd64 = -m64 3028 TEMPLATE_VBOXQT4GUIEXE_LIBS = \ 3029 $(VBOX_LIBS_QT4) \ 3030 $(LIB_SDL) \ 3031 $(LIB_RUNTIME) \ 3032 $(LIB_REM) \ 3033 $(LIB_VMM) 3034 3035 ifeq ($(KBUILD_TARGET),linux) 3036 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += $(VBOX_LD_as_needed) 3037 TEMPLATE_VBOXQT4GUIEXE_LIBS += \ 3038 $(VBOX_XCURSOR_LIBS) \ 3039 Xext \ 3040 X11 3041 TEMPLATE_VBOXQT4GUIEXE_LIBPATH += \ 3042 $(VBOX_LIBPATH_X11) 3043 else ifeq ($(KBUILD_TARGET),darwin) 3044 TEMPLATE_VBOXQT4GUIEXE_CFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_CFLAGS) 3045 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) 3046 TEMPLATE_VBOXQT4GUIEXE_OBJCFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_OBJCFLAGS) 3047 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -bind_at_load 3048 TEMPLATE_VBOXQT4GUIEXE_LIBS += 3049 TEMPLATE_VBOXQT4GUIEXE_LIBPATH += 3050 else 3051 TEMPLATE_VBOXQT4GUIEXE_INCS += \ 3052 $(VBOX_XCURSOR_INCS) 3053 TEMPLATE_VBOXQT4GUIEXE_LIBS += \ 3054 $(VBOX_XCURSOR_LIBS) \ 3055 Xext \ 3056 X11 \ 3057 m \ 3058 $(LIB_PTHREAD) 3059 TEMPLATE_VBOXQT4GUIEXE_LIBPATH += \ 3060 $(VBOX_LIBPATH_X11) 3061 ifeq ($(KBUILD_TARGET),freebsd) 3062 TEMPLATE_VBOXQT4GUIEXE_INCS += \ 3063 /usr/include \ 3064 /usr/X11R6/include \ 3065 /usr/local/include 3066 TEMPLATE_VBOXQT4GUIEXE_LIBPATH += \ 3067 /usr/lib \ 3068 /usr/X11R6/lib \ 3069 /usr/local/lib 3070 endif 3071 ifeq ($(KBUILD_TARGET),solaris) 3072 TEMPLATE_VBOXQT4GUIEXE_LIBS += \ 3073 rt socket nsl 3074 endif 3075 endif 3076 # Assume the Qt shared objects are in the same directory as the executable, on Solaris too. 3077 ifdef VBOX_WITH_RUNPATH 3078 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' 3079 else ifdef VBOX_WITH_ORIGIN 3080 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)' 3081 endif 3082 3083 endif 3084 3085 # Add COM/XPCOM stuff 3086 TEMPLATE_VBOXQT4GUIEXE_LIBS += \ 3087 $(PATH_LIB)/VBoxCOM$(VBOX_SUFF_LIB) 3088 ifdef VBOX_WITH_XPCOM 3089 ## @todo may be worth creating the VBOX_XPCOM SDK def, or just a SDK_VBOXXPCOM. 3090 TEMPLATE_VBOXQT4GUIEXE_DEFS += VBOX_WITH_XPCOM 3091 ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP 3092 TEMPLATE_VBOXQT4GUIEXE_DEFS += VBOX_WITH_XPCOM_NAMESPACE_CLEANUP 3093 endif 3094 TEMPLATE_VBOXQT4GUIEXE_INCS += \ 3095 $(VBOX_XPCOM_INCS) 3032 3096 TEMPLATE_VBOXQT4GUIEXE_LIBS += \ 3033 $(VBOX_XCURSOR_LIBS) \ 3034 Xext \ 3035 X11 3036 TEMPLATE_VBOXQT4GUIEXE_LIBPATH += \ 3037 $(VBOX_LIBPATH_X11) 3038 else ifeq ($(KBUILD_TARGET),darwin) 3039 TEMPLATE_VBOXQT4GUIEXE_CFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_CFLAGS) 3040 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) 3041 TEMPLATE_VBOXQT4GUIEXE_OBJCFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_OBJCFLAGS) 3042 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -bind_at_load 3043 TEMPLATE_VBOXQT4GUIEXE_LIBS += 3044 TEMPLATE_VBOXQT4GUIEXE_LIBPATH += 3045 else 3097 $(LIB_XPCOM) 3098 TEMPLATE_VBOXQT4GUIEXE_INTERMEDIATES += \ 3099 $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h 3100 else # COM 3046 3101 TEMPLATE_VBOXQT4GUIEXE_INCS += \ 3047 $(VBOX_XCURSOR_INCS) 3048 TEMPLATE_VBOXQT4GUIEXE_LIBS += \ 3049 $(VBOX_XCURSOR_LIBS) \ 3050 Xext \ 3051 X11 \ 3052 m \ 3053 $(LIB_PTHREAD) 3054 TEMPLATE_VBOXQT4GUIEXE_LIBPATH += \ 3055 $(VBOX_LIBPATH_X11) 3056 ifeq ($(KBUILD_TARGET),freebsd) 3057 TEMPLATE_VBOXQT4GUIEXE_INCS += \ 3058 /usr/include \ 3059 /usr/X11R6/include \ 3060 /usr/local/include 3061 TEMPLATE_VBOXQT4GUIEXE_LIBPATH += \ 3062 /usr/lib \ 3063 /usr/X11R6/lib \ 3064 /usr/local/lib 3102 $(VBOX_PATH_SDK)/bindings/mscom/include 3103 TEMPLATE_VBOXQT4GUIEXE_INTERMEDIATES += \ 3104 $(VBOX_PATH_SDK)/bindings/mscom/include/VirtualBox.h 3105 endif # COM 3106 3107 3108 # 3109 # Template for building Qt GUI components. 3110 # 3111 TEMPLATE_VBOXQT4GUI = VBox Qt GUI Components 3112 TEMPLATE_VBOXQT4GUI_EXTENDS = VBOXQT4GUIEXE 3113 TEMPLATE_VBOXQT4GUI_LIBS = $(filter-out $(QTMAIN),$(TEMPLATE_VBOXQT4GUIEXE_LIBS)) 3114 ifeq ($(KBUILD_TARGET),darwin) 3115 TEMPLATE_VBOXQT4GUI_LDFLAGS.darwin += $(filter-out -bind_at_load,$(TEMPLATE_VBOXQT4GUIEXE_LDFLAGS.darwin)) \ 3116 -current_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) 3117 endif 3118 ifeq ($(filter-out solaris.x86 %.amd64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),) 3119 ifneq ($(KBUILD_TARGET),win) 3120 TEMPLATE_VBOXQT4GUI_DEFS = PIC $(TEMPLATE_VBOXQT4GUIEXE_DEFS) 3121 TEMPLATE_VBOXQT4GUI_CFLAGS = -fPIC $(TEMPLATE_VBOXQT4GUIEXE_CFLAGS) 3122 TEMPLATE_VBOXQT4GUI_CXXFLAGS = -fPIC $(TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS) 3123 TEMPLATE_VBOXQT4GUI_LDFLAGS = -fPIC $(TEMPLATE_VBOXQT4GUIEXE_LDFLAGS) 3065 3124 endif 3066 ifeq ($(KBUILD_TARGET),solaris) 3067 TEMPLATE_VBOXQT4GUIEXE_LIBS += \ 3068 rt socket nsl 3069 endif 3070 endif 3071 # Assume the Qt shared objects are in the same directory as the executable, on Solaris too. 3072 ifdef VBOX_WITH_RUNPATH 3073 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' 3074 else ifdef VBOX_WITH_ORIGIN 3075 TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$$(VBOX_ORIGIN)' 3076 endif 3077 3078 endif 3079 3080 # Add COM/XPCOM stuff 3081 TEMPLATE_VBOXQT4GUIEXE_LIBS += \ 3082 $(PATH_LIB)/VBoxCOM$(VBOX_SUFF_LIB) 3083 ifdef VBOX_WITH_XPCOM 3084 ## @todo may be worth creating the VBOX_XPCOM SDK def, or just a SDK_VBOXXPCOM. 3085 TEMPLATE_VBOXQT4GUIEXE_DEFS += VBOX_WITH_XPCOM 3086 ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP 3087 TEMPLATE_VBOXQT4GUIEXE_DEFS += VBOX_WITH_XPCOM_NAMESPACE_CLEANUP 3088 endif 3089 TEMPLATE_VBOXQT4GUIEXE_INCS += \ 3090 $(VBOX_XPCOM_INCS) 3091 TEMPLATE_VBOXQT4GUIEXE_LIBS += \ 3092 $(LIB_XPCOM) 3093 TEMPLATE_VBOXQT4GUIEXE_INTERMEDIATES += \ 3094 $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h 3095 else # COM 3096 TEMPLATE_VBOXQT4GUIEXE_INCS += \ 3097 $(VBOX_PATH_SDK)/bindings/mscom/include 3098 TEMPLATE_VBOXQT4GUIEXE_INTERMEDIATES += \ 3099 $(VBOX_PATH_SDK)/bindings/mscom/include/VirtualBox.h 3100 endif # COM 3101 3102 3103 # 3104 # Template for building Qt GUI components. 3105 # 3106 TEMPLATE_VBOXQT4GUI = VBox Qt GUI Components 3107 TEMPLATE_VBOXQT4GUI_EXTENDS = VBOXQT4GUIEXE 3108 TEMPLATE_VBOXQT4GUI_LIBS = $(filter-out $(QTMAIN),$(TEMPLATE_VBOXQT4GUIEXE_LIBS)) 3109 ifeq ($(KBUILD_TARGET),darwin) 3110 TEMPLATE_VBOXQT4GUI_LDFLAGS.darwin += $(filter-out -bind_at_load,$(TEMPLATE_VBOXQT4GUIEXE_LDFLAGS.darwin)) \ 3111 -current_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) 3112 endif 3113 ifeq ($(filter-out solaris.x86 %.amd64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),) 3114 ifneq ($(KBUILD_TARGET),win) 3115 TEMPLATE_VBOXQT4GUI_DEFS = PIC $(TEMPLATE_VBOXQT4GUIEXE_DEFS) 3116 TEMPLATE_VBOXQT4GUI_CFLAGS = -fPIC $(TEMPLATE_VBOXQT4GUIEXE_CFLAGS) 3117 TEMPLATE_VBOXQT4GUI_CXXFLAGS = -fPIC $(TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS) 3118 TEMPLATE_VBOXQT4GUI_LDFLAGS = -fPIC $(TEMPLATE_VBOXQT4GUIEXE_LDFLAGS) 3119 endif 3120 endif 3121 3125 endif 3126 3127 endif # VBOX_WITH_QTGUI 3122 3128 3123 3129
Note:
See TracChangeset
for help on using the changeset viewer.