VirtualBox

Changeset 10617 in vbox


Ignore:
Timestamp:
Jul 14, 2008 9:33:52 PM (17 years ago)
Author:
vboxsync
Message:

qt4 unit: part 3; clean ups.

File:
1 edited

Legend:

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

    r10597 r10617  
    7979  # gentoo (64-bit)
    8080  VBOX_PATH_QT4          ?= /usr
    81   VBOX_PATH_QT4_BIN      ?= /usr/bin
    8281  VBOX_PATH_QT4_INCLUDE  ?= /usr/include/qt4
    8382  VBOX_PATH_QT4_LIB      ?= /usr/lib/qt4
     
    8786endif
    8887VBOX_PATH_QT4            ?= /usr
    89 VBOX_PATH_QT4_BIN        ?= $(VBOX_PATH_QT4)/bin
    9088VBOX_PATH_QT4_INCLUDE    ?= $(VBOX_PATH_QT4)/include
    9189VBOX_PATH_QT4_LIB        ?= $(VBOX_PATH_QT4)/lib
     
    9593
    9694ifneq ($(KBUILD_TARGET),darwin)
     95ifndef USE_KBUILD_QT4_UNIT_PART_3
    9796 VBOX_INCS_QT4      += $(VBOX_PATH_QT4_INCLUDE) ## @todo add this to the qt4 unit.
    98 
    99  ifeq (enabled,enabled) # Adding mkspecs to the INCS is hopefully not really necessary... Will try disable it later.
     97endif
     98
     99 ifeq (disabled,yes) # Adding mkspecs to the INCS is hopefully not really necessary... Will try disable it later.
    100100  ifeq ($(KBUILD_TARGET),win)
    101101   ifeq ($(KBUILD_TARGET_ARCH),amd64)
     
    110110 endif
    111111
    112  # Move down.
    113  ifeq ($(KBUILD_TARGET),win)
    114   VBOX_LIBS_QT4 := VBoxqtmain.lib
     112 ifndef USE_KBUILD_QT4_UNIT_PART_3
     113  # Move down.
     114  ifeq ($(KBUILD_TARGET),win)
     115   VBOX_LIBS_QT4 := VBoxqtmain.lib
     116  endif
    115117 endif
    116118
     
    126128# Some default defs
    127129VBOX_DEFS_QT4 += QT_SHARED HAVE_CONFIG_H QT_NO_DEBUG
    128 
    129 VBOX_UIC4      ?= $(VBOX_PATH_QT4_BIN)/uic
    130 VBOX_MOC4      ?= $(VBOX_PATH_QT4_BIN)/moc
    131 VBOX_RCC4      ?= $(VBOX_PATH_QT4_BIN)/rcc
    132 VBOX_LUPDATE4  ?= $(VBOX_PATH_QT4_BIN)/lupdate
    133 VBOX_LRELEASE4 ?= $(VBOX_PATH_QT4_BIN)/lrelease
    134 
    135 # tell moc what platform we are on to let it properly define
    136 # Q_OS_* and Q_WS_* macros when including qglobal.h
    137 # (is there a better way?)
    138 ifeq ($(KBUILD_TARGET),win)
    139  ifeq ($(KBUILD_TARGET_ARCH),amd64)
    140   VBOX_MOC4    += -DWIN64
    141  else
    142   VBOX_MOC4    += -DWIN32
    143  endif
    144 else ifeq ($(KBUILD_TARGET),darwin)
    145   VBOX_MOC4    += -D__APPLE__ -D__GNUC__
    146 else ifeq ($(KBUILD_TARGET),solaris)
    147   VBOX_MOC4    += -D__sun
    148 else ifeq ($(KBUILD_TARGET),linux)
    149  # when nothing special is defined, Q_OS_UNIX/Q_WS_X11 will be set
    150 else
    151  $(error Port me!)
    152 endif
    153130
    154131ifdef VBOX_WITH_QT4_SUN
     
    261238        $(LIB_VMM)
    262239
     240ifeq (disabled,yes)
    263241 ifeq ($(KBUILD_TARGET_ARCH),amd64)
    264242  TEMPLATE_VBOXQT4GUIEXE_LIBPATH = \
     
    268246        $(VBOX_PATH_QT4_LIB)
    269247 endif
     248endif
    270249
    271250 ifeq ($(KBUILD_TARGET),linux)
     
    276255    $(VBOX_LIBPATH_X11)
    277256 else ifeq ($(KBUILD_TARGET),darwin)
     257ifndef USE_KBUILD_QT4_UNIT_PART_3
    278258  TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS += -F$(VBOX_PATH_QT4_FRAMEWORKS) ## @todo fix in the qt unit. Somehow this fixes the #include <QtCore/qstring.h> stuff.
     259endif
    279260  TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += -framework Carbon -framework QuickTime -bind_at_load
    280261  TEMPLATE_VBOXQT4GUIEXE_LIBS +=
     
    313294        $(PATH_LIB)/VBoxCOM$(VBOX_SUFF_LIB)
    314295ifdef VBOX_WITH_XPCOM
    315  ## @todo may be worth creating the VBOX_XPCOM SDK def
     296 ## @todo may be worth creating the VBOX_XPCOM SDK def, or just a SDK_VBOXXPCOM.
    316297 TEMPLATE_VBOXQT4GUIEXE_DEFS            += VBOX_WITH_XPCOM
    317298 TEMPLATE_VBOXQT4GUIEXE_INCS            += \
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