ktigcc.pro 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. TEMPLATE = app
  2. LANGUAGE = C++
  3. CONFIG += qt warn_on debug uic3
  4. QT += xml qt3support
  5. LIBS += -lktexteditor -lkutils -lkdeui -lkdecore -lkio -lkparts -lDCOP
  6. HEADERS += tpr.h \
  7. ktigcc.h \
  8. preferences.h \
  9. srcfile.h \
  10. tiemu.h \
  11. tiemu_stub.h \
  12. callbacks.h \
  13. parsing.h \
  14. colorlistitem.h \
  15. completion.h \
  16. assistant.h
  17. SOURCES += ktigcc.cpp \
  18. preferences.cpp \
  19. tpr.cpp \
  20. tiemu_stub.cpp \
  21. callbacks.cpp \
  22. parsing.cpp \
  23. completion.cpp \
  24. assistant.cpp
  25. #The following line was changed from FORMS to FORMS3 by qt3to4
  26. FORMS3 = srcfilewin.ui \
  27. projectoptions.ui \
  28. programoptions.ui \
  29. preferencesdlg.ui \
  30. mainform.ui \
  31. errorlist.ui \
  32. programoutput.ui \
  33. functions.ui \
  34. newsdlg.ui \
  35. toolsdlg.ui \
  36. toolprops.ui \
  37. selectstyle.ui \
  38. selectcolors.ui \
  39. customstyle.ui \
  40. wordlist.ui
  41. IMAGES = images/00 \
  42. images/01 \
  43. images/02 \
  44. images/03 \
  45. images/04 \
  46. images/05 \
  47. images/06 \
  48. images/07 \
  49. images/08 \
  50. images/09 \
  51. images/10 \
  52. images/11 \
  53. images/12 \
  54. images/13 \
  55. images/14 \
  56. images/15 \
  57. images/16 \
  58. images/17 \
  59. images/18 \
  60. images/19 \
  61. images/20 \
  62. images/21 \
  63. images/22 \
  64. images/23 \
  65. images/24 \
  66. images/25 \
  67. images/26 \
  68. images/27 \
  69. images/tpr.png \
  70. images/folder1.png \
  71. images/folder2.png \
  72. images/filec.png \
  73. images/fileh.png \
  74. images/fileo.png \
  75. images/files.png \
  76. images/filet.png \
  77. images/filex.png \
  78. images/icon.png \
  79. images/filereplace.png \
  80. images/error.png \
  81. images/warning.png \
  82. images/info.png \
  83. images/ktigcc.png
  84. # If this is not used, a build from /usr/.... will generate
  85. # Makefiles with relative paths for install. This totally
  86. # fucks up using INSTALL_ROOT for a staged install.
  87. # See http://bugs.debian.org/180240
  88. # (Thanks to Debian for the fix for this qmake stupidity.)
  89. QMAKE_PROJECT_DEPTH=1
  90. UI_DIR = .ui
  91. MOC_DIR = .moc
  92. OBJECTS_DIR = .obj
  93. KDEPREFIX = $$system(kde4-config --prefix)
  94. isEmpty(KDEPREFIX):error(KDE 4 kdelibs required.)
  95. exists($$KDEPREFIX/include/kde4) {
  96. INCLUDEPATH += $$KDEPREFIX/include/kde4
  97. } else:exists($$KDEPREFIX/include/kde) {
  98. INCLUDEPATH += $$KDEPREFIX/include/kde
  99. } else {
  100. INCLUDEPATH += $$KDEPREFIX/include
  101. }
  102. KDELIBDIR = $$KDEPREFIX/lib$$system(kde4-config --libsuffix)
  103. !equals(KDELIBDIR,/usr/lib):!equals(KDELIBDIR,/usr/lib64) {
  104. LIBS += -L"$$KDELIBDIR"
  105. !darwin-*:!macx-* {
  106. LIBS += -Wl,--rpath,"$$KDELIBDIR"
  107. }
  108. }
  109. GLIB2_MINVERSION = 2.0.0
  110. HAVE_GLIB2 = $$system(pkg-config --atleast-version=$$GLIB2_MINVERSION glib-2.0 && echo yes || echo no)
  111. !equals(HAVE_GLIB2,yes):error(glib2 $$GLIB2_MINVERSION or higher required.)
  112. PKGCONFIG_CFLAGS += $$system(pkg-config --cflags glib-2.0)
  113. LIBS += $$system(pkg-config --libs glib-2.0)
  114. TICONV_MINVERSION = 0.0.1
  115. HAVE_TICONV = $$system(pkg-config --atleast-version=$$TICONV_MINVERSION ticonv && echo yes || echo no)
  116. !equals(HAVE_TICONV,yes):error(libticonv $$TICONV_MINVERSION or higher required.)
  117. PKGCONFIG_CFLAGS += $$system(pkg-config --cflags ticonv)
  118. LIBS += $$system(pkg-config --libs ticonv)
  119. TICABLES_MINVERSION = 0.1.3
  120. HAVE_TICABLES = $$system(pkg-config --atleast-version=$$TICABLES_MINVERSION ticables2 && echo yes || echo no)
  121. !equals(HAVE_TICABLES,yes):error(libticables2 $$TICABLES_MINVERSION or higher required.)
  122. PKGCONFIG_CFLAGS += $$system(pkg-config --cflags ticables2)
  123. LIBS += $$system(pkg-config --libs ticables2)
  124. TIFILES_MINVERSION = 0.0.9
  125. HAVE_TIFILES = $$system(pkg-config --atleast-version=$$TIFILES_MINVERSION tifiles2 && echo yes || echo no)
  126. !equals(HAVE_TIFILES,yes):error(libtifiles2 $$TIFILES_MINVERSION or higher required.)
  127. PKGCONFIG_CFLAGS += $$system(pkg-config --cflags tifiles2)
  128. LIBS += $$system(pkg-config --libs tifiles2)
  129. TICALCS_MINVERSION = 0.2.4
  130. HAVE_TICALCS = $$system(pkg-config --atleast-version=$$TICALCS_MINVERSION ticalcs2 && echo yes || echo no)
  131. !equals(HAVE_TICALCS,yes):error(libticalcs2 $$TICALCS_MINVERSION or higher required.)
  132. PKGCONFIG_CFLAGS += $$system(pkg-config --cflags ticalcs2)
  133. LIBS += $$system(pkg-config --libs ticalcs2)
  134. TIGCC = $$(TIGCC)
  135. isEmpty(TIGCC) {
  136. TIGCC = /usr/local/tigcc
  137. }
  138. target.path = $$TIGCC/bin
  139. documentation.path = $$TIGCC/doc/ktigcc
  140. documentation.files = COPYING NEWS ChangeLog
  141. INSTALLS += target documentation
  142. CXXFLAGS = $$(CXXFLAGS)
  143. isEmpty(CXXFLAGS) {
  144. debug {
  145. CXXFLAGS = -Os -g
  146. } else {
  147. CXXFLAGS = -Os -s -fomit-frame-pointer
  148. }
  149. }
  150. QMAKE_CXXFLAGS_DEBUG = $$CXXFLAGS -Wno-non-virtual-dtor $$PKGCONFIG_CFLAGS
  151. QMAKE_CXXFLAGS_RELEASE = $$CXXFLAGS -Wno-non-virtual-dtor $$PKGCONFIG_CFLAGS
  152. QMAKE_LFLAGS_RELEASE = -s
  153. DISTFILES += $${documentation.files} INSTALL configure KTIGCC.anjuta fedora/ktigcc.spec images/copyright.txt
  154. distbz2.target = dist-bzip2
  155. distbz2.commands = zcat ktigcc.tar.gz | bzip2 --best -c > ktigcc.tar.bz2
  156. distbz2.depends = dist
  157. rpm.target = rpm
  158. # The TAR_OPTIONS=--wildcards is a workaround for rpmbuild 4.4.2 being
  159. # incompatible with tar 1.15.91 (Fedora bug #206841).
  160. rpm.commands = TAR_OPTIONS=--wildcards rpmbuild -ta ktigcc.tar.bz2
  161. rpm.depends = distbz2
  162. QMAKE_EXTRA_UNIX_TARGETS += distbz2 rpm