[Piglit] [PATCH 14/14] doc: Add build instructions for Android

Chad Versace chad.versace at linux.intel.com
Tue Nov 20 11:17:38 PST 2012


On 11/16/2012 04:46 AM, groleo at gmail.com wrote:
> From: Adrian Marius Negreanu <adrian.m.negreanu at intel.com>
> 
> Signed-off-by: Adrian Marius Negreanu <adrian.m.negreanu at intel.com>
> ---
>  README | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
> 
> diff --git a/README b/README
> index d9e6d73..f6ff5bd 100644
> --- a/README
> +++ b/README
> @@ -182,6 +182,25 @@ Build from the Visual Studio Command Prompt.
>    > nmake
>  
>  
> +2.6 Android
> +----------
> +
> +Using the Android Tree.
> +  $ cd <android_source_tree>
> +  $ . build/envsetup.sh
> +  $ lunch <choose_your_platform>
> +  $ cd external/piglit
> +  $ cmake \
> +    -DCMAKE_TOOLCHAIN_FILE=cmake/Modules/Compiler/Android.cmake \
> +    -DPIGLIT_USE_WAFFLE=ON \
> +    -DPIGLIT_BUILD_GL_TESTS=OFF \
> +    -DPIGLIT_BUILD_GLX_TESTS=OFF \
> +    -DPIGLIT_BUILD_GLES1_TESTS=ON \
> +    -DPIGLIT_BUILD_GLES2_TESTS=ON \
> +  .
> +  $ make
> +
> +

Ideally, I'd like to see these options be the default when Android is
the target. But, honestly, the autodetection in the the toplevel
CMakeLists.txt is a mess for Linux too. So, this approach is
good enough for now.

Reviewed-by: Chad Versace <chad.versace at linux.intel.com>



More information about the Piglit mailing list