sample-racer.pro 4.2 KB

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