More concise MAJOR MINOR PATCH level detection

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Generate android-config.h in extract-headers.sh
This will be used to hold configuration options set during the android build in GLOBAL_CFLAGS etc
Use android-config.h instead of android-version.h now android-version is included in there

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Now android-config.h is used to set android GLOBAL_CFLAGS it needs to be included in code that may need it. gralloc.h is used extensively in egl and is impacted by, eg: EXYNOS4_ENHANCEMENTS define

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Camera uses gralloc which may be impacted by GLOBAL_CFLAGS

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
test_ui uses gralloc which may be impacted by GLOBAL_CFLAGS

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Tests: add android-config.h when another file in android/ dir is included

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Add android-config.h as another file in android/ dir is included

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Ensure android-config.h is present

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Simplify the Android version extraction

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Whitespace cleanup

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
Merge pull request #186 from lbt/master

Introduce android-config.h to ensure build-time defines can be set