merge changes for open-38
commit
be251b06eb
|
|
@ -66,6 +66,7 @@ Alejandro Rosenthal
|
|||
VWR-1184
|
||||
Aleric Inglewood
|
||||
SNOW-84
|
||||
OPEN-38
|
||||
SNOW-240
|
||||
SNOW-477
|
||||
SNOW-522
|
||||
|
|
|
|||
|
|
@ -0,0 +1,30 @@
|
|||
# -*- cmake -*-
|
||||
|
||||
# - Find GLH
|
||||
# Find the Graphic Library Helper includes.
|
||||
# This module defines
|
||||
# GLH_INCLUDE_DIR, where to find glh/glh_linear.h.
|
||||
# GLH_FOUND, If false, do not try to use GLH.
|
||||
|
||||
find_path(GLH_INCLUDE_DIR glh/glh_linear.h
|
||||
NO_SYSTEM_ENVIRONMENT_PATH
|
||||
)
|
||||
|
||||
if (GLH_INCLUDE_DIR)
|
||||
set(GLH_FOUND "YES")
|
||||
else (GLH_INCLUDE_DIR)
|
||||
set(GLH_FOUND "NO")
|
||||
endif (GLH_INCLUDE_DIR)
|
||||
|
||||
if (GLH_FOUND)
|
||||
if (NOT GLH_FIND_QUIETLY)
|
||||
message(STATUS "Found GLH: ${GLH_INCLUDE_DIR}")
|
||||
set(GLH_FIND_QUIETLY TRUE) # Only alert us the first time
|
||||
endif (NOT GLH_FIND_QUIETLY)
|
||||
else (GLH_FOUND)
|
||||
if (GLH_FIND_REQUIRED)
|
||||
message(FATAL_ERROR "Could not find GLH")
|
||||
endif (GLH_FIND_REQUIRED)
|
||||
endif (GLH_FOUND)
|
||||
|
||||
mark_as_advanced(GLH_INCLUDE_DIR)
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# -*- cmake -*-
|
||||
include(Prebuilt)
|
||||
|
||||
set(GLH_FIND_REQUIRED TRUE)
|
||||
set(GLH_FIND_QUIETLY TRUE)
|
||||
|
||||
if (STANDALONE)
|
||||
include(FindGLH)
|
||||
else (STANDALONE)
|
||||
use_prebuilt_binary(glh_linear)
|
||||
endif (STANDALONE)
|
||||
|
|
@ -1,9 +1,11 @@
|
|||
# -*- cmake -*-
|
||||
|
||||
include(FreeType)
|
||||
include(GLH)
|
||||
|
||||
set(LLRENDER_INCLUDE_DIRS
|
||||
${LIBS_OPEN_DIR}/llrender
|
||||
${GLH_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
if (SERVER AND LINUX)
|
||||
|
|
|
|||
|
|
@ -38,18 +38,17 @@ endmacro(ll_deploy_sharedlibs_command)
|
|||
# ll_stage_sharedlib
|
||||
# Performs config and adds a copy command for a sharedlib target.
|
||||
macro(ll_stage_sharedlib DSO_TARGET)
|
||||
if(SHARED_LIB_STAGING_DIR)
|
||||
# target gets written to the DLL staging directory.
|
||||
# Also this directory is shared with RunBuildTest.cmake, y'know, for the tests.
|
||||
set_target_properties(${DSO_TARGET} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${SHARED_LIB_STAGING_DIR})
|
||||
if(NOT WINDOWS)
|
||||
get_target_property(DSO_PATH ${DSO_TARGET} LOCATION)
|
||||
get_filename_component(DSO_FILE ${DSO_PATH} NAME)
|
||||
if(DARWIN)
|
||||
set(SHARED_LIB_STAGING_DIR_CONFIG ${SHARED_LIB_STAGING_DIR}/${CMAKE_CFG_INTDIR}/Resources)
|
||||
else(DARWIN)
|
||||
set(SHARED_LIB_STAGING_DIR_CONFIG ${SHARED_LIB_STAGING_DIR}/${CMAKE_CFG_INTDIR})
|
||||
endif(DARWIN)
|
||||
# target gets written to the DLL staging directory.
|
||||
# Also this directory is shared with RunBuildTest.cmake, y'know, for the tests.
|
||||
set_target_properties(${DSO_TARGET} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${SHARED_LIB_STAGING_DIR})
|
||||
if(NOT WINDOWS)
|
||||
get_target_property(DSO_PATH ${DSO_TARGET} LOCATION)
|
||||
get_filename_component(DSO_FILE ${DSO_PATH} NAME)
|
||||
if(DARWIN)
|
||||
set(SHARED_LIB_STAGING_DIR_CONFIG ${SHARED_LIB_STAGING_DIR}/${CMAKE_CFG_INTDIR}/Resources)
|
||||
else(DARWIN)
|
||||
set(SHARED_LIB_STAGING_DIR_CONFIG ${SHARED_LIB_STAGING_DIR}/${CMAKE_CFG_INTDIR})
|
||||
endif(DARWIN)
|
||||
|
||||
# *TODO - maybe make this a symbolic link? -brad
|
||||
add_custom_command(
|
||||
|
|
@ -63,7 +62,6 @@ macro(ll_stage_sharedlib DSO_TARGET)
|
|||
COMMENT "Copying llcommon to the staging folder."
|
||||
)
|
||||
endif(NOT WINDOWS)
|
||||
endif(SHARED_LIB_STAGING_DIR)
|
||||
|
||||
if (DARWIN)
|
||||
set_target_properties(${DSO_TARGET} PROPERTIES
|
||||
|
|
|
|||
|
|
@ -2,22 +2,19 @@
|
|||
|
||||
include(Variables)
|
||||
|
||||
|
||||
if (NOT STANDALONE)
|
||||
set(ARCH_PREBUILT_DIRS ${AUTOBUILD_INSTALL_DIR}/lib)
|
||||
set(ARCH_PREBUILT_DIRS_RELEASE ${AUTOBUILD_INSTALL_DIR}/lib/release)
|
||||
set(ARCH_PREBUILT_DIRS_DEBUG ${AUTOBUILD_INSTALL_DIR}/lib/debug)
|
||||
if (WINDOWS)
|
||||
set(SHARED_LIB_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs)
|
||||
set(EXE_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs)
|
||||
elseif (LINUX)
|
||||
set(SHARED_LIB_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs/lib)
|
||||
set(EXE_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs/bin)
|
||||
elseif (DARWIN)
|
||||
set(SHARED_LIB_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs)
|
||||
set(EXE_STAGING_DIR "${CMAKE_BINARY_DIR}/sharedlibs/\$(CONFIGURATION)")
|
||||
endif (WINDOWS)
|
||||
endif (NOT STANDALONE)
|
||||
set(ARCH_PREBUILT_DIRS ${AUTOBUILD_INSTALL_DIR}/lib)
|
||||
set(ARCH_PREBUILT_DIRS_RELEASE ${AUTOBUILD_INSTALL_DIR}/lib/release)
|
||||
set(ARCH_PREBUILT_DIRS_DEBUG ${AUTOBUILD_INSTALL_DIR}/lib/debug)
|
||||
if (WINDOWS)
|
||||
set(SHARED_LIB_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs)
|
||||
set(EXE_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs)
|
||||
elseif (LINUX)
|
||||
set(SHARED_LIB_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs/lib)
|
||||
set(EXE_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs/bin)
|
||||
elseif (DARWIN)
|
||||
set(SHARED_LIB_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs)
|
||||
set(EXE_STAGING_DIR "${CMAKE_BINARY_DIR}/sharedlibs/\$(CONFIGURATION)")
|
||||
endif (WINDOWS)
|
||||
|
||||
# Autobuild packages must provide 'release' versions of libraries, but may provide versions for
|
||||
# specific build types. AUTOBUILD_LIBS_INSTALL_DIRS lists first the build type directory and then
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
project(linux_crash_logger)
|
||||
|
||||
include(00-Common)
|
||||
include(GLH)
|
||||
include(LLCommon)
|
||||
include(LLCrashLogger)
|
||||
include(LLMath)
|
||||
|
|
|
|||
Loading…
Reference in New Issue