aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/Audio.cmake
diff options
context:
space:
mode:
authorArmin Weatherwax2011-05-17 12:51:04 +0200
committerJacek Antonelli2011-05-17 17:43:21 -0500
commitaeeaabf84da0e10e6173aa10cb273e8b199cf9d1 (patch)
tree914de8b6102a2c1fdd6f954924292804f9da7b31 /linden/indra/cmake/Audio.cmake
parentalso link with ld.gold (diff)
downloadmeta-impy-aeeaabf84da0e10e6173aa10cb273e8b199cf9d1.zip
meta-impy-aeeaabf84da0e10e6173aa10cb273e8b199cf9d1.tar.gz
meta-impy-aeeaabf84da0e10e6173aa10cb273e8b199cf9d1.tar.bz2
meta-impy-aeeaabf84da0e10e6173aa10cb273e8b199cf9d1.tar.xz
Linux64 fix linking and packaging of the new ogg/vorbis libs
Diffstat (limited to 'linden/indra/cmake/Audio.cmake')
-rw-r--r--linden/indra/cmake/Audio.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/linden/indra/cmake/Audio.cmake b/linden/indra/cmake/Audio.cmake
index d23bc2f..10d11bb 100644
--- a/linden/indra/cmake/Audio.cmake
+++ b/linden/indra/cmake/Audio.cmake
@@ -32,6 +32,12 @@ else (STANDALONE)
32 set(VORBISENC_LIBRARIES vorbisenc) 32 set(VORBISENC_LIBRARIES vorbisenc)
33 set(VORBISFILE_LIBRARIES vorbisfile) 33 set(VORBISFILE_LIBRARIES vorbisfile)
34 endif (WINDOWS) 34 endif (WINDOWS)
35 if(LINUX AND ${ARCH} STREQUAL "x86_64")
36 set(VORBIS_LIBRARY_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib)
37 set(VORBISENC_LIBRARY_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib)
38 set(VORBISFILE_LIBRARY_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib)
39 set(OGG_LIBRARY_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib)
40 endif(LINUX AND ${ARCH} STREQUAL "x86_64")
35endif (STANDALONE) 41endif (STANDALONE)
36 42
37link_directories( 43link_directories(
@@ -40,3 +46,13 @@ link_directories(
40 ${VORBISFILE_LIBRARY_DIRS} 46 ${VORBISFILE_LIBRARY_DIRS}
41 ${OGG_LIBRARY_DIRS} 47 ${OGG_LIBRARY_DIRS}
42 ) 48 )
49
50if(NOT vorbis_link_msg)
51 set(vorbis_link_msg ON CACHE BOOL "ogg vorbis linked from:\n")
52 message("ogg vorbis linked from:\n"
53 ${VORBIS_LIBRARY_DIRS} "\n"
54 ${VORBISENC_LIBRARY_DIRS} "\n"
55 ${VORBISFILE_LIBRARY_DIRS} "\n"
56 ${OGG_LIBRARY_DIRS} "\n"
57 )
58endif(NOT vorbis_link_msg)