sample-character.pro 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator
  4. #
  5. #-------------------------------------------------
  6. QT -= core gui
  7. TARGET = sample-character
  8. TEMPLATE = app
  9. CONFIG += c++11
  10. CONFIG -= qt
  11. SOURCES += src/CharacterGame.cpp
  12. HEADERS += src/CharacterGame.h
  13. INCLUDEPATH += $$PWD/../../gameplay/src
  14. INCLUDEPATH += $$PWD/../../external-deps/include
  15. DEFINES += GP_USE_GAMEPAD
  16. linux: DEFINES += __linux__
  17. linux: QMAKE_CXXFLAGS += -lstdc++ -pthread -w
  18. linux: INCLUDEPATH += /usr/include/gtk-2.0
  19. linux: INCLUDEPATH += /usr/lib/x86_64-linux-gnu/gtk-2.0/include
  20. linux: INCLUDEPATH += /usr/include/atk-1.0
  21. linux: INCLUDEPATH += /usr/include/cairo
  22. linux: INCLUDEPATH += /usr/include/gdk-pixbuf-2.0
  23. linux: INCLUDEPATH += /usr/include/pango-1.0
  24. linux: INCLUDEPATH += /usr/include/gio-unix-2.0
  25. linux: INCLUDEPATH += /usr/include/freetype2
  26. linux: INCLUDEPATH += /usr/include/glib-2.0
  27. linux: INCLUDEPATH += /usr/lib/x86_64-linux-gnu/glib-2.0/include
  28. linux: INCLUDEPATH += /usr/include/pixman-1
  29. linux: INCLUDEPATH += /usr/include/libpng12
  30. linux: INCLUDEPATH += /usr/include/harfbuzz
  31. linux: LIBS += -L$$PWD/../../gameplay/Debug/ -lgameplay
  32. linux: LIBS += -L$$PWD/../../external-deps/lib/linux/x86_64/ -lgameplay-deps
  33. linux: LIBS += -lm -lGL -lrt -ldl -lX11 -lpthread -lgtk-x11-2.0 -lglib-2.0 -lgobject-2.0
  34. linux: QMAKE_POST_LINK += $$quote(rsync -rau $$PWD/../../gameplay/res/shaders ../res$$escape_expand(\n\t))
  35. linux: QMAKE_POST_LINK += $$quote(rsync -rau $$PWD/../../gameplay/res/ui ../res$$escape_expand(\n\t))
  36. linux: QMAKE_POST_LINK += $$quote(cp -rf $$PWD/../../gameplay/res/logo_powered_white.png ../res$$escape_expand(\n\t))
  37. linux: QMAKE_POST_LINK += $$quote(cp -rf $$PWD/game.dxt.config game.config$$escape_expand(\n\t))
  38. macx: QMAKE_CXXFLAGS += -x c++ -stdlib=libc++ -w -arch x86_64
  39. macx: QMAKE_OBJECTIVE_CFLAGS += -x objective-c++ -stdlib=libc++ -w -arch x86_64
  40. macx: LIBS += -L$$PWD/../../gameplay/Debug/ -lgameplay
  41. macx: LIBS += -L$$PWD/../../external-deps/lib/macosx/x86_64/ -lgameplay-deps
  42. macx: LIBS += -F/System/Library/Frameworks -framework GameKit
  43. macx: LIBS += -F/System/Library/Frameworks -framework IOKit
  44. macx: LIBS += -F/System/Library/Frameworks -framework QuartzCore
  45. macx: LIBS += -F/System/Library/Frameworks -framework OpenAL
  46. macx: LIBS += -F/System/Library/Frameworks -framework OpenGL
  47. macx: LIBS += -F/System/Library/Frameworks -framework Cocoa
  48. macx: QMAKE_ += $$quote(rsync -rau $$PWD/../../gameplay/res/shaders ../res$$escape_expand(\n\t))
  49. macx: QMAKE_POST_LINK += $$quote(rsync -rau $$PWD/../../gameplay/res/ui ../res$$escape_expand(\n\t))
  50. macx: QMAKE_POST_LINK += $$quote(cp -rf $$PWD/../../gameplay/res/logo_powered_white.png ../res$$escape_expand(\n\t))
  51. macx
  52. {
  53. icon.files = icon.png
  54. icon.path = Contents/Resources
  55. QMAKE_BUNDLE_DATA += icon
  56. gameconfig.files = game.config
  57. gameconfig.path = Contents/Resources
  58. QMAKE_BUNDLE_DATA += gameconfig
  59. res.files = res
  60. res.path = Contents/Resources
  61. QMAKE_BUNDLE_DATA += res
  62. }
  63. win32: DEFINES += WIN32 _WINDOWS _UNICODE UNICODE
  64. win32: CONFIG(debug, debug|release): LIBS += -L$$PWD/../../gameplay/Debug/debug/ -lgameplay
  65. win32: CONFIG(release, debug|release): LIBS += -L$$PWD/../../gameplay/Release/release/ -lgameplay
  66. win32: CONFIG(debug, debug|release): LIBS += -L$$PWD/../../external-deps/lib/windows/x86_64/Debug/ -lgameplay-deps
  67. win32: CONFIG(release, debug|release): LIBS += -L$$PWD/../../external-deps/lib/windows/x86_64/Release/ -lgameplay-deps
  68. win32: LIBS += -lOpenGL32 -lGLU32 -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32
  69. win32: LIBS += -L$$(DXSDK_DIR)Lib\x64 -lXInput
  70. win32: INCLUDEPATH += $$(DXSDK_DIR)Include
  71. win32: QMAKE_CXXFLAGS_WARN_ON -= -w34100
  72. win32: QMAKE_CXXFLAGS_WARN_ON -= -w34189
  73. win32: QMAKE_POST_LINK += $$quote(xcopy ..\..\..\gameplay\res\shaders res\shaders\* /s /y /d$$escape_expand(\n\t))
  74. win32: QMAKE_POST_LINK += $$quote(xcopy ..\..\..\gameplay\res\ui res\ui\* /s /y /d$$escape_expand(\n\t))
  75. win32: QMAKE_POST_LINK += $$quote(copy ..\..\..\gameplay\res\logo_powered_white.png res$$escape_expand(\n\t))
  76. win32: QMAKE_POST_LINK += $$quote(copy /Y ..\game.dxt.config game.config$$escape_expand(\n\t))