Re: [Boost-bugs] [Boost C++ Libraries] #3767: Support for Frameworks on OSX + Qt4

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3767: Support for Frameworks on OSX + Qt4
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-14 08:12:01


#3767: Support for Frameworks on OSX + Qt4
------------------------------+---------------------------------------------
 Reporter: sohail | Owner: grafik
     Type: Feature Requests | Status: new
Milestone: Boost 1.42.0 | Component: bjam
  Version: Boost 1.41.0 | Severity: Not Applicable
 Keywords: |
------------------------------+---------------------------------------------

Comment(by sohail):

 Here is how I am currently using the Qt framework (4.6.0) with Boost Jam:

 {{{
 project gui ;
 import qt4 ;
 import os ;

 if [ os.name ] = "MACOSX"
 {
         local QTDIR = [ qt4.directory ] ;

         alias QtCommon
               :
               :
               :
               :
               <include>$(QTDIR)/mkspecs/macx-g++
               <include>$(QTDIR)/include
               <define>QT_NO_DEBUG
               <define>QT_SHARED
               <cxxflags>-F$(QTDIR)/lib
               ;

         local rule def-qt-framework ( qtlib : dependencies * )
         {
                 local def = [ MATCH ..(.*) : $(qtlib:U) ] ; # QtCore ->
 CORE
                 alias $(qtlib)
                       : QtCommon $(dependencies)
                       :
                       :
                       :
                       <framework>$(QTDIR)/lib/$(qtlib)
 <include>$(QTDIR)/lib/$(qtlib).framework/Versions/4/Headers
                       <include>$(QTDIR)/include/$(qtlib)
                       <define>QT_$(def)_LIB
                       ;
         }

         def-qt-framework QtCore ;
         def-qt-framework QtGui : QtCore ;
 }
 # Otherwise we will use qt4 definitions

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3767#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC