QXlsx.pri 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. ########################################
  2. # QXlsx.pri
  3. ########################################
  4. QT += core
  5. QT += gui-private
  6. # TODO: Define your C++ version. c++14, c++17, etc.
  7. CONFIG += c++11
  8. # The following define makes your compiler emit warnings if you use
  9. # any feature of Qt which has been marked as deprecated (the exact warnings
  10. # depend on your compiler). Please consult the documentation of the
  11. # deprecated API in order to know how to port your code away from it.
  12. DEFINES += QT_DEPRECATED_WARNINGS
  13. # You can also make your code fail to compile if you use deprecated APIs.
  14. # In order to do so, uncomment the following line.
  15. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  16. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  17. isEmpty(QXLSX_PARENTPATH) {
  18. message( 'QXLSX_PARENTPATH is empty. use default value.' )
  19. QXLSX_PARENTPATH = $$PWD/
  20. } else {
  21. message( 'QXLSX_PARENTPATH is not empty.' )
  22. message( $${QXLSX_PARENTPATH} )
  23. }
  24. message($$QXLSX_PARENTPATH)
  25. isEmpty(QXLSX_HEADERPATH) {
  26. message( 'QXLSX_HEADERPATH is empty. use default value.' )
  27. QXLSX_HEADERPATH = $$PWD/header/
  28. } else {
  29. message( 'QXLSX_HEADERPATH is not empty.' )
  30. message( $${QXLSX_HEADERPATH} )
  31. }
  32. isEmpty(QXLSX_SOURCEPATH) {
  33. message( 'QXLSX_SOURCEPATH is empty. use default value.' )
  34. QXLSX_SOURCEPATH = $$PWD/source/
  35. } else {
  36. message( 'QXLSX_SOURCEPATH is not empty.' )
  37. message( $${QXLSX_SOURCEPATH} )
  38. }
  39. INCLUDEPATH += $$PWD
  40. INCLUDEPATH += $${QXLSX_PARENTPATH}
  41. INCLUDEPATH += $${QXLSX_HEADERPATH}
  42. ########################################
  43. # source code
  44. HEADERS += \
  45. $${QXLSX_HEADERPATH}xlsxabstractooxmlfile.h \
  46. $${QXLSX_HEADERPATH}xlsxabstractooxmlfile_p.h \
  47. $${QXLSX_HEADERPATH}xlsxabstractsheet.h \
  48. $${QXLSX_HEADERPATH}xlsxabstractsheet_p.h \
  49. $${QXLSX_HEADERPATH}xlsxcell.h \
  50. $${QXLSX_HEADERPATH}xlsxcellformula.h \
  51. $${QXLSX_HEADERPATH}xlsxcellformula_p.h \
  52. $${QXLSX_HEADERPATH}xlsxcelllocation.h \
  53. $${QXLSX_HEADERPATH}xlsxcellrange.h \
  54. $${QXLSX_HEADERPATH}xlsxcellreference.h \
  55. $${QXLSX_HEADERPATH}xlsxcell_p.h \
  56. $${QXLSX_HEADERPATH}xlsxchart.h \
  57. $${QXLSX_HEADERPATH}xlsxchartsheet.h \
  58. $${QXLSX_HEADERPATH}xlsxchartsheet_p.h \
  59. $${QXLSX_HEADERPATH}xlsxchart_p.h \
  60. $${QXLSX_HEADERPATH}xlsxcolor_p.h \
  61. $${QXLSX_HEADERPATH}xlsxconditionalformatting.h \
  62. $${QXLSX_HEADERPATH}xlsxconditionalformatting_p.h \
  63. $${QXLSX_HEADERPATH}xlsxcontenttypes_p.h \
  64. $${QXLSX_HEADERPATH}xlsxdatavalidation.h \
  65. $${QXLSX_HEADERPATH}xlsxdatavalidation_p.h \
  66. $${QXLSX_HEADERPATH}xlsxdatetype.h \
  67. $${QXLSX_HEADERPATH}xlsxdocpropsapp_p.h \
  68. $${QXLSX_HEADERPATH}xlsxdocpropscore_p.h \
  69. $${QXLSX_HEADERPATH}xlsxdocument.h \
  70. $${QXLSX_HEADERPATH}xlsxdocument_p.h \
  71. $${QXLSX_HEADERPATH}xlsxdrawinganchor_p.h \
  72. $${QXLSX_HEADERPATH}xlsxdrawing_p.h \
  73. $${QXLSX_HEADERPATH}xlsxformat.h \
  74. $${QXLSX_HEADERPATH}xlsxformat_p.h \
  75. $${QXLSX_HEADERPATH}xlsxglobal.h \
  76. $${QXLSX_HEADERPATH}xlsxmediafile_p.h \
  77. $${QXLSX_HEADERPATH}xlsxnumformatparser_p.h \
  78. $${QXLSX_HEADERPATH}xlsxrelationships_p.h \
  79. $${QXLSX_HEADERPATH}xlsxrichstring.h \
  80. $${QXLSX_HEADERPATH}xlsxrichstring_p.h \
  81. $${QXLSX_HEADERPATH}xlsxsharedstrings_p.h \
  82. $${QXLSX_HEADERPATH}xlsxsimpleooxmlfile_p.h \
  83. $${QXLSX_HEADERPATH}xlsxstyles_p.h \
  84. $${QXLSX_HEADERPATH}xlsxtheme_p.h \
  85. $${QXLSX_HEADERPATH}xlsxutility_p.h \
  86. $${QXLSX_HEADERPATH}xlsxworkbook.h \
  87. $${QXLSX_HEADERPATH}xlsxworkbook_p.h \
  88. $${QXLSX_HEADERPATH}xlsxworksheet.h \
  89. $${QXLSX_HEADERPATH}xlsxworksheet_p.h \
  90. $${QXLSX_HEADERPATH}xlsxzipreader_p.h \
  91. $${QXLSX_HEADERPATH}xlsxzipwriter_p.h
  92. SOURCES += \
  93. $${QXLSX_SOURCEPATH}xlsxabstractooxmlfile.cpp \
  94. $${QXLSX_SOURCEPATH}xlsxabstractsheet.cpp \
  95. $${QXLSX_SOURCEPATH}xlsxcell.cpp \
  96. $${QXLSX_SOURCEPATH}xlsxcellformula.cpp \
  97. $${QXLSX_SOURCEPATH}xlsxcelllocation.cpp \
  98. $${QXLSX_SOURCEPATH}xlsxcellrange.cpp \
  99. $${QXLSX_SOURCEPATH}xlsxcellreference.cpp \
  100. $${QXLSX_SOURCEPATH}xlsxchart.cpp \
  101. $${QXLSX_SOURCEPATH}xlsxchartsheet.cpp \
  102. $${QXLSX_SOURCEPATH}xlsxcolor.cpp \
  103. $${QXLSX_SOURCEPATH}xlsxconditionalformatting.cpp \
  104. $${QXLSX_SOURCEPATH}xlsxcontenttypes.cpp \
  105. $${QXLSX_SOURCEPATH}xlsxdatavalidation.cpp \
  106. $${QXLSX_SOURCEPATH}xlsxdatetype.cpp \
  107. $${QXLSX_SOURCEPATH}xlsxdocpropsapp.cpp \
  108. $${QXLSX_SOURCEPATH}xlsxdocpropscore.cpp \
  109. $${QXLSX_SOURCEPATH}xlsxdocument.cpp \
  110. $${QXLSX_SOURCEPATH}xlsxdrawing.cpp \
  111. $${QXLSX_SOURCEPATH}xlsxdrawinganchor.cpp \
  112. $${QXLSX_SOURCEPATH}xlsxformat.cpp \
  113. $${QXLSX_SOURCEPATH}xlsxmediafile.cpp \
  114. $${QXLSX_SOURCEPATH}xlsxnumformatparser.cpp \
  115. $${QXLSX_SOURCEPATH}xlsxrelationships.cpp \
  116. $${QXLSX_SOURCEPATH}xlsxrichstring.cpp \
  117. $${QXLSX_SOURCEPATH}xlsxsharedstrings.cpp \
  118. $${QXLSX_SOURCEPATH}xlsxsimpleooxmlfile.cpp \
  119. $${QXLSX_SOURCEPATH}xlsxstyles.cpp \
  120. $${QXLSX_SOURCEPATH}xlsxtheme.cpp \
  121. $${QXLSX_SOURCEPATH}xlsxutility.cpp \
  122. $${QXLSX_SOURCEPATH}xlsxworkbook.cpp \
  123. $${QXLSX_SOURCEPATH}xlsxworksheet.cpp \
  124. $${QXLSX_SOURCEPATH}xlsxzipreader.cpp \
  125. $${QXLSX_SOURCEPATH}xlsxzipwriter.cpp
  126. ########################################
  127. # custom setting for compiler & system
  128. win32-g++ {
  129. message("compiling for windows g++. mingw or msys or cygwin.")
  130. INCLUDEPATH += $${QXLSX_HEADERPATH}win32-gcc
  131. CONFIG(debug, debug|release) {
  132. } else {
  133. }
  134. }
  135. win32-msvc2013 {
  136. message("Compiling for Visual Studio 2013")
  137. INCLUDEPATH += $${QXLSX_HEADERPATH}msvc2013
  138. CONFIG(debug, debug|release) {
  139. } else {
  140. }
  141. }
  142. win32-msvc2015 {
  143. message("Compiling for Visual Studio 2015")
  144. INCLUDEPATH += $${QXLSX_HEADERPATH}msvc2015
  145. CONFIG(debug, debug|release) {
  146. } else {
  147. }
  148. }
  149. win32-msvc2017 {
  150. message("Compiling for Visual Studio 2017")
  151. INCLUDEPATH += $${QXLSX_HEADERPATH}msvc2017
  152. CONFIG(debug, debug|release) {
  153. } else {
  154. }
  155. }
  156. win32-msvc2019 {
  157. message("Compiling for Visual Studio 2019")
  158. INCLUDEPATH += $${QXLSX_HEADERPATH}msvc2019
  159. CONFIG(debug, debug|release) {
  160. } else {
  161. }
  162. }
  163. unix {
  164. !contains(QT_ARCH, x86_64){
  165. LIB=lib32
  166. message("compiling for 32bit linux/unix system")
  167. } else {
  168. LIB=lib64
  169. message("compiling for 64bit linux/unix system")
  170. }
  171. INCLUDEPATH += $${QXLSX_HEADERPATH}unix-gcc
  172. # target.path = /usr/lib
  173. # INSTALLS += target
  174. CONFIG(debug, debug|release) {
  175. } else {
  176. }
  177. }
  178. mac {
  179. message("compiling for mac os")
  180. INCLUDEPATH += $${QXLSX_HEADERPATH}mac
  181. CONFIG(debug, debug|release) {
  182. } else {
  183. }
  184. }