You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UGameEngine.pro 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2016-08-31T16:32:08
  4. #
  5. #-------------------------------------------------
  6. QT += gui core
  7. TARGET = UGameEngine
  8. TEMPLATE = lib
  9. CONFIG += c++11
  10. DEFINES += UGAMEENGINE_LIBRARY
  11. SOURCES += engine/ugameengine.cpp \
  12. engine/abstractrenderdevice.cpp \
  13. entities/ugeentity.cpp \
  14. utils/colorvector3d.cpp \
  15. entities/ugeentitycube.cpp \
  16. entities/ugeentityaxes.cpp \
  17. utils/wavefrontobj.cpp \
  18. entities/ugeentitywavefrontobj.cpp \
  19. utils/texturevector3d.cpp \
  20. utils/vector2d.cpp \
  21. utils/vector3d.cpp \
  22. utils/matrix3x3.cpp \
  23. utils/tools.cpp
  24. HEADERS += engine/ugameengine.h\
  25. engine/abstractrenderdevice.h \
  26. entities/ugeentity.h \
  27. utils/vector3d.h \
  28. utils/colorvector3d.h \
  29. entities/ugeentitycube.h \
  30. entities/ugeentityaxes.h \
  31. utils/wavefrontobj.h \
  32. entities/ugeentitywavefrontobj.h \
  33. utils/texturevector3d.h \
  34. utils/vectorxd.h \
  35. utils/vectorxd.hxx \
  36. utils/vector2d.h \
  37. utils/matrixmxn.h \
  38. utils/matrixmxn.hxx \
  39. utils/matrix3x3.h \
  40. utils/tools.h \
  41. utils/tools.hxx
  42. # FLEX && BISON
  43. LIBS += -lfl -ly
  44. FLEXSOURCES = utils/lexer-wavefront-obj.l \
  45. utils/lexer-wavefront-mtl.l
  46. BISONSOURCES = utils/parser-wavefront-obj.y \
  47. utils/parser-wavefront-mtl.y
  48. OTHER_FILES += \
  49. $$FLEXSOURCES \
  50. $$BISONSOURCES
  51. flexsource.input = FLEXSOURCES
  52. flexsource.output = ${QMAKE_FILE_BASE}.cpp
  53. flexsource.commands = flex --header-file=${QMAKE_FILE_BASE}.h -o ${QMAKE_FILE_BASE}.cpp ${QMAKE_FILE_IN}
  54. flexsource.variable_out = SOURCES
  55. flexsource.name = Flex Sources ${QMAKE_FILE_IN}
  56. flexsource.CONFIG += target_predeps
  57. QMAKE_EXTRA_COMPILERS += flexsource
  58. flexheader.input = FLEXSOURCES
  59. flexheader.output = ${QMAKE_FILE_BASE}.h
  60. flexheader.commands = @true
  61. flexheader.variable_out = HEADERS
  62. flexheader.name = Flex Headers ${QMAKE_FILE_IN}
  63. flexheader.CONFIG += target_predeps no_link
  64. QMAKE_EXTRA_COMPILERS += flexheader
  65. bisonsource.input = BISONSOURCES
  66. bisonsource.output = ${QMAKE_FILE_BASE}.cpp
  67. bisonsource.commands = bison -d --defines=${QMAKE_FILE_BASE}.h -o ${QMAKE_FILE_BASE}.cpp ${QMAKE_FILE_IN}
  68. bisonsource.variable_out = SOURCES
  69. bisonsource.name = Bison Sources ${QMAKE_FILE_IN}
  70. bisonsource.CONFIG += target_predeps
  71. QMAKE_EXTRA_COMPILERS += bisonsource
  72. bisonheader.input = BISONSOURCES
  73. bisonheader.output = ${QMAKE_FILE_BASE}.h
  74. bisonheader.commands = @true
  75. bisonheader.variable_out = HEADERS
  76. bisonheader.name = Bison Headers ${QMAKE_FILE_IN}
  77. bisonheader.CONFIG += target_predeps no_link
  78. QMAKE_EXTRA_COMPILERS += bisonheader
  79. unix {
  80. target.path = /usr/lib
  81. INSTALLS += target
  82. }