Changeset 424

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

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

Location:
trunk/m2
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/m2/m2

    r250 r424  
    7979        configuration: context [ 
    8080                release: debug: warn: false 
    81                 opengl: qt: x11: false 
     81                opengl: qt: qt-static: x11: false 
    8282        ] 
    8383 
     
    332332qt3:      func [{Using Troll Tech's Qt 3.}]    [ m2/ct/cfg/qt: 3 ] 
    333333qt:       func [{Using Troll Tech's Qt 4.} libs [block!]] [ m2/ct/cfg/qt: libs ] 
     334qt-static: does [m2/ct/cfg/qt-static: true] 
    334335x11:      func [{Using X11 libraries.}]        [ m2/ct/cfg/x11: true ] 
    335336 
  • 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    ]