Revision: 7814
          http://playerstage.svn.sourceforge.net/playerstage/?rev=7814&view=rev
Author:   gbiggs
Date:     2009-06-08 06:20:28 +0000 (Mon, 08 Jun 2009)

Log Message:
-----------
Added support for large files, stopped warn floods in MSVC

Modified Paths:
--------------
    code/player/trunk/CMakeLists.txt
    code/player/trunk/cmake/internal/GeneralCompileOptions.cmake

Modified: code/player/trunk/CMakeLists.txt
===================================================================
--- code/player/trunk/CMakeLists.txt    2009-06-08 06:11:07 UTC (rev 7813)
+++ code/player/trunk/CMakeLists.txt    2009-06-08 06:20:28 UTC (rev 7814)
@@ -20,16 +20,21 @@
 SET (PLAYER_API_VERSION 2.2 CACHE STRING "Player API version")
 MESSAGE (STATUS "${PROJECT_NAME} version ${PLAYER_VERSION}")
 
-# Enable -Wall by default
-SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
-SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
-
 # Set where to find our internal CMake scripts
 SET (PLAYER_CMAKE_DIR ${PROJECT_SOURCE_DIR}/cmake CACHE PATH "Location of 
CMake scripts")
 # Get version components
 INCLUDE (${PLAYER_CMAKE_DIR}/internal/DissectVersion.cmake)
 # Determine the operating system in detail
 INCLUDE (${PLAYER_CMAKE_DIR}/internal/FindOS.cmake)
+
+# Enable -Wall by default
+IF (NOT PLAYER_OS_WIN)
+    # Using -Wall on Windows causes MSVC to produce thousands of warnings in 
its
+    # own standard headers, dramatically slowing down the build.
+    SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
+    SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
+ENDIF (NOT PLAYER_OS_WIN)
+
 # Check the compiler version is OK
 # INCLUDE (${PLAYER_CMAKE_DIR}/internal/CheckCompiler.cmake)
 # Setup directories such as install destination

Modified: code/player/trunk/cmake/internal/GeneralCompileOptions.cmake
===================================================================
--- code/player/trunk/cmake/internal/GeneralCompileOptions.cmake        
2009-06-08 06:11:07 UTC (rev 7813)
+++ code/player/trunk/cmake/internal/GeneralCompileOptions.cmake        
2009-06-08 06:20:28 UTC (rev 7814)
@@ -12,3 +12,17 @@
 ENDIF (WITH_GTK)
 
 OPTION (BUILD_SHARED_LIBS "Build the Player libraries as shared libraries." ON)
+
+IF (NOT PLAYER_OS_WIN)
+    OPTION (LARGE_FILE_SUPPORT "Compile with support for large files (>2GB)." 
OFF)
+    EXECUTE_PROCESS (COMMAND getconf LFS_CFLAGS OUTPUT_VARIABLE LFS_FLAGS
+        OUTPUT_STRIP_TRAILING_WHITESPACE)
+    IF (LARGE_FILE_SUPPORT)
+        MESSAGE (STATUS "Large file support is enabled, flags are 
${LFS_FLAGS}")
+        ADD_DEFINITIONS (${LFS_FLAGS})
+    ELSE (LARGE_FILE_SUPPORT)
+        MESSAGE (STATUS "Large file support is disabled.")
+        REMOVE_DEFINITIONS (${LFS_FLAGS})
+    ENDIF (LARGE_FILE_SUPPORT)
+ENDIF (NOT PLAYER_OS_WIN)
+


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to