Almond.pro 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. SOURCES += \
  23. Almond.cpp \
  24. BackgroundTask.cpp \
  25. Bitmap.cpp \
  26. Color.cpp \
  27. CubicSpline.cpp \
  28. Gradient.cpp \
  29. GradientWidget.cpp \
  30. MandelVideoGenerator.cpp \
  31. MandelWidget.cpp \
  32. VideoStream.cpp \
  33. choosegenerators.cpp \
  34. customgenerator.cpp \
  35. exportdialogs.cpp \
  36. gradientchoosedialog.cpp \
  37. main.cpp
  38. HEADERS += \
  39. Almond.h \
  40. BackgroundTask.h \
  41. Bitmap.h \
  42. Color.h \
  43. CubicSpline.h \
  44. Gradient.h \
  45. GradientWidget.h \
  46. MandelVideoGenerator.h \
  47. MandelWidget.h \
  48. VideoStream.h \
  49. choosegenerators.h \
  50. customgenerator.h \
  51. exportdialogs.h \
  52. gradientchoosedialog.h
  53. FORMS += \
  54. Almond.ui \
  55. choosegenerators.ui \
  56. customgenerator.ui \
  57. exportimagedialog.ui \
  58. exportvideodialog.ui \
  59. gradientchooser.ui
  60. # Default rules for deployment.
  61. qnx: target.path = /tmp/$${TARGET}/bin
  62. else: unix:!android: target.path = /opt/$${TARGET}/bin
  63. !isEmpty(target.path): INSTALLS += target
  64. win32:LIBS += -lopengl32
  65. else:LIBS += -lOpenGL
  66. win32:QMAKE_CXXFLAGS += -openmp
  67. else:unix:QMAKE_CXXFLAGS += -fopenmp
  68. win32:QMAKE_LFLAGS += -openmp
  69. else:unix:QMAKE_LFLAGS+= -fopenmp
  70. LIBS += -fopenmp
  71. unix:LIBS += -lm -latomic
  72. win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../libs/ffmpeg-20200216-8578433-win64-dev/lib/ -lavcodec
  73. else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../libs/ffmpeg-20200216-8578433-win64-dev/lib/ -lavcodec
  74. else:unix: LIBS += -L$$PWD/../libs/ffmpeg-4.1.1-win32-dev/lib/ -lavcodec
  75. win32:FFMPEGPATH = $$PWD/../libs/ffmpeg-20200216-8578433-win64-dev/lib/
  76. win32:INCLUDEPATH += $$PWD/../libs/ffmpeg-20200216-8578433-win64-dev/include
  77. win32:DEPENDPATH += $$PWD/../libs/ffmpeg-20200216-8578433-win64-dev/include
  78. win32:INCLUDEPATH += ../libs/boost_1_72_0
  79. DEFINES += WITH_BOOST=1
  80. #win32:CONFIG(release, debug|release): LIBS += -L$$PWD/'../../../../../Program Files (x86)/AMD APP SDK/3.0/lib/x86/' -lOpenCL
  81. #else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/'../../../../../Program Files (x86)/AMD APP SDK/3.0/lib/x86/' -lOpenCL
  82. #else:unix: LIBS += -lOpenCL
  83. win32:INCLUDEPATH += $$PWD/'../../../../../Program Files (x86)/AMD APP SDK/3.0/include'
  84. win32:DEPENDPATH += $$PWD/'../../../../../Program Files (x86)/AMD APP SDK/3.0/include'
  85. win32:CONFIG(release, debug|release): LIBS += -L$FFMPEGPATH -lavformat
  86. else:win32:CONFIG(debug, debug|release): LIBS += -L$FFMPEGPATH -lavformat
  87. else:unix: LIBS += -L$FFMPEGPATH -lavformat
  88. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  89. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  90. unix|win32: LIBS += -L$FFMPEGPATH -lavdevice
  91. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  92. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  93. unix|win32: LIBS += -L$FFMPEGPATH -lavfilter
  94. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  95. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  96. unix|win32: LIBS += -L$FFMPEGPATH -lavutil
  97. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  98. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  99. unix|win32: LIBS += -L$FFMPEGPATH -lswscale
  100. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  101. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  102. RESOURCES += Almond.qrc
  103. unix|win32: LIBS += -L$$PWD/libmandel/ -lmandel -lqd -lasmjit
  104. unix: LIBS += -lrt
  105. INCLUDEPATH += $$PWD/libmandel/include $$PWD/libmandel/qd-2.3.22/include
  106. DEPENDPATH += $$PWD/libmandel/include $$PWD/libmandel/qd-2.3.22/include
  107. INCLUDEPATH += $$PWD/libmandel/include $$PWD/libmandel/asmjit/src
  108. DEPENDPATH += $$PWD/libmandel/include $$PWD/libmandel/asmjit/stc
  109. win32:!win32-g++: PRE_TARGETDEPS += $$PWD/libmandel/asmjit.lib $$PWD/libmandel/mandel.lib $$PWD/libmandel/qd.lib
  110. else:unix|win32-g++: PRE_TARGETDEPS += $$PWD/libmandel/libmandel.a $$PWD/libmandel/libqd.a $$PWD/libmandel/libasmjit.a
  111. win32:CONFIG(release, debug|release): LIBS += -L$$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86_64/' -lopencl
  112. else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86_64/' -lopencl
  113. else:unix: LIBS += -lOpenCL
  114. win32:INCLUDEPATH += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/include'
  115. win32:DEPENDPATH += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/include'
  116. win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86_64/libopencl.a'
  117. else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86_64/libopencl.a'
  118. else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86_64/opencl.lib'
  119. else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86_64/opencl.lib'