summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
AgeCommit message (Collapse)AuthorFilesLines
2011-08-19Add piglit_set_rlimit utility functionIan Romanick1-0/+3
This function sets the maximum amount of memory that a process can have in its address space. This is useful for tests that use "infinite" memory on failing implementations. Setting this low can prevent the test from exhausting system memory and adversely affecting other tests. Acked-by: José Fonseca <jfonseca@vmware.com>
2011-08-09Fix test generation on Arch Linux.Paul Berry1-9/+16
On Arch Linux, "python" means Python 3.x, and Python 2.x is called "python2". The test generation code requires Python 2.x. In many other distributions, "python" refers to Python 2.x. This patch adds logic to the toplevel CMakeLists that checks both "python2" and "python" to see which one is Python 2.x, and once it is found, sets the cmake variable ${python} to point to it. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-08-05cmake: Fix build with CMake 2.6.Vinson Lee1-4/+4
2011-08-05Add comprehensive tests of builtin functions with uniform input.Paul Berry1-0/+22
This patch adds 462 tests to piglit, which comprehensively test the behavior of GLSL built-in functions on vertex and fragment shaders. The test vectors are auto-generated in Python, by using the numpy library to simulate the behavior of the built-in functions on a variety of inputs (in builtin_function.py), and then producing shader_runner tests to verify the expected behavior (in gen_builtin_uniform_tests.py). Test generation happens as part of the piglit build process. To run the test generation step by itself, use "make gen-tests" from the root of the piglit tree (after configuring using cmake). The generated tests may be found in generated_tests/spec. The auto-generation code depends on Python 2.6 and on the numpy library (www.numpy.org). I've updated the README to reflect these dependencies, and added code to CMakeLists.txt to check for them at configure time. (Note: other parts of Piglit already depend on Python 2.6, but the dependency wasn't previously explicit).
2011-06-22Also use -Wall (or equivalent) when compiling the C++ sources.José Fonseca1-0/+6
Although the bulk is C, there are a few C++ sources as well.
2011-06-22Don't use -Wall on MSVC.José Fonseca1-4/+11
It causes thousands of warnings on windows.h...
2011-05-13Make TIFF an optional dependency.José Fonseca1-1/+1
It's only used by glean, so no need to force linking against it everywhere.
2011-04-06cmake: Remove duplicate find_library() call.José Fonseca1-1/+0
2011-03-13Portability build fixes for MinGW.José Fonseca1-0/+5
2011-03-07cmake: Put the binaries in the right place for MSVS too.José Fonseca1-2/+10
Until now MSVS was putting binaries on a Debug/Release/etc sub-directory. This implied using CMAKE_RUNTIME_OUTPUT_DIRECTORY and CMAKE_LIBRARY_OUTPUT_DIRECTORY instead of deprecated EXECUTABLE_OUTPUT_PATH and LIBRARY_OUTPUT_PATH vars.
2011-03-07cmake: Allow GL/glext.h to be specified separately.José Fonseca1-0/+14
glext.h is not bundled on MSVC, so its path needs to be included separately. It might be also useful on other platforms to override the system's glext.h with a more recent one.
2011-02-25cmake: Enable building GLES2 targetsChad Versace1-0/+1
Signed-off-by: Chad Versace <chad.versace@intel.com>
2011-02-25piglit: Add header <piglit/gl_wrap.h>Chad Versace1-0/+1
A convenience header that includes the actual OpenGL headers, which are chosen according to the macro definitions USE_OPENGL and USE_OPENGL_ES2. Note: This belongs to a series that adds GLES2 support to Piglit. Signed-off-by: Chad Versace <chad.versace@intel.com>
2011-02-25cmake: Prepare CMake for GL and GLES2 buildsChad Versace1-2/+2
Add two new CMakeLists, /cmake/target_api/{gl,gles2}/CMakeLists.txt, each of which builds Piglit with its respective API. (Of course, gles2/CMakeLists.txt adds no targets because Piglit does not yet support building with GLES2.) The toplevel CMakeLists no longer adds subdirectory /tests; that is now the responsiblity of the API-specific CMakeLists. Note: This belongs to a series that adds GLES2 support to Piglit. Signed-off-by: Chad Versace <chad.versace@intel.com>
2011-02-25cmake: Move output paths from piglit_SOURCE_DIR to piglit_BINARY_DIRChad Versace1-2/+2
This fixes out-of-source builds, and does not harm in-source builds. Signed-off-by: Chad Versace <chad.versace@intel.com>
2011-02-25cmake: Replace awkward package inclusions with the natural CMake idiomChad Versace1-5/+5
Replace include(${CMAKE_ROOT}/Modules/FindPACKAGE.cmake) with find_package(PACKAGE)
2011-02-25cmake: Find GLES2 libraryChad Versace1-0/+1
2011-02-17Import GLEWMarek Olšák1-8/+0
Discussed on IRC. Finally we have headers for OpenGL 4.1 and all the extensions released to this day.
2010-07-23Add X11 libs so it builds on FedoraKristian Høgsberg1-0/+1
2010-05-14Add the start of an EGL test suite and a EGL_NOK_swap_region testKristian Høgsberg1-0/+5
2010-04-19Add 'INCLUDE (CheckFunctionExists)' in CMakeLists.txt.Vinson Lee1-0/+1
Fixes CMake error.
2010-04-19util: Additional cmake-based portability testsIan Romanick1-0/+7
2010-04-19util: Add support for systems that lack strchrnul.Ian Romanick1-0/+7
2010-04-12Add a minimum cmake versionXavier Chantry1-0/+2
So that cmake stops complaining. This apparently causes a change in add_definitions behavior and I had to remove \\\" to make shaders work. Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
2009-04-30Enable compiler warnings.Eric Anholt1-0/+6
I would do the right set of warnings for gcc like we do for automake projects, but the way you have to do it in cmake is ridiculous and so apparently basically nobody enables compiler warnings with cmake.
2009-03-18Add infrastructure for tests to use GLEWIan Romanick1-0/+8
2007-03-25texline: Write screenshot using libpngNicolai Haehnle1-0/+1
2007-03-25Build test executables in a dedicated bin directoryNicolai1-0/+3
2007-03-24Initial commitNicolai Hähnle1-0/+8