|
|
@@ -142,8 +142,8 @@ else ()
|
|
|
endif ()
|
|
|
# For Raspbery Pi, find Broadcom VideoCore IV firmware
|
|
|
if (RPI)
|
|
|
- find_package (BCM_VC REQUIRED)
|
|
|
- include_directories (${BCM_VC_INCLUDE_DIRS})
|
|
|
+ find_package (VideoCore REQUIRED)
|
|
|
+ include_directories (${VIDEOCORE_INCLUDE_DIRS})
|
|
|
endif ()
|
|
|
if (CMAKE_PROJECT_NAME STREQUAL Urho3D)
|
|
|
set (URHO3D_LIB_TYPE STATIC CACHE STRING "Specify Urho3D library type, possible values are STATIC (default) and SHARED")
|
|
|
@@ -206,6 +206,10 @@ if (CMAKE_PROJECT_NAME STREQUAL Urho3D)
|
|
|
cmake_dependent_option (URHO3D_USE_LIB64_RPM "Enable 64-bit RPM CPack generator using /usr/lib64 and disable all other generators (Debian-based host only)" FALSE "URHO3D_64BIT AND NOT HAS_LIB64" FALSE)
|
|
|
cmake_dependent_option (URHO3D_USE_LIB_DEB "Enable 64-bit DEB CPack generator using /usr/lib and disable all other generators (Redhat-based host only)" FALSE "URHO3D_64BIT AND HAS_LIB64" FALSE)
|
|
|
endif ()
|
|
|
+ # Set to search in 'lib' or 'lib64' based on the chosen ABI
|
|
|
+ if (NOT CMAKE_HOST_WIN32)
|
|
|
+ set_property (GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS ${URHO3D_64BIT})
|
|
|
+ endif ()
|
|
|
else ()
|
|
|
set (URHO3D_LIB_TYPE "" CACHE STRING "Specify Urho3D library type, possible values are STATIC and SHARED")
|
|
|
set (URHO3D_HOME "" CACHE PATH "Path to Urho3D build tree or SDK installation location (downstream project only)")
|
|
|
@@ -494,7 +498,7 @@ if (WIN32)
|
|
|
if (DIRECT3D_INCLUDE_DIRS)
|
|
|
include_directories (${DIRECT3D_INCLUDE_DIRS})
|
|
|
endif ()
|
|
|
-else ()
|
|
|
+elseif ((URHO3D_LUA AND NOT URHO3D_LUAJIT) OR URHO3D_DATABASE_SQLITE)
|
|
|
# Find GNU Readline development library for Lua interpreter and SQLite's isql
|
|
|
find_package (Readline)
|
|
|
endif ()
|
|
|
@@ -534,7 +538,7 @@ if (APPLE)
|
|
|
add_definitions (-DIOS)
|
|
|
if (URHO3D_64BIT)
|
|
|
if (DEFINED ENV{XCODE_64BIT_ONLY}) # This environment variable is set automatically when ccache is just being cleared in Travis CI VM
|
|
|
- set (CMAKE_OSX_ARCHITECTURES "arm64 x86_64") # This is a hack to temporarily only build 64-bit archs to reduce overall build time
|
|
|
+ set (CMAKE_OSX_ARCHITECTURES "arm64 x86_64") # This is a hack to temporarily only build 64-bit archs to reduce overall build time for one build
|
|
|
else ()
|
|
|
set (CMAKE_OSX_ARCHITECTURES $(ARCHS_STANDARD))
|
|
|
endif ()
|
|
|
@@ -547,7 +551,7 @@ if (APPLE)
|
|
|
# OSX-specific setup
|
|
|
if (URHO3D_64BIT)
|
|
|
if (DEFINED ENV{XCODE_64BIT_ONLY})
|
|
|
- set (CMAKE_OSX_ARCHITECTURES x86_64) # This is a hack
|
|
|
+ set (CMAKE_OSX_ARCHITECTURES x86_64) # This is a hack, idem; the idea is to finish within the allocated time and cache the objects for subsequent builds
|
|
|
else ()
|
|
|
set (CMAKE_OSX_ARCHITECTURES $(ARCHS_STANDARD_32_64_BIT))
|
|
|
endif ()
|
|
|
@@ -1494,7 +1498,7 @@ macro (define_dependency_libs TARGET)
|
|
|
list (APPEND LIBS dl rt)
|
|
|
endif ()
|
|
|
if (RPI)
|
|
|
- list (APPEND ABSOLUTE_PATH_LIBS ${BCM_VC_LIBRARIES})
|
|
|
+ list (APPEND ABSOLUTE_PATH_LIBS ${VIDEOCORE_LIBRARIES})
|
|
|
endif ()
|
|
|
endif ()
|
|
|
endif ()
|