Put glxtrace.so also in the wrappers directory.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 3 Nov 2011 11:54:05 +0000 (11:54 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 3 Nov 2011 11:54:05 +0000 (11:54 +0000)
For consistency among all platforms, per Carl Worth's suggestion,
but the wrappers DLLs must remain in a directory of their own to
avoid interfering with other executables.

CMakeLists.txt
gui/traceprocess.cpp

index 19eb813..c7f3a44 100755 (executable)
@@ -402,12 +402,11 @@ else ()
     set_target_properties (glxtrace PROPERTIES
         # avoid the default "lib" prefix
         PREFIX ""
-    )
-
-    # Prevent symbol relocations internal to our wrapper library to be
-    # overwritten by the application.
-    set_target_properties (glxtrace PROPERTIES
+        # Prevent symbol relocations internal to our wrapper library to be
+        # overwritten by the application.
         LINK_FLAGS "-Wl,-Bsymbolic -Wl,-Bsymbolic-functions"
+        RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/wrappers
+        LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/wrappers
     )
 
     target_link_libraries (glxtrace dl ${X11_X11_LIB})
index 6bdd1c4..ae27e81 100644 (file)
@@ -12,7 +12,7 @@ findPreloader()
     QFileInfo fi;
 
 #ifdef APITRACE_BINARY_DIR
-    libPath = QString::fromLatin1(APITRACE_BINARY_DIR "/glxtrace.so");
+    libPath = QString::fromLatin1(APITRACE_BINARY_DIR "/wrappers/glxtrace.so");
     fi = QFileInfo(libPath);
     if (fi.exists())
         return libPath;