VirtualBox

Changeset 1681 in kBuild


Ignore:
Timestamp:
Jul 14, 2008 9:35:13 PM (16 years ago)
Author:
bird
Message:

Fixed #include <QtCore/qstring.h> stuff. Link windows programs against qtmain.lib.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/units/qt4.kmk

    r1680 r1681  
    779779        $($(target)_QT_PREFIX))
    780780ifeq ($(bld_trg),darwin)
    781  $(eval $(target)_LDFLAGS += -F$(PATH_SDK_QT4_LIB) $(addprefix -framework Qt$(qt_prefix),$(qt_modules)))
    782  $(eval $(target)_INCS    += $(foreach module,$(qt_modules), $(PATH_SDK_QT4_LIB)/$(qt_prefix)Qt$(module).framework/Versions/4/Headers))
     781 # Adding -F to CXXFLAGS is necessary to make #include <QtCore/qstring.h> stuff work...
     782 $(eval $(target)_CXXFLAGS += -F$(PATH_SDK_QT4_LIB) )
     783 $(eval $(target)_LDFLAGS  += -F$(PATH_SDK_QT4_LIB) $(addprefix -framework Qt$(qt_prefix),$(qt_modules)) )
     784 $(eval $(target)_INCS     += $(foreach module,$(qt_modules), $(PATH_SDK_QT4_LIB)/$(qt_prefix)Qt$(module).framework/Versions/4/Headers) )
    783785else
    784786 ifeq ($(bld_trg),win)
    785   $(eval $(target)_LIBS   += $(foreach module,$(qt_modules), $(PATH_SDK_QT4_LIB)/$(qt_prefix)Qt$(module)4$(SUFF_LIB)))
     787  $(eval $(target)_LIBS    += $(foreach module,$(qt_modules), $(PATH_SDK_QT4_LIB)/$(qt_prefix)Qt$(module)4$(SUFF_LIB)) )
     788  ifeq ($(tool_do),LINK_PROGRAM)
     789   $(eval $(target)_LIBS   += $(PATH_SDK_QT4_LIB)/$(qt_prefix)qtmain$(SUFF_LIB) )
     790  endif
    786791 else
    787   $(eval $(target)_LIBS   += $(foreach module,$(qt_modules), $(PATH_SDK_QT4_LIB)/lib$(qt_prefix)Qt$(module)$(SUFF_DLL)))
    788  endif
    789  $(eval $(target)_INCS    += $(addprefix $(PATH_SDK_QT4_INC)/Qt,$(qt_modules)))
    790 endif
    791 $(eval $(target)_DEFS     += $(foreach module,$(toupper $(qt_modules)), QT_$(module)_LIB))
     792  $(eval $(target)_LIBS    += $(foreach module,$(qt_modules), $(PATH_SDK_QT4_LIB)/lib$(qt_prefix)Qt$(module)$(SUFF_DLL)) )
     793 endif
     794 $(eval $(target)_INCS     += $(addprefix $(PATH_SDK_QT4_INC)/Qt,$(qt_modules)) $(PATH_SDK_QT4_INC) )
     795endif
     796$(eval $(target)_DEFS      += $(foreach module,$(toupper $(qt_modules)), QT_$(module)_LIB) )
    792797
    793798
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