Changeset 424 for trunk/m2/m2_macx.r

Show
Ignore:
Timestamp:
07/02/07 21:08:38 (17 months ago)
Author:
krobillard
Message:

m2 - Added qt-static. Implemented this for Mac OS.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/m2/m2_macx.r

    r277 r424  
    6969 
    7070 
    71 qt-includes: context [ 
     71qt-libs: context [ 
    7272   gui:     does [include_from {/Library/Frameworks/QtGui.framework/Headers} 
    7373                  lflags   {-framework QtGui}] 
     
    8989] 
    9090 
     91qt-static-libs: context [ 
     92   qlib: func [name] [ 
     93       include_from join {$(QTDIR)/include/} name 
     94       lflags join {-l} name 
     95   ] 
     96   gui:     does [qlib {QtGui}] 
     97   network: does [qlib {QtNetwork}] 
     98   opengl:  does [qlib {QtOpenGL}] 
     99   xml:     does [qlib {QtXml}] 
     100   svg:     does [qlib {QtSvg}] 
     101   sql:     does [qlib {QtSql}] 
     102   support: does [qlib {Qt3Support} cxxflags {-DQT3_SUPPORT}] 
     103] 
    91104 
    92105exe_target: make m2/target_env 
     
    132145                include_from {$(QTDIR)/include} 
    133146            ][ 
    134                 include_from {/Library/Frameworks/QtCore.framework/Headers} 
    135                 cflags {-F/Library/Frameworks} 
    136                 lflags {-F/Library/Frameworks -framework QtCore} 
    137                 lflags {-framework Carbon} 
    138                 do bind cfg/qt in qt-includes 'gui 
     147                either cfg/qt-static [ 
     148                    include_from {$(QTDIR)/include} 
     149                    include_from {$(QTDIR)/include/QtCore} 
     150                    lflags {-L$(QTDIR)/lib -lQtCore} 
     151                    lflags {-framework Carbon -lz -liconv} 
     152                    do bind cfg/qt in qt-static-libs 'gui 
     153                ][ 
     154                    include_from {/Library/Frameworks/QtCore.framework/Headers} 
     155                    cflags {-F/Library/Frameworks} 
     156                    lflags {-F/Library/Frameworks -framework QtCore} 
     157                    lflags {-framework Carbon} 
     158                    do bind cfg/qt in qt-libs 'gui 
     159                ] 
    139160            ] 
    140161            if cfg/release [ 
     
    160181                lflags {-framework Carbon -lz} 
    161182            ] 
    162             ;[ 
    163             ;    lflags {-bind_at_load -framework QtGui -framework QtCore} 
    164             ;    lflags {-framework Carbon} 
    165             ;] 
    166183        ] 
    167184    ]