| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #-------------------------------------------------
- #
- # Project created by QtCreator
- #
- #-------------------------------------------------
- QT -= core gui
- TARGET = sample-character
- TEMPLATE = app
- CONFIG += c++11
- CONFIG -= qt
- SOURCES += src/CharacterGame.cpp
- HEADERS += src/CharacterGame.h
- INCLUDEPATH += $$PWD/../../gameplay/src
- INCLUDEPATH += $$PWD/../../external-deps/include
- DEFINES += GP_USE_GAMEPAD
- linux: DEFINES += __linux__
- linux: QMAKE_CXXFLAGS += -lstdc++ -pthread -w
- linux: INCLUDEPATH += /usr/include/gtk-2.0
- linux: INCLUDEPATH += /usr/lib/x86_64-linux-gnu/gtk-2.0/include
- linux: INCLUDEPATH += /usr/include/atk-1.0
- linux: INCLUDEPATH += /usr/include/cairo
- linux: INCLUDEPATH += /usr/include/gdk-pixbuf-2.0
- linux: INCLUDEPATH += /usr/include/pango-1.0
- linux: INCLUDEPATH += /usr/include/gio-unix-2.0
- linux: INCLUDEPATH += /usr/include/freetype2
- linux: INCLUDEPATH += /usr/include/glib-2.0
- linux: INCLUDEPATH += /usr/lib/x86_64-linux-gnu/glib-2.0/include
- linux: INCLUDEPATH += /usr/include/pixman-1
- linux: INCLUDEPATH += /usr/include/libpng12
- linux: INCLUDEPATH += /usr/include/harfbuzz
- linux: LIBS += -L$$PWD/../../gameplay/Debug/ -lgameplay
- linux: LIBS += -L$$PWD/../../external-deps/lib/linux/x86_64/ -lgameplay-deps
- linux: LIBS += -lm -lGL -lrt -ldl -lX11 -lpthread -lgtk-x11-2.0 -lglib-2.0 -lgobject-2.0
- linux: QMAKE_POST_LINK += $$quote(rsync -rau $$PWD/../../gameplay/res/shaders ../res$$escape_expand(\n\t))
- linux: QMAKE_POST_LINK += $$quote(rsync -rau $$PWD/../../gameplay/res/ui ../res$$escape_expand(\n\t))
- linux: QMAKE_POST_LINK += $$quote(cp -rf $$PWD/../../gameplay/res/logo_powered_white.png ../res$$escape_expand(\n\t))
- linux: QMAKE_POST_LINK += $$quote(cp -rf $$PWD/game.dxt.config game.config$$escape_expand(\n\t))
- macx: QMAKE_CXXFLAGS += -x c++ -stdlib=libc++ -w -arch x86_64
- macx: QMAKE_OBJECTIVE_CFLAGS += -x objective-c++ -stdlib=libc++ -w -arch x86_64
- macx: LIBS += -L$$PWD/../../gameplay/Debug/ -lgameplay
- macx: LIBS += -L$$PWD/../../external-deps/lib/macosx/x86_64/ -lgameplay-deps
- macx: LIBS += -F/System/Library/Frameworks -framework GameKit
- macx: LIBS += -F/System/Library/Frameworks -framework IOKit
- macx: LIBS += -F/System/Library/Frameworks -framework QuartzCore
- macx: LIBS += -F/System/Library/Frameworks -framework OpenAL
- macx: LIBS += -F/System/Library/Frameworks -framework OpenGL
- macx: LIBS += -F/System/Library/Frameworks -framework Cocoa
- macx: QMAKE_ += $$quote(rsync -rau $$PWD/../../gameplay/res/shaders ../res$$escape_expand(\n\t))
- macx: QMAKE_POST_LINK += $$quote(rsync -rau $$PWD/../../gameplay/res/ui ../res$$escape_expand(\n\t))
- macx: QMAKE_POST_LINK += $$quote(cp -rf $$PWD/../../gameplay/res/logo_powered_white.png ../res$$escape_expand(\n\t))
- macx
- {
- icon.files = icon.png
- icon.path = Contents/Resources
- QMAKE_BUNDLE_DATA += icon
- gameconfig.files = game.config
- gameconfig.path = Contents/Resources
- QMAKE_BUNDLE_DATA += gameconfig
- res.files = res
- res.path = Contents/Resources
- QMAKE_BUNDLE_DATA += res
- }
- win32: DEFINES += WIN32 _WINDOWS _UNICODE UNICODE
- win32: LIBS += -L$$PWD/../../gameplay/Debug/ -lgameplay
- win32: CONFIG(debug, debug|release): LIBS += -L$$PWD/../../external-deps/lib/windows/x86_64/Debug/ -lgameplay-deps
- win32: CONFIG(release, debug|release): LIBS += -L$$PWD/../../external-deps/lib/windows/x86_64/Release/ -lgameplay-deps
- win32: LIBS += -lOpenGL32 -lGLU32 -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32
- win32: LIBS += -L"$(ProgramFiles(x86))/Microsoft DirectX SDK (June 2010)/Lib/x64" -lXInput
- win32: INCLUDEPATH += "$(ProgramFiles(x86))/Microsoft DirectX SDK (June 2010)/Include"
- win32: QMAKE_CXXFLAGS_WARN_ON -= -w34100
- win32: QMAKE_CXXFLAGS_WARN_ON -= -w34189
- win32: QMAKE_POST_LINK += $$quote(xcopy ..\..\gameplay\res\shaders res\shaders\* /s /y /d$$escape_expand(\n\t))
- win32: QMAKE_POST_LINK += $$quote(xcopy ..\..\gameplay\res\ui res\ui\* /s /y /d$$escape_expand(\n\t))
- win32: QMAKE_POST_LINK += $$quote(copy ..\..\gameplay\res\logo_powered_white.png res$$escape_expand(\n\t))
- win32: QMAKE_POST_LINK += $$quote(copy /Y game.dxt.config game.config$$escape_expand(\n\t))
|