diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2014-05-02 00:31:19 -0700 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2014-05-06 20:11:05 -0700 |
commit | d18077aa8a7de01bfd9b1538e12246af7d1954ad (patch) | |
tree | 308ce08c4d35340a1fd2b3b417ba3c54dc8087ba /CMakeLists.txt | |
parent | 9b1e7da290cd612690e85bcacc99b50c65d83fe6 (diff) |
piglit: Add a toplevel piglit command
This uses the functions created by the last commit to create a
all-in-one piglit command. It uses argparse to parse partial commands
and provide help for those functions.
It is also capable of handling all of the black magic for setting the
python sys.path and setting the PIGLIT_SOURCE_DIR environment variable.
v2: - Allow the name of the program to not be piglit (example:
piglit-20140101)
- Remove unused check from cmake
- Install piglit as piglit${PIGLIT_INSTALL_VERSION}; when this
variable is unset piglit will be installed simply as 'piglit'
v3: - split "../lib" into "..", "lib" in os.path.join()
Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e3eddbaea..ff2038fab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -426,18 +426,6 @@ install ( ) install ( - PROGRAMS - piglit-merge-results.py - piglit-print-commands.py - piglit-run.py - piglit-resume.py - piglit-summary.py - piglit-summary-html.py - piglit-summary-junit.py - DESTINATION ${PIGLIT_INSTALL_LIBDIR} -) - -install ( DIRECTORY framework DESTINATION ${PIGLIT_INSTALL_LIBDIR} FILES_MATCHING PATTERN "*.py" @@ -462,6 +450,11 @@ install ( REGEX "CMakeFiles|CMakeLists" EXCLUDE ) +install ( + PROGRAMS piglit RENAME piglit${PIGLIT_INSTALL_VERSION_SUFFIX} + DESTINATION ${CMAKE_INSTALL_BINDIR} +) + set (CPACK_PACKAGE_VERSION_MAJOR "1") set (CPACK_PACKAGE_VERSION_MINOR "0") |