Changeset 411 for cafu/trunk

Show
Ignore:
Timestamp:
10/21/11 11:09:30 (7 months ago)
Author:
Carsten
Message:

Completing the changes begun in r410, this change links the alut, ogg, vorbis and mpg123 libraries statically to the OpenAL sound system under Windows as well.
(The changes in r410 mostly addressed the same under Linux, and most but not all of the required changes under Windows.)

Location:
cafu/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • cafu/trunk/ExtLibs/freealut/SConscript

    r410 r411  
    88# CPPDEFINES created using VC++ project file as template (removed Windows specific DEFINES for Linux build). 
    99if sys.platform=="win32": 
    10     env_freealut.Append(CPPDEFINES=['_WINDOWS', '_USRDLL', 'ALUT_EXPORTS', 'WIN32', '_MBCS', 'ALUT_BUILD_LIBRARY', 'HAVE__STAT', 'HAVE_BASETSD_H', 'HAVE_SLEEP', 'HAVE_WINDOWS_H']) 
     10    env_freealut.Append(CPPDEFINES=['ALUT_EXPORTS', '_MBCS', 'ALUT_BUILD_LIBRARY', 'HAVE__STAT', 'HAVE_BASETSD_H', 'HAVE_SLEEP', 'HAVE_WINDOWS_H']) 
    1111    env_freealut.Append(CPPPATH=['include', '#/ExtLibs/openal-win/include']) 
    1212    if env_freealut["TARGET_ARCH"]=="x86": 
  • cafu/trunk/ExtLibs/freealut/include/AL/alut.h

    r14 r411  
    1717#endif 
    1818 
    19 #if defined(_WIN32) && !defined(_XBOX) 
     19#if defined(_WIN32) && !defined(_XBOX) && defined(ALUT_BUILD_AS_DLL)    // CF: I added ALUT_BUILD_AS_DLL so that we can build alut as a *static* library as well. 
    2020 #if defined (ALUT_BUILD_LIBRARY) 
    2121  #define ALUT_API __declspec(dllexport) 
  • cafu/trunk/Libs/SoundSystem/Common/MP3Stream.cpp

    r285 r411  
    2929#include <stdexcept> 
    3030 
    31 #ifdef _WIN32 
    32 // Under Windows, the mpg123 functions must be properly declared for DLL import. 
    33 #define LINK_MPG123_DLL 
    34 #endif 
     31// #ifdef _WIN32 
     32// // Under Windows, the mpg123 functions must be properly declared for DLL import. 
     33// #define LINK_MPG123_DLL 
     34// #endif 
    3535#include "mpg123.h" 
    3636