ktigcc.pro 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. TEMPLATE = app
  2. LANGUAGE = C++
  3. CONFIG += qt warn_on debug
  4. LIBS += -lktexteditor -lkutils
  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. unix {
  89. UI_DIR = .ui
  90. MOC_DIR = .moc
  91. OBJECTS_DIR = .obj
  92. }
  93. KDEPREFIX = $$system(kde-config --prefix)
  94. isEmpty(KDEPREFIX):error(KDE 3 kdelibs required.)
  95. exists($$KDEPREFIX/include/kde3) {
  96. INCLUDEPATH += $$KDEPREFIX/include/kde3
  97. } else:exists($$KDEPREFIX/include/kde) {
  98. INCLUDEPATH += $$KDEPREFIX/include/kde
  99. } else {
  100. INCLUDEPATH += $$KDEPREFIX/include
  101. }
  102. KDELIBDIR = $$KDEPREFIX/lib$$system(kde-config --libsuffix)
  103. !equals(KDELIBDIR,/usr/lib):!equals(KDELIBDIR,/usr/lib64) {
  104. LIBS += -L"$$KDELIBDIR" -Wl,--rpath,"$$KDELIBDIR"
  105. }
  106. GLIB2_MINVERSION = 2.0.0
  107. HAVE_GLIB2 = $$system(pkg-config --atleast-version=$$GLIB2_MINVERSION glib-2.0 && echo yes || echo no)
  108. !equals(HAVE_GLIB2,yes):error(glib2 $$GLIB2_MINVERSION or higher required.)
  109. PKGCONFIG_CFLAGS += $$system(pkg-config --cflags glib-2.0)
  110. LIBS += $$system(pkg-config --libs glib-2.0)
  111. TICONV_MINVERSION = 0.0.1
  112. HAVE_TICONV = $$system(pkg-config --atleast-version=$$TICONV_MINVERSION ticonv && echo yes || echo no)
  113. !equals(HAVE_TICONV,yes):error(libticonv $$TICONV_MINVERSION or higher required.)
  114. PKGCONFIG_CFLAGS += $$system(pkg-config --cflags ticonv)
  115. LIBS += $$system(pkg-config --libs ticonv)
  116. TICABLES_MINVERSION = 0.1.3
  117. HAVE_TICABLES = $$system(pkg-config --atleast-version=$$TICABLES_MINVERSION ticables2 && echo yes || echo no)
  118. !equals(HAVE_TICABLES,yes):error(libticables2 $$TICABLES_MINVERSION or higher required.)
  119. PKGCONFIG_CFLAGS += $$system(pkg-config --cflags ticables2)
  120. LIBS += $$system(pkg-config --libs ticables2)
  121. TIFILES_MINVERSION = 0.0.9
  122. HAVE_TIFILES = $$system(pkg-config --atleast-version=$$TIFILES_MINVERSION tifiles2 && echo yes || echo no)
  123. !equals(HAVE_TIFILES,yes):error(libtifiles2 $$TIFILES_MINVERSION or higher required.)
  124. PKGCONFIG_CFLAGS += $$system(pkg-config --cflags tifiles2)
  125. LIBS += $$system(pkg-config --libs tifiles2)
  126. TICALCS_MINVERSION = 0.2.4
  127. HAVE_TICALCS = $$system(pkg-config --atleast-version=$$TICALCS_MINVERSION ticalcs2 && echo yes || echo no)
  128. !equals(HAVE_TICALCS,yes):error(libticalcs2 $$TICALCS_MINVERSION or higher required.)
  129. PKGCONFIG_CFLAGS += $$system(pkg-config --cflags ticalcs2)
  130. LIBS += $$system(pkg-config --libs ticalcs2)
  131. TIGCC = $$(TIGCC)
  132. isEmpty(TIGCC) {
  133. TIGCC = /usr/local/tigcc
  134. }
  135. target.path = $$TIGCC/bin
  136. documentation.path = $$TIGCC/doc/ktigcc
  137. documentation.files = COPYING NEWS
  138. INSTALLS += target documentation
  139. CXXFLAGS = $$(CXXFLAGS)
  140. isEmpty(CXXFLAGS) {
  141. debug {
  142. CXXFLAGS = -Os -g
  143. } else {
  144. CXXFLAGS = -Os -s -fomit-frame-pointer
  145. }
  146. }
  147. QMAKE_CXXFLAGS_DEBUG = $$CXXFLAGS -Wno-non-virtual-dtor $$PKGCONFIG_CFLAGS
  148. QMAKE_CXXFLAGS_RELEASE = $$CXXFLAGS -Wno-non-virtual-dtor $$PKGCONFIG_CFLAGS
  149. QMAKE_LFLAGS_RELEASE = -s
  150. DISTFILES += $${documentation.files} INSTALL configure KTIGCC.prj fedora/ktigcc.spec images/copyright.txt
  151. distbz2.target = dist-bzip2
  152. distbz2.commands = zcat ktigcc.tar.gz | bzip2 --best -c > ktigcc.tar.bz2
  153. distbz2.depends = dist
  154. rpm.target = rpm
  155. rpm.commands = rpmbuild -ta ktigcc.tar.bz2
  156. rpm.depends = distbz2
  157. QMAKE_EXTRA_UNIX_TARGETS += distbz2 rpm