]> git.notmuchmail.org Git - apitrace/commitdiff
Make windows build user friendlier.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 2 Jun 2011 13:38:34 +0000 (14:38 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 2 Jun 2011 13:38:34 +0000 (14:38 +0100)
README
cmake/FindDirectX.cmake

diff --git a/README b/README
index 33cac29c7b39f59b39bb8d36ef194e65bd3ef990..4d6505f54e69b0907fd3bc528425f95197c5ed04 100644 (file)
--- a/README
+++ b/README
@@ -30,7 +30,7 @@ Build as:
 You can also build the 32bit GL wrapper on 64bit distro with a multilib gcc by
 doing:
 
- cmake -H. -Bbuild32 -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_LINK_FLAGS=-m32
+ cmake -H. -Bbuild32 -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_EXE_LINKER_FLAGS=-m32
  make -C build32 glxtrace
 
 
@@ -42,16 +42,29 @@ Additional requirements:
 
 * Microsoft DirectX SDK (tested with August 2007 release)
 
-To build with Visual Studio invoke CMake as:
+To build with Visual Studio first invoke CMake GUI as:
 
- cmake -G "Visual Studio 9 2008" -H. -Bbuild
- cmake --build build --config MinSizeRel
+ cmake-gui -H. -B%cd%\build
+
+and press the "Configure" button.
+
+It will try to detect most required/optional dependencies automatically.  When
+not found automatically, you can manually specify the location of the
+dependencies from the GUI.
 
 If you are building with GUI support (i.e, with QT and QJSON), it should detect
 the official QT sdk automatically, but you will need to build QJSON yourself
 and also set the QJSON_INCLUDE_DIR and QJSON_LIBRARIES variables in the
 generated CMakeCache.txt when building apitrace and repeat the above sequence.
  
+After you've succesfully configured, you can start the build by opening the
+generated build\apitrace.sln solution file, or invoking cmake as:
+
+ cmake --build build --config MinSizeRel
+
+The steps to build 64bit version are similar, but replacing "Visual Studio 9
+2008" with "Visual Studio 9 2008 Win64".
+
 It's also possible to build for Windows on Linux with MinGW cross compilers.
 See http://www.cmake.org/Wiki/CmakeMingw for detailed instructions.
 
index 352e1a3e91e4223e1ce9f27428f15c8ff94278d7..2c54023ebc43b19af4458740a874d8530f130f38 100644 (file)
@@ -137,9 +137,38 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
                endif (DirectX_D3DX10_INCLUDE_DIR AND DirectX_D3DX10_LIBRARY)
        endif (DirectX_D3D10_INCLUDE_DIR AND DirectX_D3D10_LIBRARY)
 
+       mark_as_advanced(
+               DirectX_D3D_INCLUDE_DIR
+               DirectX_D3D_INCLUDE_DIR
+               DirectX_DDRAW_LIBRARY
+               DirectX_DDRAW_LIBRARY
+               DirectX_D3DX_INCLUDE_DIR
+               DirectX_D3DX_INCLUDE_DIR
+               DirectX_D3DX_LIBRARY
+               DirectX_D3DX_LIBRARY
+               DirectX_D3D8_INCLUDE_DIR
+               DirectX_D3D8_INCLUDE_DIR
+               DirectX_D3D8_LIBRARY
+               DirectX_D3D8_LIBRARY
+               DirectX_D3DX8_INCLUDE_DIR
+               DirectX_D3DX8_INCLUDE_DIR
+               DirectX_D3DX8_LIBRARY
+               DirectX_D3DX8_LIBRARY
+               DirectX_D3D9_INCLUDE_DIR
+               DirectX_D3D9_LIBRARY
+               DirectX_D3DX9_INCLUDE_DIR
+               DirectX_D3DX9_LIBRARY
+               DirectX_D3D10_INCLUDE_DIR
+               DirectX_D3D10_LIBRARY
+               DirectX_D3DX10_INCLUDE_DIR
+               DirectX_D3DX10_LIBRARY
+       )
+
 endif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
 
 mark_as_advanced (
+       DirectX_D3D_FOUND
+       DirectX_D3DX_FOUND
        DirectX_D3D8_FOUND
        DirectX_D3DX8_FOUND
        DirectX_D3D9_FOUND