Ticket #64: kBuild_qt3_os2.patch

File kBuild_qt3_os2.patch, 2.8 KB (added by dmik, 15 years ago)
  • units/qt3.kmk

     
    6969  # If target == host, try look for Qt in the various platform specific places.
    7070  ifeq ($(KBUILD_TARGET),$(KBUILD_HOST))
    7171   ifeq ($(KBUILD_TARGET),darwin)
    72     # No idea here yet...
     72    # No idea here yet... (look at the stuff in vbox/Config.kmk)
    7373   else ifeq ($(KBUILD_TARGET),os2)
    74     # No idea here yet...
     74    QTDIR ?= $(PATH_DEVTOOLS_TRG)/qt/v3.3.1
     75    PATH_SDK_QT3    := $(QTDIR)
     76    DLL_SDK_QT3_QT  := $(lastword $(sort $(wildcard $(PATH_SDK_QT3)/bin/*qt*$(SUFF_DLL))))
     77    LIB_SDK_QT3_QT  := $(lastword $(sort $(wildcard $(PATH_SDK_QT3)/lib/*qt*$(SUFF_LIB))))
     78    QTDIR           := $(PATH_SDK_QT3)
    7579   else ifeq ($(KBUILD_TARGET),win)
    76     # No idea here yet...
     80    # No idea here yet... (look at the stuff in vbox/Config.kmk)
    7781   else
    7882    # The Unices. Includes and esp. libs are tricky, so override the PATH_SDK_QT3_LIB* stuff if it doesn't work.
    7983    # Try find the general location of the thing by looking for the qm2ts program, then try looking for
     
    216220 PATH_TOOL_QT3_BIN := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS_BLD)/qt/v3*/bin)))
    217221 ifeq ($(PATH_TOOL_QT3_BIN),)
    218222  if1of ($(KBUILD_HOST), win os2)
    219    # sorry, no joy here.
     223   PATH_TOOL_QT3_BIN := $(PATH_SDK_QT3)/bin
    220224  else
    221225   ifdef TOOL_QT3_BIN_SUFF
    222226    TOOL_QT3_BIN_SUFF := $(TOOL_QT3_BIN_SUFF)
     
    274278 TOOL_QT3_UIC       ?= $(PATH_TOOL_QT3_BIN)/uic$(TOOL_QT3_BIN_SUFF)$(HOST_SUFF_EXE)
    275279 TOOL_QT3_LRC       ?= $(PATH_TOOL_QT3_BIN)/lrelease$(TOOL_QT3_BIN_SUFF)$(HOST_SUFF_EXE)
    276280 TOOL_QT3_LUPDATE   ?= $(PATH_TOOL_QT3_BIN)/lupdate$(TOOL_QT3_BIN_SUFF)$(HOST_SUFF_EXE)
     281 ifeq ($(KBUILD_TARGET),os2)
     282  # search DLLs in the EXE directory first (unless DLL_SDK_QT3_QT is set)
     283  local qt_path     := $(dir $(DLL_SDK_QT3_QT))
     284  local qt_path     := $(if $(qt_path),$(qt_path);,)
     285  TOOL_QT3_MOC      := BEGINLIBPATH="$(qt_path)$(dir $(TOOL_QT3_MOC));%BEGINLIBPATH%" $(TOOL_QT3_MOC)
     286  TOOL_QT3_UIC      := BEGINLIBPATH="$(qt_path)$(dir $(TOOL_QT3_UIC));%BEGINLIBPATH%" $(TOOL_QT3_UIC)
     287  TOOL_QT3_LRC      := BEGINLIBPATH="$(qt_path)$(dir $(TOOL_QT3_LRC));%BEGINLIBPATH%" $(TOOL_QT3_LRC)
     288  TOOL_QT3_LUPDATE  := BEGINLIBPATH="$(qt_path)$(dir $(TOOL_QT3_LUPDATE));%BEGINLIBPATH%" $(TOOL_QT3_LUPDATE)
     289 endif
    277290else
    278291 # Pathless, relies on the environment.
    279292 TOOL_QT3_MOC       ?= moc$(TOOL_QT3_BIN_SUFF)$(HOST_SUFF_EXE)
     
    799812        ) $(PATH_SDK_QT3_LIB)/$(qt_prefix)qtmain$(SUFF_LIB) )
    800813  $(eval $(target)_LIBS   += $(qt_main_lib) )
    801814 endif
     815else ifeq ($(bld_trg),os2)
     816 $(eval $(target)_LIBS    += $(LIB_SDK_QT3_QT) )
    802817else
    803818 local qt_lib := $(PATH_SDK_QT3_LIB)/lib$(qt_prefix)qt-mt$(SUFF_DLL)
    804819 $(eval $(target)_LIBS    += $(qt_lib) )