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