VirtualBox

Changeset 4875 in vbox for trunk/src


Ignore:
Timestamp:
Sep 17, 2007 9:15:41 PM (17 years ago)
Author:
vboxsync
Message:

Made it compile on solaris.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r4596 r4875  
    3535include $(PATH_KBUILD)/header.kmk
    3636
     37
     38#
     39# The targets.
     40#
    3741PROGRAMS = VirtualBox
    38 DLLS.linux = VBoxKeyboard
    39 
     42ifeq ($(filter-out freebsd linux openbsd netbsd solaris,$(BUILD_TARGET)),) # X11
     43DLLS = VBoxKeyboard
     44endif
    4045INSTALLS = VirtualBox.nls
    4146
     47
     48#
     49# VBoxKeyboard - keyboard library for X11.
     50#
    4251VBoxKeyboard_TEMPLATE = VBOXR3
    4352VBoxKeyboard_SOURCES  = \
    4453        src/linux/keyboard.c
    4554
     55
     56#
     57# VirtualBox - The GUI program.
     58#
    4659VirtualBox_TEMPLATE = VBOXQTGUIEXE
    4760VirtualBox_SDKS.win = WINPSDK DXSDK
    48 VirtualBox_SDKS.linux = LIBSDL
    49 VirtualBox_SDKS.os2 = LIBSDL
     61#ifeq ($(filter-out freebsd linux netbsd openbsd os2 solaris,$(BUILD_TARGET)),) - later
     62ifeq ($(filter-out freebsd linux netbsd openbsd os2,$(BUILD_TARGET)),)
     63VirtualBox_SDKS += LIBSDL
     64endif
    5065
    5166ifeq ($(BUILD_TARGET),darwin)
     
    90105# Sources containing local definitions of classes that use the Q_OBJECT macro
    91106VirtualBox_QT_MOCSRCS = src/VBoxSelectorWnd.cpp
    92 ifeq ($(BUILD_TARGET),linux)
     107ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11
    93108VirtualBox_QT_MOCSRCS += src/VBoxGlobal.cpp
    94109endif
     
    152167        src/HappyHttp.cpp
    153168
     169ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11
     170VirtualBox_SOURCES += \
     171        src/linux/XKeyboard.cpp
     172endif
     173
    154174VirtualBox_SOURCES.win += \
    155175        src/win32/VirtualBox.rc
     
    157177VirtualBox_SOURCES.win += \
    158178        src/VBoxFBDDRAW.cpp
    159 
    160 VirtualBox_SOURCES.linux = \
    161         src/linux/XKeyboard.cpp
    162179
    163180VirtualBox_SOURCES.darwin = \
     
    167184        src/darwin/VBoxUtils-darwin.cpp
    168185
    169 src/HappyHttp.cpp_CXXFLAGS.linux += -fexceptions -O2
    170 src/HappyHttp.cpp_CXXFLAGS.darwin += -fexceptions
    171 src/HappyHttp.cpp_CXXFLAGS.os2 += -fexceptions
    172 src/VBoxDownloaderWgt.cpp_CXXFLAGS.linux += -fexceptions
    173 src/VBoxDownloaderWgt.cpp_CXXFLAGS.darwin += -fexceptions
    174 src/VBoxDownloaderWgt.cpp_CXXFLAGS.os2 += -fexceptions
     186ifneq ($(BUILD_TARGET),win)
     187src/HappyHttp.cpp_CXXFLAGS += -fexceptions
     188src/VBoxDownloaderWgt.cpp_CXXFLAGS += -fexceptions
     189endif
     190src/HappyHttp.cpp_CXXFLAGS.linux += -O2
    175191
    176192## @todo how to detect what tool is used?
     
    184200VirtualBox_DEFS.debug     = VBOX_GUI_DEBUG VBOX_CHECK_STATE # QT_FATAL_ASSERT
    185201VirtualBox_DEFS.darwin    = VBOX_GUI_USE_QIMAGE VBOX_WITHOUT_QHTTP
     202VirtualBox_DEFS.freebsd   = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
    186203VirtualBox_DEFS.linux     = VBOX_GUI_USE_SDL
     204VirtualBox_DEFS.netbsd    = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
     205VirtualBox_DEFS.openbsd   = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL
     206VirtualBox_DEFS.os2       = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL QT_DLL
     207VirtualBox_DEFS.solaris   = VBOX_GUI_USE_QIMAGE VBOX_WITHOUT_XCURSOR #VBOX_GUI_USE_SDL
    187208VirtualBox_DEFS.win       = VBOX_GUI_USE_QIMAGE UNICODE QT_DLL
    188209VirtualBox_DEFS.win.amd64 = VBOX_WITHOUT_QHTTP
    189 VirtualBox_DEFS.os2       = VBOX_GUI_USE_QIMAGE VBOX_GUI_USE_SDL QT_DLL
    190210#ifndef VBOX_OSE
    191211 VirtualBox_DEFS.darwin  += VBOX_WITH_HACKED_QT
     
    229249        $(PATH_SDK_DXSDK_LIB)/ddraw.lib \
    230250        $(PATH_SDK_DXSDK_LIB)/dxguid.lib
    231 VirtualBox_LIBS.linux     = $(PATH_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
    232 
    233 
    234 ifdef VBOX_WITH_DEBUGGER_GUI
     251ifeq ($(filter-out freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # X11
     252VirtualBox_LIBS          += $(PATH_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
     253endif
     254
     255
     256ifdef VBOX_WITH_DEBUGGER_GUI ## @todo make this dynamically loadable and ship with release builds too.
    235257 ifeq ($(BUILD_TARGET),win)
    236258  VirtualBox_LIBS        += $(PATH_LIB)/VBoxDbg$(VBOX_SUFF_LIB)
     
    297319# Translation installation
    298320#
    299 
    300321VirtualBox.nls_INST = $(INST_BIN)nls/
    301322VirtualBox.nls_SOURCES =  $(patsubst %.ts,$(PATH_VirtualBox)/nls/%.qm,$(notdir $(VirtualBox_QT_TRANSLATIONS)))
  • trunk/src/VBox/Frontends/VirtualBox/include/XKeyboard.h

    r4071 r4875  
    2020#define __XKeyboard_h__
    2121
    22 #ifndef RT_OS_LINUX
    23 #error This file is X11/Linux specific!
    24 #endif
    25 
    2622// our structure used to return keyboard event information
    2723typedef struct _WINEKEYBOARDINFO
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp

    r4514 r4875  
    7171#endif
    7272#include "XKeyboard.h"
    73 #include <X11/Xcursor/Xcursor.h>
    74 #endif
     73#ifndef VBOX_WITHOUT_XCURSOR
     74# include <X11/Xcursor/Xcursor.h>
     75#endif
     76#endif // Q_WS_X11
    7577
    7678#if defined (Q_WS_MAC)
     
    29882990            DeleteObject (hBitmap);
    29892991
    2990 #elif defined (Q_WS_X11)
     2992#elif defined (Q_WS_X11) && !defined (VBOX_WITHOUT_XCURSOR)
    29912993
    29922994        XcursorImage *img = XcursorImageCreate (me->width(), me->height());
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxNewHDWzd.ui.h

    r4071 r4875  
    317317    QString ext = QFileInfo (name).extension();
    318318    /* compare against the proper case */
    319 #if defined (Q_OS_LINUX)
     319#if defined (Q_OS_FREEBSD) || defined (Q_OS_LINUX) || defined (Q_OS_NETBSD) || defined (Q_OS_OPENBSD) || defined (Q_OS_SOLARIS)
    320320#elif defined (Q_OS_WIN) || defined (Q_OS_OS2) || defined (Q_OS_MACX)
    321321    ext = ext.lower();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette