Rebuilding removes dependencies on python2.5
[serna.git] / defaults.pro
1 #
2 # TMake settings for Syntext components library
3 #
4 #
5
6 THIRD_DIR           = $$top_builddir/../3rd
7 SERNA_DIR           = $$top_srcdir/serna
8 CLIB_SRC            = $$top_srcdir/sfworks
9 CLIB_LIB            = $$top_builddir/sfworks/lib
10 PLAT_INCPATH_BASE   = $(CLIB_SRC)/common/sysdep
11 PKGINFOPATH         = $$THIRD_DIR/lib
12
13 CONFIG_VARS         += CLIB_SRC CLIB_LIB SERNA_DIR
14 FILETAGS            += CLIB_SRC CLIB_LIB SERNA_DIR
15
16 CONFIG              *= qtexternal
17 darwin:CONFIG       *= universal
18
19 universal:TMAKE_CFLAGS    += -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
20 universal:TMAKE_CXXFLAGS  += -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
21 universal:TMAKE_LFLAGS    += -headerpad_max_install_names -arch i386 -arch ppc \
22                              -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk
23
24 universal:MACOSX_DEPLOYMENT_TARGET = 10.4
25
26 release:DEFINES     -= _DEBUG
27 release:DEFINES     *= NDEBUG NOCVSID
28 release:DEFINES     += OALLOC_TYPE=4
29
30 debug:DEFINES       -= NDEBUG NOCVSID
31 debug:DEFINES       *= _DEBUG
32
33 DEFINES       *= MULTI_THREADED
34
35 SUBQT_DIR           =  $(CLIB_SRC)/subqt
36 qtexternal:SUBQT_DIR = $(THIRD_DIR)/qt
37 QT_DIR              = $(THIRD_DIR)/qt
38 #QT_INC              += $$SUBQT_DIR; $$SUBQT_DIR/qt;
39
40 win32:QT_INC        += $$SUBQT_DIR/mkspecs/win32-msvc
41 freebsd:QT_INC      += $$SUBQT_DIR/mkspecs/freebsd-g++
42 linux:QT_INC        += $$SUBQT_DIR/mkspecs/linux-g++ 
43 sunos:QT_INC        += $$SUBQT_DIR/mkspecs/solaris-cc
44
45 unix:TMAKE_CFLAGS *= $$unix_CFLAGS
46 darwin:TMAKE_CFLAGS *= $$unix_CFLAGS
47
48 unix:TMAKE_CXXFLAGS *= $$unix_CFLAGS
49 darwin:TMAKE_CXXFLAGS *= $$unix_CFLAGS
50
51 # Settings for unix
52
53 # without this LLONG_MIN/LLONG_MAX/ULLONG_MAX won't be defined
54 linux:DEFINES *= __STDC_VERSION__=199901L
55
56 unix:TMAKE_RANLIB   = ranlib
57 unix:TMAKE_LIBS     *= -L/usr/local/lib
58 darwin:TMAKE_LIBS   -= -L/usr/local/lib
59 unix:MAKE            = make
60 unix:COPY            = cp
61 unix:BISON           = bison
62 unix:TMAKE_CXXFLAGS  += -g
63
64 unix:INSTALL_PROGRAM    = cp
65 unix:INSTALL_OPTS        = -fp
66 unix:INSTALL_DIR_PROGRAM    = cp
67 unix:INSTALL_DIR_OPTS        = -fpR
68 unix:MKDIR    = mkdir -p
69
70 unix_QTLIB      = QtCore
71 mt:unix_QTLIB   = QtCore
72 unix:QTLIB      = $$unix_QTLIB
73
74 unix:QT_SYSLIBS   =  Xmu ICE SM Xext X11 freetype
75 linux:QT_SYSLIBS  *= Xft Xinerama
76 darwin:QT_SYSLIBS  = 
77 darwin:TMAKE_LFLAGS += -Wl,-search_paths_first
78
79 unix:APP_LFLAGS   = -L/usr/X11R6/lib
80
81 linux:THR_LIBS    += pthread
82
83 MAKE_PARALLEL = -j2
84
85 # Settings for win32
86
87 win32:CONFIG         *= console
88 win32:TMAKE_CXX       = cl
89 win32:TMAKE_CXXFLAGS *= -Zc:forScope -w44355 -w44996 -we4700
90 win32:DEFINES        += WIN32
91 # STATIC, DYNAMIC
92 static:win32_defines  += SFWORKS_STATIC SERNA_STATIC
93 release:win32_defines  -= SFWORKS_STATIC SERNA_STATIC
94 debug:win32_defines   += _HAS_ITERATOR_DEBUGGING=0
95
96 release:win32_defines  += SFWORKS_DLL SERNA_DLL GROVE_API GROVEEDITOR_API
97 dynamic:win32_defines += QT_DLL SP_USE_DLL
98
99 win32:DEFINES         += $$win32_defines
100 win32:PROFILE_DEFINES *= PROFILE
101
102 win32:MAKE            = nmake -nologo
103 win32:COPY            = copy
104 win32:BISON           = $(THIRD_DIR)\bin\bison
105
106 win32:INSTALL               = xcopy
107 win32:INSTALL_OPTS          = /q /y /r /i
108 win32:INSTALL_DIR_PROGRAM   = xcopy
109 win32:INSTALL_DIR_OPTS      = /e /c /h /q /y /r /i
110 win32:MKDIR = md
111 win32:ZIP                   = $(THIRD_DIR)\bin\zip
112
113 win32:WIN32_RESOURCE    += $(CLIB_SRC)/common.rc
114
115 win32:QTLIB         = QtCore
116
117 win32:SYS_LIBS      = user32.lib kernel32.lib ws2_32.lib
118
119 win32:QT_SYSLIBS    = comdlg32.lib shell32.lib comsupp.lib oleaut32.lib \
120                       gdi32.lib advapi32.lib imm32.lib \
121                       winspool.lib winmm.lib ole32.lib uuid.lib
122
123 # Sunos settings
124
125 #sunos:TMAKE_CXXFLAGS += -xtarget=ultra
126 #sunos:TMAKE_LFLAGS += -xtarget=ultra
127 #sunos:TMAKE_CLEAN   = -r SunWS_cache obj/SunWS_cache
128
129 # General settings
130
131 profile:DEFINES *= $$PROFILE_DEFINES
132 linux:SYS_LIBS  *= dl util
133 freebsd:SYS_LIBS   *= util
134 darwin:SYS_LIBS    *= System
135
136 PRODUCT_NAME        = Syntext Components Library
137 VERSION             = 1.0.0
138 CONFIG              += mt
139 qtexternal:DEFINES  *= QT_DLL
140
141 TMAKE               = tmake
142 TMAKE_OPTS          = 
143 TMAKE_MOC           = $(THIRD_DIR)/bin/moc
144 TMAKE_UIC           = $(THIRD_DIR)/bin/uic3
145 win32:TMAKE_UIC     = $(THIRD_DIR)/bin/uic3.bat
146 JADE                = $(THIRD_DIR)/bin/jade
147 MOC_DIR             = ./moc
148
149 MKDEP               = makedepend
150 MKDEP_OPT           = -Y
151
152 FILETAGS            += TMAKEPATH TMAKE_MOC TMAKE_UIC
153
154 TMAKE_INCDIR_QT     = 
155 TMAKE_LIBDIR_QT     =
156 TMAKE_LIBS_QT       =
157
158 DEFAULT_CONFIG      = warn_on dynamic debug
159 PLATFORM_DESTDIRS   = no
160 OBJECTS_DIR         = obj
161
162 msg2cpp             = $(THIRD_DIR)/bin/python $(top_srcdir)/tools/msggen/msggen.py
163 msg2h               = $$msg2cpp
164
165 SOURCE_SUFFIXES            = msg ui
166 msg_TARGET_SOURCE_SUFFIXES = cpp
167 msg_TARGET_HEADER_SUFFIXES = h
168
169 ui_TARGET_HEADER_SUFFIXES = hpp
170 ui2hpp                    = $(THIRD_DIR)/bin/uic
171 ui2hpp_FLAGS              = $? -o $@
172
173 msg2cpp_FLAGS       = -C -M $(MSGGEN_MODULE) $@ $?
174 msg2h_FLAGS         = -H -M $(MSGGEN_MODULE) $@ $?