diff options
Diffstat (limited to 'indra/llrender/CMakeLists.txt')
-rw-r--r-- | indra/llrender/CMakeLists.txt | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/indra/llrender/CMakeLists.txt b/indra/llrender/CMakeLists.txt index 2dba8ef60d..76858d9839 100644 --- a/indra/llrender/CMakeLists.txt +++ b/indra/llrender/CMakeLists.txt @@ -20,24 +20,38 @@ include_directories( ) set(llrender_SOURCE_FILES + llcubemap.cpp llfont.cpp llfontgl.cpp llgldbg.cpp + llglslshader.cpp llimagegl.cpp + llpostprocess.cpp llrender.cpp + llrendersphere.cpp llrendertarget.cpp + llshadermgr.cpp llvertexbuffer.cpp ) set(llrender_HEADER_FILES CMakeLists.txt + llcubemap.h llfontgl.h llfont.h + llgl.h llgldbg.h + llglheaders.h + llglslshader.h + llglstates.h + llgltypes.h llimagegl.h + llpostprocess.h llrender.h + llrendersphere.h llrendertarget.h + llshadermgr.h llvertexbuffer.h ) @@ -46,4 +60,24 @@ set_source_files_properties(${llrender_HEADER_FILES} list(APPEND llrender_SOURCE_FILES ${llrender_HEADER_FILES}) +if (SERVER AND NOT WINDOWS AND NOT DARWIN) + copy_server_sources( + llgl + ) + + + set_source_files_properties( + ${server_SOURCE_FILES} + PROPERTIES + COMPILE_FLAGS "-DLL_MESA=1 -DLL_MESA_HEADLESS=1" + ) + add_library (llrenderheadless + ${llrender_SOURCE_FILES} + ${server_SOURCE_FILES} + ) +else (SERVER AND NOT WINDOWS AND NOT DARWIN) + list(APPEND llrender_SOURCE_FILES + llgl.cpp + ) +endif (SERVER AND NOT WINDOWS AND NOT DARWIN) add_library (llrender ${llrender_SOURCE_FILES}) |