Almond.pro 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2019-05-03T18:16:23
  4. #
  5. #-------------------------------------------------
  6. QT += core gui opengl xml
  7. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  8. TARGET = Almond
  9. TEMPLATE = app
  10. RC_ICONS = almond.ico
  11. # The following define makes your compiler emit warnings if you use
  12. # any feature of Qt which has been marked as deprecated (the exact warnings
  13. # depend on your compiler). Please consult the documentation of the
  14. # deprecated API in order to know how to port your code away from it.
  15. DEFINES += QT_DEPRECATED_WARNINGS
  16. # You can also make your code fail to compile if you use deprecated APIs.
  17. # In order to do so, uncomment the following line.
  18. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  19. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  20. CONFIG += c++17
  21. @CONFIG += debug_and_release@
  22. QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.12
  23. SOURCES += \
  24. src/About.cpp \
  25. src/Almond.cpp \
  26. src/AlmondMenuWidget.cpp \
  27. src/BackgroundTask.cpp \
  28. src/Color.cpp \
  29. src/EscapeTimeVisualWidget.cpp \
  30. src/ExportImageMenu.cpp \
  31. src/ExportVideoMenu.cpp \
  32. src/FractalWidget.cpp \
  33. src/FractalWidgetUtils.cpp \
  34. src/FractalZoomWidget.cpp \
  35. src/GradientMenu.cpp \
  36. src/GradientWidget.cpp \
  37. src/choosegenerators.cpp \
  38. src/customgenerator.cpp \
  39. src/GridFlowLayout.cpp \
  40. src/main.cpp
  41. HEADERS += \
  42. include/About.h \
  43. include/Almond.h \
  44. include/AlmondMenuWidget.h \
  45. include/BackgroundTask.h \
  46. include/Color.h \
  47. include/EscapeTimeVisualWidget.h \
  48. include/ExportImageMenu.h \
  49. include/ExportVideoMenu.h \
  50. include/FractalWidget.h \
  51. include/FractalWidgetUtils.h \
  52. include/FractalZoomWidget.h \
  53. include/GradientMenu.h \
  54. include/GradientWidget.h \
  55. include/choosegenerators.h \
  56. include/customgenerator.h \
  57. include/GridFlowLayout.h
  58. FORMS += \
  59. ui/About.ui \
  60. ui/Almond.ui \
  61. ui/ExportImageMenu.ui \
  62. ui/ExportVideoMenu.ui \
  63. ui/GradientMenu.ui \
  64. ui/choosegenerators.ui \
  65. ui/customgenerator.ui
  66. INCLUDEPATH += include
  67. # Default rules for deployment.
  68. qnx: target.path = /tmp/$${TARGET}/bin
  69. else: unix:!android: target.path = /opt/$${TARGET}/bin
  70. !isEmpty(target.path): INSTALLS += target
  71. win32:QMAKE_CXXFLAGS += -openmp
  72. else:unix:QMAKE_CXXFLAGS += -fopenmp
  73. win32:QMAKE_LFLAGS += -openmp
  74. else:unix:QMAKE_LFLAGS+= -fopenmp
  75. LIBS += -fopenmp
  76. unix:LIBS += -lm -latomic
  77. win32:CONFIG(release, debug|profile|release): LIBS += -L$$PWD/../libs/ffmpeg-20200216-8578433-win64-dev/lib/ -lavcodec
  78. else:win32:CONFIG(debug, debug|profile|release): LIBS += -L$$PWD/../libs/ffmpeg-20200216-8578433-win64-dev/lib/ -lavcodec
  79. else:unix: LIBS += -lavcodec
  80. win32:FFMPEGPATH = $$PWD/../libs/ffmpeg-20200216-8578433-win64-dev/lib/
  81. win32:INCLUDEPATH += $$PWD/../libs/ffmpeg-20200216-8578433-win64-dev/include
  82. win32:DEPENDPATH += $$PWD/../libs/ffmpeg-20200216-8578433-win64-dev/include
  83. win32:INCLUDEPATH += ../libs/boost_1_72_0
  84. DEFINES += WITH_BOOST=1
  85. win32:LIBS += -L$$PWD/../libs/libjpeg-turbo-2.0.4/libjpeg-turbo-2.0.4/build/Release
  86. win32:INCLUDEPATH += $$PWD/../libs/libjpeg-turbo-2.0.4/libjpeg-turbo-2.0.4
  87. #win32:CONFIG(release, debug|release): LIBS += -L$$PWD/'../../../../../Program Files (x86)/AMD APP SDK/3.0/lib/x86/' -lOpenCL
  88. #else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/'../../../../../Program Files (x86)/AMD APP SDK/3.0/lib/x86/' -lOpenCL
  89. #else:unix: LIBS += -lOpenCL
  90. win32:INCLUDEPATH += $$PWD/'../../../../../Program Files (x86)/AMD APP SDK/3.0/include'
  91. win32:DEPENDPATH += $$PWD/'../../../../../Program Files (x86)/AMD APP SDK/3.0/include'
  92. win32:CONFIG(release, debug|release): LIBS += -L$FFMPEGPATH -lavformat
  93. else:win32:CONFIG(debug, debug|release): LIBS += -L$FFMPEGPATH -lavformat
  94. else:unix: LIBS += -L$FFMPEGPATH -lavformat
  95. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  96. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  97. unix|win32: LIBS += -L$FFMPEGPATH -lavdevice
  98. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  99. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  100. unix|win32: LIBS += -L$FFMPEGPATH -lavfilter
  101. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  102. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  103. unix|win32: LIBS += -L$FFMPEGPATH -lavutil
  104. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  105. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  106. unix|win32: LIBS += -L$FFMPEGPATH -lswscale
  107. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  108. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  109. RESOURCES += \
  110. resources/Almond.qrc \
  111. resources/splash.qrc
  112. win32:LIBS += -llibpng16_static -lzlibstatic -ljpeg
  113. unix|win32: LIBS += -L$$PWD/libmandel/ -L$$PWD/libalmond/ -lmandel -lqd -lasmjit -lalmond
  114. unix: LIBS += -lrt -lpng -ljpeg -lavcodec -lavdevice -lavformat -lavutil -lswscale -lavfilter
  115. INCLUDEPATH += $$PWD/libmandel/include $$PWD/libmandel/qd-2.3.22/include $$PWD/libalmond/include
  116. DEPENDPATH += $$PWD/libmandel/include $$PWD/libmandel/qd-2.3.22/include $$PWD/libalmond/include
  117. INCLUDEPATH += $$PWD/libmandel/include $$PWD/libmandel/asmjit/src $$PWD/libalmond/include
  118. DEPENDPATH += $$PWD/libmandel/include $$PWD/libmandel/asmjit/stc $$PWD/libalmond/include
  119. win32:!win32-g++: PRE_TARGETDEPS += $$PWD/libmandel/asmjit.lib $$PWD/libmandel/mandel.lib $$PWD/libmandel/qd.lib $$PWD/libalmond/almond.lib
  120. else:unix|win32-g++: PRE_TARGETDEPS += $$PWD/libmandel/libmandel.a $$PWD/libmandel/libqd.a $$PWD/libmandel/libasmjit.a $$PWD/libalmond/libalmond.a
  121. win32:CONFIG(release, debug|release): LIBS += -L$$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86_64/' -lopencl
  122. else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86_64/' -lopencl
  123. else:unix: LIBS += -lOpenCL
  124. win32:INCLUDEPATH += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/include'
  125. win32:DEPENDPATH += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/include'
  126. macx:INCLUDEPATH += /usr/local/Cellar/ffmpeg/4.2.2_2/include/
  127. macx:INCLUDEPATH += /usr/local/Cellar/boost/1.72.0_1/include/
  128. win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86_64/libopencl.a'
  129. else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86_64/libopencl.a'
  130. else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86_64/opencl.lib'
  131. else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86_64/opencl.lib'