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