diff options
Diffstat (limited to 'dev-util/apitrace/files/apitrace-7.1-glxtrace-only.patch')
-rw-r--r-- | dev-util/apitrace/files/apitrace-7.1-glxtrace-only.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/dev-util/apitrace/files/apitrace-7.1-glxtrace-only.patch b/dev-util/apitrace/files/apitrace-7.1-glxtrace-only.patch new file mode 100644 index 000000000000..91867affca26 --- /dev/null +++ b/dev-util/apitrace/files/apitrace-7.1-glxtrace-only.patch @@ -0,0 +1,32 @@ +Allow building of just glxtrace library for ebuilds without GUI tools. + +Updated from 5.0 version of patch to apply against 7.1. + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -44,6 +44,8 @@ + + option (ENABLE_FRAME_POINTER "Disable frame pointer omission" ON) + ++option (BUILD_LIB_ONLY "Build the glxtrace library only" OFF) ++ + # Proprietary Linux games often ship their own libraries (zlib, libstdc++, + # etc.) in order to ship a single set of binaries across multiple + # distributions. Given that apitrace wrapper modules will be loaded into those +--- a/retrace/CMakeLists.txt ++++ b/retrace/CMakeLists.txt +@@ -12,6 +12,8 @@ + + add_definitions (-DRETRACE) + ++if (NOT BUILD_LIB_ONLY) ++ + add_custom_command ( + OUTPUT glretrace_gl.cpp + COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/glretrace.py > ${CMAKE_CURRENT_BINARY_DIR}/glretrace_gl.cpp +@@ -368,3 +370,5 @@ + install (TARGETS d3dretrace RUNTIME DESTINATION bin) + install_pdb (d3dretrace DESTINATION bin) + endif () ++ ++endif (NOT BUILD_LIB_ONLY) |