diff options
Diffstat (limited to 'dev-util/apitrace/files/apitrace-1.0-glxtrace-only.patch')
-rw-r--r-- | dev-util/apitrace/files/apitrace-1.0-glxtrace-only.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-util/apitrace/files/apitrace-1.0-glxtrace-only.patch b/dev-util/apitrace/files/apitrace-1.0-glxtrace-only.patch new file mode 100644 index 000000000000..d94c3b6fe7f3 --- /dev/null +++ b/dev-util/apitrace/files/apitrace-1.0-glxtrace-only.patch @@ -0,0 +1,26 @@ +--- apitrace-apitrace-5f03103/CMakeLists.txt.orig ++++ apitrace-apitrace-5f03103/CMakeLists.txt +@@ -19,6 +19,8 @@ + find_package (PythonInterp REQUIRED) + find_package (OpenGL REQUIRED) + ++option (BUILD_LIB_ONLY "Build the glxtrace library only" OFF) ++ + option (ENABLE_GUI "Build the QT-based GUI." ON) + if (ENABLE_GUI) + find_package (Qt4 4.7 COMPONENTS QtCore QtGui QtWebKit) +@@ -232,6 +234,8 @@ + target_link_libraries (glxtrace dl) + endif () + ++if (NOT BUILD_LIB_ONLY) ++ + if (WIN32) + set (os os_win32.cpp) + set (glws glws_wgl.cpp) +@@ -290,3 +294,5 @@ + if (ENABLE_GUI) + add_subdirectory(gui) + endif (ENABLE_GUI) ++ ++endif (NOT BUILD_LIB_ONLY) |