3 # Copyright 2012 Intel Corporation
4 # Copyright © 2020 Valve Corporation.
6 # Permission is hereby granted, free of charge, to any person
7 # obtaining a copy of this software and associated documentation
8 # files (the "Software"), to deal in the Software without
9 # restriction, including without limitation the rights to use,
10 # copy, modify, merge, publish, distribute, sublicense, and/or
11 # sell copies of the Software, and to permit persons to whom the
12 # Software is furnished to do so, subject to the following
15 # This permission notice shall be included in all copies or
16 # substantial portions of the Software.
18 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
19 # KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
20 # WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
21 # PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR(S) BE
22 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
24 # OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25 # DEALINGS IN THE SOFTWARE.
27 # SPDX-License-Identifier: MIT
29 set(piglit_replayer_script ${piglit_SOURCE_DIR}/replayer/replayer.py)
30 set(piglit_replayer_output_dir ${piglit_BINARY_DIR}/bin)
32 set(piglit_replayer_outputs
33 ${piglit_replayer_output_dir}/replayer.py
36 set(piglit_replayer_depends
37 ${CMAKE_SOURCE_DIR}/replayer/replayer.py
41 OUTPUT ${piglit_replayer_outputs}
42 DEPENDS ${piglit_replayer_depends}
43 COMMAND ${CMAKE_COMMAND} -E copy ${piglit_replayer_script} ${piglit_replayer_output_dir}
46 add_custom_target(piglit_replayer ALL
47 DEPENDS ${piglit_replayer_outputs}
50 install(PROGRAMS ${piglit_replayer_outputs} DESTINATION ${PIGLIT_INSTALL_LIBDIR}/bin)