vym.pro
author insilmaril
Wed, 20 May 2009 15:40:14 +0000
changeset 772 e3f722759c7e
parent 769 a6931cd6309a
child 773 340bc29da9a0
permissions -rw-r--r--
Fixed segfault when closing a map
     1 TEMPLATE	= app
     2 LANGUAGE	= C++
     3 
     4 CONFIG	+= qt warn_on release debug
     5 CONFIG += x86 ppc
     6 
     7 
     8 include (/data/qtanimationframework-2.3-opensource/src/gui-animation.pri)
     9 include (/data/qtanimationframework-2.3-opensource/src/corelib-animation.pri)
    10 include (/data/qtanimationframework-2.3-opensource/src/qtanimationframework.pri)
    11 
    12 
    13 TRANSLATIONS += lang/vym_de.ts
    14 TRANSLATIONS += lang/vym_en.ts
    15 TRANSLATIONS += lang/vym_es.ts
    16 TRANSLATIONS += lang/vym_it.ts
    17 TRANSLATIONS += lang/vym_fr.ts
    18 TRANSLATIONS += lang/vym_zh_CN.ts
    19 TRANSLATIONS += lang/vym_pt_BR.ts
    20 TRANSLATIONS += lang/vym_sv.ts
    21 TRANSLATIONS += lang/vym_zh_TW.ts
    22 
    23 # Manifest embedding was suggested by Qt docs somewhere...
    24 win32: CONFIG += embed_manifest_exe
    25 
    26 # Without this, M_PI, and M_PI_2 won`t be defined.
    27 win32:DEFINES *= _USE_MATH_DEFINES
    28 
    29 ICON =icons/vym.icns
    30 
    31 QT += qt3support
    32 QT += network
    33 
    34 HEADERS	+= \
    35 	aboutdialog.h \
    36 	animpoint.h \
    37 	attribute.h \
    38 #	attributedelegate.h\
    39 #	attributedialog.h \
    40 #	attributewidget.h \
    41 	branchitem.h \
    42 	branchobj.h \
    43 	branchpropwindow.h\
    44 	editxlinkdialog.h \
    45 	exportoofiledialog.h \
    46 	exportxhtmldialog.h\
    47 	exports.h \
    48 	extrainfodialog.h \
    49 	file.h \
    50 	findwindow.h \
    51 	flag.h \
    52 	flagobj.h \
    53 	flagrowobj.h \
    54 	flagrow.h \
    55 	floatimageobj.h \
    56 	floatobj.h \
    57 	frameobj.h \
    58 	geometry.h \
    59 	headingobj.h \
    60 	highlighter.h \
    61 	historywindow.h \
    62 	imageobj.h \
    63 	imports.h \
    64 	linkablemapobj.h \
    65 	mainwindow.h \
    66 	mapcenterobj.h \
    67 	mapcenteritem.h \
    68 	mapeditor.h \
    69 	mapitem.h \
    70 	mapobj.h \
    71 	misc.h \
    72 	noteobj.h \
    73 	options.h \
    74 	ornamentedobj.h \
    75 	parser.h \
    76 	process.h \
    77 	selection.h \
    78 	showtextdialog.h\
    79 	simplescripteditor.h\
    80 	texteditor.h \
    81 	treeeditor.h \
    82 	version.h \
    83 	vymmodel.h \
    84 	xlinkobj.h \
    85 	xml-base.h \
    86 	xml-vym.h \
    87 	xml-freemind.h \
    88 	xmlobj.h\
    89 	xsltproc.h \
    90 	settings.h \
    91 	treeitem.h \
    92 	treemodel.h \
    93 	vymview.h \
    94 	warningdialog.h
    95 
    96 SOURCES	+= \
    97 	aboutdialog.cpp \
    98 	animpoint.cpp \
    99 	attribute.cpp \
   100 #	attributedelegate.cpp \
   101 #	attributedialog.cpp \
   102 #	attributewidget.cpp \
   103 	branchitem.cpp \
   104 	branchobj.cpp \
   105 	branchpropwindow.cpp \
   106 	editxlinkdialog.cpp \
   107 	exportoofiledialog.cpp \
   108 	exports.cpp \
   109 	exportxhtmldialog.cpp \
   110 	extrainfodialog.cpp \
   111 	file.cpp \
   112 	findwindow.cpp \
   113 	flag.cpp \
   114 	flagobj.cpp \
   115 	flagrow.cpp \
   116 	flagrowobj.cpp \
   117 	floatimageobj.cpp \
   118 	floatobj.cpp \
   119 	frameobj.cpp \
   120 	geometry.cpp \
   121 	headingobj.cpp \
   122 	highlighter.cpp \
   123 	historywindow.cpp \
   124 	imageobj.cpp \
   125 	imports.cpp \
   126 	linkablemapobj.cpp \
   127 	main.cpp \
   128 	mainwindow.cpp \
   129 	mapcenteritem.cpp \
   130 	mapcenterobj.cpp \
   131 	mapeditor.cpp \
   132 	mapitem.cpp \
   133 	mapobj.cpp \
   134 	misc.cpp \
   135 	noteobj.cpp \
   136 	options.cpp \
   137 	ornamentedobj.cpp \
   138 	parser.cpp \
   139 	process.cpp \
   140 	selection.cpp \
   141 	showtextdialog.cpp \
   142 	simplescripteditor.cpp \
   143 	texteditor.cpp \
   144 	treeeditor.cpp \
   145 	treeitem.cpp \
   146 	treemodel.cpp \
   147 	version.cpp \
   148 	vymmodel.cpp \
   149 	xlinkobj.cpp \
   150 	xml-base.cpp \
   151 	xml-vym.cpp \
   152 	xml-freemind.cpp \
   153 	xmlobj.cpp \
   154 	xsltproc.cpp \
   155 	settings.cpp \
   156 	vymview.cpp \
   157 	warningdialog.cpp
   158 
   159 FORMS = \
   160 	attributewidget.ui \
   161 	branchpropwindow.ui \
   162 	exportxhtmldialog.ui \
   163 	extrainfodialog.ui \
   164 	editxlinkdialog.ui \
   165 	historywindow.ui \
   166 	simplescripteditor.ui \
   167 	showtextdialog.ui \
   168 	warningdialog.ui
   169 
   170 win32 {
   171 	HEADERS += mkdtemp.h
   172 	SOURCES += mkdtemp.cpp
   173 	RC_FILE = vym.rc
   174 }
   175 
   176 #The following lines were inserted by qt3to4
   177 QT += xml
   178 
   179 TARGET  = vym
   180 
   181 
   182 isEmpty( PREFIX ) {
   183 	PREFIX = /usr/local
   184 	count( INSTALLDIR, 1 ) {
   185 		PREFIX = $${INSTALLDIR}
   186 		message( "Please use PREFIX instead of INSTALLDIR" )
   187 	}
   188 }
   189 isEmpty( BINDIR ) {
   190 	BINDIR = $${PREFIX}/bin
   191 }
   192 isEmpty( DATADIR ) {
   193 	DATADIR = $${PREFIX}/share
   194 }
   195 isEmpty( DOCDIR ) {
   196 	DOCDIR = $${DATADIR}/doc/packages/vym
   197 }
   198 
   199 message( "Installation directory" )
   200 message( $$PREFIX )
   201 
   202 
   203 target.path = $${BINDIR}
   204 INSTALLS += target
   205 
   206 support.files = styles/ scripts/ icons/ flags/ lang/ macros/ exports/ demos/
   207 support.path = $${DATADIR}/vym
   208 INSTALLS += support 
   209 
   210 doc.files = doc/vym.pdf
   211 doc.path = $${DOCDIR}
   212 INSTALLS += doc
   213 DEFINES += VYM_DOCDIR=\\\"$${DOCDIR}\\\"
   214