mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 21:32:56 +00:00
intel-gpu-tools: Build tests needing cairo if ANDROID_HAS_CAIRO=1
Until now the tests that depended on libcairo were simply skipped in the android build. Now that I have a cairo port working, build these cairo dependent tests if ANDROID_HAS_CAIRO is set to 1 in the environment. For information on building cairo for IGT on Android see the wiki at: https://securewiki.ith.intel.com/display/GFXCore/IGT+Test+Suite+on+Android Signed-off-by: Tim Gore <tim.gore@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
+2
-1
@@ -28,7 +28,8 @@
|
||||
#ifndef __IGT_FB_H__
|
||||
#define __IGT_FB_H__
|
||||
|
||||
#ifndef ANDROID
|
||||
/* cairo is assumed available on linux. On Android we check for ANDROID_HAS_CAIRO */
|
||||
#if (!defined(ANDROID)) || (defined(ANDROID) && ANDROID_HAS_CAIRO)
|
||||
#include <cairo.h>
|
||||
#else
|
||||
typedef struct _cairo_surface cairo_surface_t;
|
||||
|
||||
Reference in New Issue
Block a user