diff options
author | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-02-01 12:39:03 +0100 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-02-04 09:21:49 +0100 |
commit | 933992bb6203677fa8459b120bb78836c6e4f9ee (patch) | |
tree | c28ff637c9ab7a47ffc6be787c9abd26af2c972d /customcontext/customcontext.pro | |
parent | b2e1111f736e23e802ce9d26cb5e1ecccc306664 (diff) |
Restructured the customcontext and made it slightly more pluggable.
Change-Id: I4f69b491bd34fbf866f3174437a1b12387d47677
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'customcontext/customcontext.pro')
-rw-r--r-- | customcontext/customcontext.pro | 68 |
1 files changed, 61 insertions, 7 deletions
diff --git a/customcontext/customcontext.pro b/customcontext/customcontext.pro index f4269ec..2ce0ef3 100644 --- a/customcontext/customcontext.pro +++ b/customcontext/customcontext.pro @@ -5,18 +5,73 @@ CONFIG += plugin QT += gui-private core-private quick-private qml-private v8-private + + +verbose:{ + message("verbose: enabled") + DEFINES+=CUSTOMCONTEXT_DEBUG +} else { + message("verbose: disabled") +} + + +dither:{ + message("dither: enabled") + DEFINES += CUSTOMCONTEXT_DITHER + SOURCES += renderhooks/ordereddither2x2.cpp + HEADERS += renderhooks/ordereddither2x2.h +} else { + message("dither: disabled") +} + + + +atlastexture:{ + message("atlastexture: enabled") + DEFINES += CUSTOMCONTEXT_ATLASTEXTURE + SOURCES += texture/atlastexture.cpp + HEADERS += texture/atlastexture.h +} else { + message("atlastexture: disabled") +} + + + +animationdriver:{ + message("animationdriver: enabled") + DEFINES += CUSTOMCONTEXT_ANIMATIONDRIVER + SOURCES += animation/animationdriver.cpp + HEADERS += animation/animationdriver.h +} else { + message("animationdriver: disabled") +} + + + +overlaprenderer:{ + message("overlaprenderer: enabled") + DEFINES += CUSTOMCONTEXT_OVERLAPRENDERER + SOURCES += renderer/overlaprenderer.cpp + HEADERS += renderer/overlaprenderer.h +} else { + message("overlaprenderer: disabled") +} + + + +message(""); +message("Enable the above features by adding them to the qmake config, for instance:") +message(" > qmake \"CONFIG+=verbose atlastexture dither\""); +message(""); + + + SOURCES += \ - animationdriver.cpp \ - atlastexture.cpp \ context.cpp \ - overlaprenderer.cpp \ pluginmain.cpp HEADERS += \ - animationdriver.h \ - atlastexture.h \ context.h \ - overlaprenderer.h \ pluginmain.h OTHER_FILES += customcontext.json @@ -36,4 +91,3 @@ arm_build { DEFINES += DESKTOP_BUILD } -verbose:DEFINES+=CUSTOMCONTEXT_DEBUG |