ktigcc.pro 4.8 KB

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