diff options
author | Juha-Pekka Heikkila <juha-pekka.heikkila@linux.intel.com> | 2013-09-02 16:12:00 +0300 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2013-11-13 14:52:06 +0000 |
commit | cc27e3f2c9bc5644bb8eddd13f11f3d371193910 (patch) | |
tree | 51bcaf38b1ed0b0c11b5d76c1e95dbf36b864961 /cmake | |
parent | ff01f1f5711b8cc6ba6730ab944b7ded446be0e5 (diff) |
Android: Port eglretracer for Android (v5)
I fixed shareContext problem pointed out by Chad. In shareContext event I
chose to just abort out as for time being I could not make it any nicer.
Signed-off-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindWaffle.cmake | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/cmake/FindWaffle.cmake b/cmake/FindWaffle.cmake new file mode 100644 index 00000000..e2f6a84c --- /dev/null +++ b/cmake/FindWaffle.cmake @@ -0,0 +1,38 @@ +# - try to find Waffle include dirs and library + +if (ANDROID) + set (Android_root_path "$ENV{OUT}") + if (Android_root_path) + set (Waffle_INC_SEARCH_PATH "$ENV{OUT}/obj/include/waffle-1" + "$ENV{OUT}/obj/lib" + "$ENV{ANDROID_BUILD_TOP}/external/waffle" + ) + + set (Waffle_LIB_SEARCH_PATH "$ENV{OUT}/obj/lib") + endif () + + find_path (Waffle_INCLUDE_DIR waffle.h + PATHS ${Waffle_INC_SEARCH_PATH} + DOC "The directory where waffle.h resides" + NO_CMAKE_FIND_ROOT_PATH NO_DEFAULT_PATH + ) + + find_library (Waffle_LIBRARY waffle-1 + PATHS ${Waffle_LIB_SEARCH_PATH} + DOC "The directory where libwaffle-1 resides" + NO_CMAKE_FIND_ROOT_PATH NO_DEFAULT_PATH + ) + + if (Waffle_INCLUDE_DIR AND Waffle_LIBRARY) + set (Waffle_FOUND 1) + endif (Waffle_INCLUDE_DIR AND Waffle_LIBRARY) + + mark_as_advanced ( + Waffle_INCLUDE_DIR + Waffle_LIBRARY + ) +endif () + +mark_as_advanced ( + Waffle_FOUND +) |