ktigcc.pro 4.7 KB

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