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