Compare commits
14 Commits
sv-1.8.7.8
...
sv-1.8.7.8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3fec94bb94 | ||
|
|
09926d12bb | ||
|
|
19bcdae6ac | ||
|
|
36025384f4 | ||
|
|
4bdbb89e6f | ||
|
|
e94314dc95 | ||
|
|
5dd68a4055 | ||
|
|
fff4e9b4b8 | ||
|
|
8a6f5b49a3 | ||
|
|
c8290b913e | ||
|
|
e6e6d811c6 | ||
|
|
cdc35b3c32 | ||
|
|
c68e00730e | ||
|
|
0496374328 |
@@ -410,11 +410,11 @@
|
|||||||
<key>archive</key>
|
<key>archive</key>
|
||||||
<map>
|
<map>
|
||||||
<key>hash</key>
|
<key>hash</key>
|
||||||
<string>849f515d4d77162c15614ebff8599c13</string>
|
<string>4614b29cc98021cf1770a8290171602b</string>
|
||||||
<key>hash_algorithm</key>
|
<key>hash_algorithm</key>
|
||||||
<string>md5</string>
|
<string>md5</string>
|
||||||
<key>url</key>
|
<key>url</key>
|
||||||
<string>https://pkg.alchemyviewer.org/repository/autobuild-external/crashpad/windows/crashpad-365c520b.6-windows-6.tar.bz2</string>
|
<string>https://pkg.alchemyviewer.org/repository/autobuild-external/crashpad/windows/crashpad-ce32d093.7-windows-7.tar.bz2</string>
|
||||||
</map>
|
</map>
|
||||||
<key>name</key>
|
<key>name</key>
|
||||||
<string>windows</string>
|
<string>windows</string>
|
||||||
@@ -424,18 +424,18 @@
|
|||||||
<key>archive</key>
|
<key>archive</key>
|
||||||
<map>
|
<map>
|
||||||
<key>hash</key>
|
<key>hash</key>
|
||||||
<string>7ea820b6a2cfa172f47d673c07dfa62c</string>
|
<string>d801461b7a6a40fffab828aa1e01e3e6</string>
|
||||||
<key>hash_algorithm</key>
|
<key>hash_algorithm</key>
|
||||||
<string>md5</string>
|
<string>md5</string>
|
||||||
<key>url</key>
|
<key>url</key>
|
||||||
<string>https://pkg.alchemyviewer.org/repository/autobuild-external/crashpad/windows64/crashpad-365c520b.6-windows64-6.tar.bz2</string>
|
<string>https://pkg.alchemyviewer.org/repository/autobuild-external/crashpad/windows64/crashpad-ce32d093.7-windows64-7.tar.bz2</string>
|
||||||
</map>
|
</map>
|
||||||
<key>name</key>
|
<key>name</key>
|
||||||
<string>windows64</string>
|
<string>windows64</string>
|
||||||
</map>
|
</map>
|
||||||
</map>
|
</map>
|
||||||
<key>version</key>
|
<key>version</key>
|
||||||
<string>365c520b.6</string>
|
<string>ce32d093.7</string>
|
||||||
</map>
|
</map>
|
||||||
<key>curl</key>
|
<key>curl</key>
|
||||||
<map>
|
<map>
|
||||||
@@ -2771,7 +2771,7 @@
|
|||||||
<key>options</key>
|
<key>options</key>
|
||||||
<array>
|
<array>
|
||||||
<string>-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo</string>
|
<string>-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo</string>
|
||||||
<string>-DWORD_SIZE:STRING=$AUTOBUILD_ADDRSIZE</string>
|
<string>-DADDRESS_SIZE:STRING=$AUTOBUILD_ADDRSIZE</string>
|
||||||
<string>-DROOT_PROJECT_NAME:STRING=Singularity</string>
|
<string>-DROOT_PROJECT_NAME:STRING=Singularity</string>
|
||||||
<string>-DINSTALL_PROPRIETARY=FALSE</string>
|
<string>-DINSTALL_PROPRIETARY=FALSE</string>
|
||||||
</array>
|
</array>
|
||||||
@@ -2792,7 +2792,7 @@
|
|||||||
<key>options</key>
|
<key>options</key>
|
||||||
<array>
|
<array>
|
||||||
<string>-DCMAKE_BUILD_TYPE:STRING=Release</string>
|
<string>-DCMAKE_BUILD_TYPE:STRING=Release</string>
|
||||||
<string>-DWORD_SIZE:STRING=$AUTOBUILD_ADDRSIZE</string>
|
<string>-DADDRESS_SIZE:STRING=$AUTOBUILD_ADDRSIZE</string>
|
||||||
<string>-DROOT_PROJECT_NAME:STRING=Singularity</string>
|
<string>-DROOT_PROJECT_NAME:STRING=Singularity</string>
|
||||||
<string>-DINSTALL_PROPRIETARY=FALSE</string>
|
<string>-DINSTALL_PROPRIETARY=FALSE</string>
|
||||||
</array>
|
</array>
|
||||||
@@ -2943,7 +2943,7 @@
|
|||||||
<array>
|
<array>
|
||||||
<string>-G</string>
|
<string>-G</string>
|
||||||
<string>Ninja</string>
|
<string>Ninja</string>
|
||||||
<string>-DWORD_SIZE:STRING=64</string>
|
<string>-DADDRESS_SIZE:STRING=64</string>
|
||||||
</array>
|
</array>
|
||||||
</map>
|
</map>
|
||||||
<key>default</key>
|
<key>default</key>
|
||||||
@@ -2968,7 +2968,7 @@
|
|||||||
<array>
|
<array>
|
||||||
<string>-G</string>
|
<string>-G</string>
|
||||||
<string>Ninja</string>
|
<string>Ninja</string>
|
||||||
<string>-DWORD_SIZE:STRING=64</string>
|
<string>-DADDRESS_SIZE:STRING=64</string>
|
||||||
</array>
|
</array>
|
||||||
</map>
|
</map>
|
||||||
<key>name</key>
|
<key>name</key>
|
||||||
@@ -3068,7 +3068,7 @@
|
|||||||
</map>
|
</map>
|
||||||
</map>
|
</map>
|
||||||
<key>name</key>
|
<key>name</key>
|
||||||
<string>windows64</string>
|
<string>windows</string>
|
||||||
</map>
|
</map>
|
||||||
</map>
|
</map>
|
||||||
<key>version_file</key>
|
<key>version_file</key>
|
||||||
|
|||||||
@@ -39,9 +39,9 @@ if (WINDOWS)
|
|||||||
"${CMAKE_C_FLAGS_RELEASE} ${LL_C_FLAGS} /O2 /Zi /MD /MP /fp:fast"
|
"${CMAKE_C_FLAGS_RELEASE} ${LL_C_FLAGS} /O2 /Zi /MD /MP /fp:fast"
|
||||||
CACHE STRING "C compiler release options" FORCE)
|
CACHE STRING "C compiler release options" FORCE)
|
||||||
|
|
||||||
if (WORD_SIZE EQUAL 32)
|
if (ADDRESS_SIZE EQUAL 32)
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LARGEADDRESSAWARE")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LARGEADDRESSAWARE")
|
||||||
endif (WORD_SIZE EQUAL 32)
|
endif (ADDRESS_SIZE EQUAL 32)
|
||||||
|
|
||||||
if (FULL_DEBUG_SYMS OR USE_CRASHPAD)
|
if (FULL_DEBUG_SYMS OR USE_CRASHPAD)
|
||||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /DEBUG:FULL")
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /DEBUG:FULL")
|
||||||
@@ -103,9 +103,9 @@ if (WINDOWS)
|
|||||||
)
|
)
|
||||||
endif (USE_LTO)
|
endif (USE_LTO)
|
||||||
|
|
||||||
if (WORD_SIZE EQUAL 32)
|
if (ADDRESS_SIZE EQUAL 32)
|
||||||
add_compile_options(/arch:SSE2)
|
add_compile_options(/arch:SSE2)
|
||||||
endif (WORD_SIZE EQUAL 32)
|
endif (ADDRESS_SIZE EQUAL 32)
|
||||||
|
|
||||||
if (NOT DISABLE_FATAL_WARNINGS)
|
if (NOT DISABLE_FATAL_WARNINGS)
|
||||||
add_definitions(/WX)
|
add_definitions(/WX)
|
||||||
@@ -292,13 +292,13 @@ if (LINUX OR DARWIN)
|
|||||||
|
|
||||||
set(CMAKE_C_FLAGS "${UNIX_WARNINGS} ${CMAKE_C_FLAGS}")
|
set(CMAKE_C_FLAGS "${UNIX_WARNINGS} ${CMAKE_C_FLAGS}")
|
||||||
set(CMAKE_CXX_FLAGS "${UNIX_CXX_WARNINGS} ${CMAKE_CXX_FLAGS}")
|
set(CMAKE_CXX_FLAGS "${UNIX_CXX_WARNINGS} ${CMAKE_CXX_FLAGS}")
|
||||||
if (WORD_SIZE EQUAL 32)
|
if (ADDRESS_SIZE EQUAL 32)
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
|
||||||
elseif (WORD_SIZE EQUAL 64)
|
elseif (ADDRESS_SIZE EQUAL 64)
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m64")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m64")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64")
|
||||||
endif (WORD_SIZE EQUAL 32)
|
endif (ADDRESS_SIZE EQUAL 32)
|
||||||
endif (LINUX OR DARWIN)
|
endif (LINUX OR DARWIN)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,17 +6,17 @@ SET(DEBUG_PKG_CONFIG "YES")
|
|||||||
IF("$ENV{PKG_CONFIG_LIBDIR}" STREQUAL "")
|
IF("$ENV{PKG_CONFIG_LIBDIR}" STREQUAL "")
|
||||||
|
|
||||||
# Guess at architecture-specific system library paths.
|
# Guess at architecture-specific system library paths.
|
||||||
if (WORD_SIZE EQUAL 32)
|
if (ADDRESS_SIZE EQUAL 32)
|
||||||
SET(PKG_CONFIG_NO_MULTI_GUESS /usr/lib32 /usr/lib)
|
SET(PKG_CONFIG_NO_MULTI_GUESS /usr/lib32 /usr/lib)
|
||||||
SET(PKG_CONFIG_NO_MULTI_LOCAL_GUESS /usr/local/lib32 /usr/local/lib)
|
SET(PKG_CONFIG_NO_MULTI_LOCAL_GUESS /usr/local/lib32 /usr/local/lib)
|
||||||
SET(PKG_CONFIG_MULTI_GUESS /usr/lib/i386-linux-gnu)
|
SET(PKG_CONFIG_MULTI_GUESS /usr/lib/i386-linux-gnu)
|
||||||
SET(PKG_CONFIG_MULTI_LOCAL_GUESS /usr/local/lib/i386-linux-gnu)
|
SET(PKG_CONFIG_MULTI_LOCAL_GUESS /usr/local/lib/i386-linux-gnu)
|
||||||
else (WORD_SIZE EQUAL 32)
|
else (ADDRESS_SIZE EQUAL 32)
|
||||||
SET(PKG_CONFIG_NO_MULTI_GUESS /usr/lib64 /usr/lib)
|
SET(PKG_CONFIG_NO_MULTI_GUESS /usr/lib64 /usr/lib)
|
||||||
SET(PKG_CONFIG_NO_MULTI_LOCAL_GUESS /usr/local/lib64 /usr/local/lib)
|
SET(PKG_CONFIG_NO_MULTI_LOCAL_GUESS /usr/local/lib64 /usr/local/lib)
|
||||||
SET(PKG_CONFIG_MULTI_GUESS /usr/lib/x86_64-linux-gnu)
|
SET(PKG_CONFIG_MULTI_GUESS /usr/lib/x86_64-linux-gnu)
|
||||||
SET(PKG_CONFIG_MULTI_LOCAL_GUESS /usr/local/lib/x86_64-linux-gnu)
|
SET(PKG_CONFIG_MULTI_LOCAL_GUESS /usr/local/lib/x86_64-linux-gnu)
|
||||||
endif (WORD_SIZE EQUAL 32)
|
endif (ADDRESS_SIZE EQUAL 32)
|
||||||
|
|
||||||
# Use DPKG architecture, if available.
|
# Use DPKG architecture, if available.
|
||||||
IF (${DPKG_ARCH})
|
IF (${DPKG_ARCH})
|
||||||
|
|||||||
@@ -2,16 +2,16 @@
|
|||||||
|
|
||||||
include(Prebuilt)
|
include(Prebuilt)
|
||||||
|
|
||||||
if(WORD_SIZE EQUAL 64)
|
if(ADDRESS_SIZE EQUAL 64)
|
||||||
set(DISABLE_TCMALLOC TRUE)
|
set(DISABLE_TCMALLOC TRUE)
|
||||||
endif(WORD_SIZE EQUAL 64)
|
endif(ADDRESS_SIZE EQUAL 64)
|
||||||
|
|
||||||
if (STANDALONE)
|
if (STANDALONE)
|
||||||
include(FindGooglePerfTools)
|
include(FindGooglePerfTools)
|
||||||
else (STANDALONE)
|
else (STANDALONE)
|
||||||
if (LINUX OR WINDOWS AND NOT WORD_SIZE EQUAL 64)
|
if (LINUX OR WINDOWS AND NOT ADDRESS_SIZE EQUAL 64)
|
||||||
use_prebuilt_binary(gperftools)
|
use_prebuilt_binary(gperftools)
|
||||||
endif (LINUX OR WINDOWS AND NOT WORD_SIZE EQUAL 64)
|
endif (LINUX OR WINDOWS AND NOT ADDRESS_SIZE EQUAL 64)
|
||||||
if (WINDOWS AND NOT DISABLE_TCMALLOC)
|
if (WINDOWS AND NOT DISABLE_TCMALLOC)
|
||||||
set(TCMALLOC_LIBRARIES libtcmalloc_minimal.lib)
|
set(TCMALLOC_LIBRARIES libtcmalloc_minimal.lib)
|
||||||
set(TCMALLOC_LINKER_FLAGS "/INCLUDE:\"__tcmalloc\"")
|
set(TCMALLOC_LINKER_FLAGS "/INCLUDE:\"__tcmalloc\"")
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ if (DARWIN)
|
|||||||
find_library(CORESERVICES_LIBRARY CoreServices)
|
find_library(CORESERVICES_LIBRARY CoreServices)
|
||||||
endif (DARWIN)
|
endif (DARWIN)
|
||||||
|
|
||||||
|
|
||||||
set(LLCOMMON_INCLUDE_DIRS
|
set(LLCOMMON_INCLUDE_DIRS
|
||||||
${LIBS_OPEN_DIR}/cwdebug
|
${LIBS_OPEN_DIR}/cwdebug
|
||||||
${LIBS_OPEN_DIR}/llcommon
|
${LIBS_OPEN_DIR}/llcommon
|
||||||
@@ -19,14 +18,7 @@ set(LLCOMMON_INCLUDE_DIRS
|
|||||||
${Boost_INCLUDE_DIRS}
|
${Boost_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
if (LINUX)
|
set(LLCOMMON_LIBRARIES llcommon)
|
||||||
# In order to support using ld.gold on linux, we need to explicitely
|
|
||||||
# specify all libraries that llcommon uses.
|
|
||||||
# llcommon uses `clock_gettime' which is provided by librt on linux.
|
|
||||||
set(LLCOMMON_LIBRARIES llcommon rt)
|
|
||||||
else (LINUX)
|
|
||||||
set(LLCOMMON_LIBRARIES llcommon)
|
|
||||||
endif (LINUX)
|
|
||||||
|
|
||||||
set(LLCOMMON_LINK_SHARED OFF CACHE BOOL "Build the llcommon target as a shared library.")
|
set(LLCOMMON_LINK_SHARED OFF CACHE BOOL "Build the llcommon target as a shared library.")
|
||||||
if(LLCOMMON_LINK_SHARED)
|
if(LLCOMMON_LINK_SHARED)
|
||||||
|
|||||||
@@ -5,10 +5,4 @@ set(LLPLUGIN_INCLUDE_DIRS
|
|||||||
${LIBS_OPEN_DIR}/llplugin
|
${LIBS_OPEN_DIR}/llplugin
|
||||||
)
|
)
|
||||||
|
|
||||||
if (LINUX)
|
set(LLPLUGIN_LIBRARIES llplugin)
|
||||||
# In order to support using ld.gold on linux, we need to explicitely
|
|
||||||
# specify all libraries that llplugin uses.
|
|
||||||
set(LLPLUGIN_LIBRARIES llplugin pthread)
|
|
||||||
else (LINUX)
|
|
||||||
set(LLPLUGIN_LIBRARIES llplugin)
|
|
||||||
endif (LINUX)
|
|
||||||
|
|||||||
@@ -5,11 +5,11 @@ include(Variables)
|
|||||||
if (USE_NVAPI)
|
if (USE_NVAPI)
|
||||||
if (WINDOWS)
|
if (WINDOWS)
|
||||||
use_prebuilt_binary(nvapi)
|
use_prebuilt_binary(nvapi)
|
||||||
if (WORD_SIZE EQUAL 32)
|
if (ADDRESS_SIZE EQUAL 32)
|
||||||
set(NVAPI_LIBRARY nvapi)
|
set(NVAPI_LIBRARY nvapi)
|
||||||
elseif (WORD_SIZE EQUAL 64)
|
elseif (ADDRESS_SIZE EQUAL 64)
|
||||||
set(NVAPI_LIBRARY nvapi64)
|
set(NVAPI_LIBRARY nvapi64)
|
||||||
endif (WORD_SIZE EQUAL 32)
|
endif (ADDRESS_SIZE EQUAL 32)
|
||||||
else (WINDOWS)
|
else (WINDOWS)
|
||||||
set(NVAPI_LIBRARY "")
|
set(NVAPI_LIBRARY "")
|
||||||
endif (WINDOWS)
|
endif (WINDOWS)
|
||||||
|
|||||||
@@ -119,7 +119,6 @@ endif (NOT CMAKE_BUILD_TYPE)
|
|||||||
|
|
||||||
# If someone has specified an address size, use that to determine the
|
# If someone has specified an address size, use that to determine the
|
||||||
# architecture. Otherwise, let the architecture specify the address size.
|
# architecture. Otherwise, let the architecture specify the address size.
|
||||||
set(ADDRESS_SIZE ${WORD_SIZE})
|
|
||||||
if (ADDRESS_SIZE EQUAL 32)
|
if (ADDRESS_SIZE EQUAL 32)
|
||||||
#message(STATUS "ADDRESS_SIZE is 32")
|
#message(STATUS "ADDRESS_SIZE is 32")
|
||||||
set(ARCH i686)
|
set(ARCH i686)
|
||||||
|
|||||||
@@ -269,12 +269,6 @@ list(APPEND llcommon_SOURCE_FILES ${cwdebug_SOURCE_FILES})
|
|||||||
|
|
||||||
list(APPEND llcommon_SOURCE_FILES ${llcommon_HEADER_FILES})
|
list(APPEND llcommon_SOURCE_FILES ${llcommon_HEADER_FILES})
|
||||||
|
|
||||||
if(NOT WORD_SIZE EQUAL 32)
|
|
||||||
if(NOT WINDOWS)
|
|
||||||
add_definitions(-fPIC)
|
|
||||||
endif(NOT WINDOWS)
|
|
||||||
endif(NOT WORD_SIZE EQUAL 32)
|
|
||||||
|
|
||||||
if(LLCOMMON_LINK_SHARED)
|
if(LLCOMMON_LINK_SHARED)
|
||||||
add_library (llcommon SHARED ${llcommon_SOURCE_FILES})
|
add_library (llcommon SHARED ${llcommon_SOURCE_FILES})
|
||||||
if(WINDOWS)
|
if(WINDOWS)
|
||||||
@@ -286,6 +280,8 @@ else(LLCOMMON_LINK_SHARED)
|
|||||||
add_library (llcommon ${llcommon_SOURCE_FILES})
|
add_library (llcommon ${llcommon_SOURCE_FILES})
|
||||||
endif(LLCOMMON_LINK_SHARED)
|
endif(LLCOMMON_LINK_SHARED)
|
||||||
|
|
||||||
|
set_target_properties(llcommon PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
llcommon
|
llcommon
|
||||||
PUBLIC
|
PUBLIC
|
||||||
@@ -304,6 +300,7 @@ target_link_libraries(
|
|||||||
${Boost_SYSTEM_LIBRARY}
|
${Boost_SYSTEM_LIBRARY}
|
||||||
${CORESERVICES_LIBRARY}
|
${CORESERVICES_LIBRARY}
|
||||||
${URIPARSER_LIBRARY}
|
${URIPARSER_LIBRARY}
|
||||||
|
${RT_LIBRARY}
|
||||||
)
|
)
|
||||||
|
|
||||||
if (DARWIN)
|
if (DARWIN)
|
||||||
|
|||||||
@@ -227,7 +227,8 @@ target_link_libraries(
|
|||||||
${OPENSSL_LIBRARIES}
|
${OPENSSL_LIBRARIES}
|
||||||
${CRYPTO_LIBRARIES}
|
${CRYPTO_LIBRARIES}
|
||||||
${XMLRPCEPI_LIBRARIES}
|
${XMLRPCEPI_LIBRARIES}
|
||||||
)
|
${PTHREAD_LIBRARY}
|
||||||
|
)
|
||||||
|
|
||||||
# tests
|
# tests
|
||||||
if (LL_TESTS)
|
if (LL_TESTS)
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ include(LLCommon)
|
|||||||
include(LLMath)
|
include(LLMath)
|
||||||
include(LLMessage)
|
include(LLMessage)
|
||||||
include(LLRender)
|
include(LLRender)
|
||||||
|
include(Boost)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${LLCOMMON_INCLUDE_DIRS}
|
${LLCOMMON_INCLUDE_DIRS}
|
||||||
@@ -46,14 +47,6 @@ set(llplugin_HEADER_FILES
|
|||||||
set_source_files_properties(${llplugin_HEADER_FILES}
|
set_source_files_properties(${llplugin_HEADER_FILES}
|
||||||
PROPERTIES HEADER_FILE_ONLY TRUE)
|
PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||||
|
|
||||||
if(NOT WORD_SIZE EQUAL 32)
|
|
||||||
if(WINDOWS)
|
|
||||||
# add_definitions(/FIXED:NO)
|
|
||||||
else(WINDOWS) # not windows therefore gcc LINUX and DARWIN
|
|
||||||
add_definitions(-fPIC)
|
|
||||||
endif(WINDOWS)
|
|
||||||
endif (NOT WORD_SIZE EQUAL 32)
|
|
||||||
|
|
||||||
list(APPEND llplugin_SOURCE_FILES ${llplugin_HEADER_FILES})
|
list(APPEND llplugin_SOURCE_FILES ${llplugin_HEADER_FILES})
|
||||||
|
|
||||||
add_library (llplugin ${llplugin_SOURCE_FILES})
|
add_library (llplugin ${llplugin_SOURCE_FILES})
|
||||||
@@ -67,6 +60,8 @@ else()
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set_target_properties(llplugin PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
|
||||||
|
|
||||||
add_subdirectory(slplugin)
|
add_subdirectory(slplugin)
|
||||||
|
|
||||||
# # Add tests
|
# # Add tests
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
project(SLPlugin)
|
project(SLPlugin)
|
||||||
|
|
||||||
include(00-Common)
|
include(00-Common)
|
||||||
include(Linking)
|
|
||||||
include(LLCommon)
|
include(LLCommon)
|
||||||
include(LLPlugin)
|
include(LLPlugin)
|
||||||
include(Linking)
|
include(Linking)
|
||||||
@@ -69,12 +68,7 @@ target_link_libraries(SLPlugin
|
|||||||
${LLCOMMON_LIBRARIES}
|
${LLCOMMON_LIBRARIES}
|
||||||
${APRUTIL_LIBRARIES}
|
${APRUTIL_LIBRARIES}
|
||||||
${PLUGIN_API_WINDOWS_LIBRARIES}
|
${PLUGIN_API_WINDOWS_LIBRARIES}
|
||||||
)
|
${PTHREAD_LIBRARY}
|
||||||
|
|
||||||
add_dependencies(SLPlugin
|
|
||||||
${LLPLUGIN_LIBRARIES}
|
|
||||||
${LLMESSAGE_LIBRARIES}
|
|
||||||
${LLCOMMON_LIBRARIES}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if (DARWIN)
|
if (DARWIN)
|
||||||
|
|||||||
@@ -181,7 +181,6 @@ LLLineEditor::LLLineEditor(const std::string& name, const LLRect& rect,
|
|||||||
|
|
||||||
// make the popup menu available
|
// make the popup menu available
|
||||||
LLMenuGL* menu = LLUICtrlFactory::getInstance()->buildMenu("menu_texteditor.xml", LLMenuGL::sMenuContainer);
|
LLMenuGL* menu = LLUICtrlFactory::getInstance()->buildMenu("menu_texteditor.xml", LLMenuGL::sMenuContainer);
|
||||||
menu->addSeparator();
|
|
||||||
//menu->setBackgroundColor(gColors.getColor("MenuPopupBgColor"));
|
//menu->setBackgroundColor(gColors.getColor("MenuPopupBgColor"));
|
||||||
menu->setCanTearOff(FALSE);
|
menu->setCanTearOff(FALSE);
|
||||||
menu->setVisible(FALSE);
|
menu->setVisible(FALSE);
|
||||||
@@ -3006,54 +3005,48 @@ void LLLineEditor::showContextMenu(S32 x, S32 y)
|
|||||||
{
|
{
|
||||||
gEditMenuHandler = this;
|
gEditMenuHandler = this;
|
||||||
|
|
||||||
|
if(menu->isOpen())
|
||||||
LLMenuGL* menu = (LLMenuGL*)mContextMenuHandle.get();
|
|
||||||
if (menu)
|
|
||||||
{
|
{
|
||||||
if(menu->isOpen())
|
menu->setVisible(FALSE);
|
||||||
{
|
|
||||||
menu->setVisible(FALSE);
|
|
||||||
}
|
|
||||||
|
|
||||||
// spell_check="true" in xui
|
|
||||||
if (!mReadOnly && mSpellCheckable)
|
|
||||||
{
|
|
||||||
// search for word matches
|
|
||||||
S32 wordStart = 0;
|
|
||||||
S32 wordLen = 0;
|
|
||||||
S32 pos = calculateCursorFromMouse(x);
|
|
||||||
if (getWordBoundriesAt(pos, &wordStart, &wordLen))
|
|
||||||
{
|
|
||||||
const auto selectedWord = wstring_to_utf8str(getWText().substr(wordStart, wordLen));
|
|
||||||
|
|
||||||
if (!glggHunSpell->isSpelledRight(selectedWord))
|
|
||||||
{
|
|
||||||
//misspelled word here, and you have just right clicked on it!
|
|
||||||
|
|
||||||
for (const auto& word : glggHunSpell->getSuggestionList(selectedWord))
|
|
||||||
{
|
|
||||||
menu->addChild(new LLMenuItemCallGL(word, spell_correct, nullptr, this));
|
|
||||||
}
|
|
||||||
menu->addChild(new LLMenuItemCallGL("Add Word", spell_add, nullptr, this));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const std::string showstr("Show Misspellings"), hidestr("Hide Misspellings");
|
|
||||||
bool show = !glggHunSpell->getSpellCheckHighlight();
|
|
||||||
auto word = show ? showstr : hidestr;
|
|
||||||
if (!menu->hasChild(word))
|
|
||||||
{
|
|
||||||
menu->addChild(new LLMenuItemCallGL(word, spell_show, nullptr, show ? &show : nullptr));
|
|
||||||
if (auto child = menu->getChild<LLView>(show ? hidestr : showstr, false, false))
|
|
||||||
menu->removeChild(child);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
mLastContextMenuX = x;
|
|
||||||
menu->buildDrawLabels();
|
|
||||||
menu->updateParent(LLMenuGL::sMenuContainer);
|
|
||||||
LLMenuGL::showPopup(this, menu, x, y);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// spell_check="true" in xui
|
||||||
|
if (!mReadOnly && mSpellCheckable)
|
||||||
|
{
|
||||||
|
constexpr auto spell_sep = "Spell Check Sep";
|
||||||
|
// Remove everything after the separator if we added it, because menus don't autodie yet.
|
||||||
|
for (auto menu_end = menu->end(), menu_it = menu->find(menu->findChild<LLMenuItemGL>(spell_sep)); menu_it != menu_end; ++menu_it)
|
||||||
|
menu->removeChild(*menu_it);
|
||||||
|
menu->addSeparator(spell_sep);
|
||||||
|
|
||||||
|
// search for word matches
|
||||||
|
S32 wordStart = 0;
|
||||||
|
S32 wordLen = 0;
|
||||||
|
S32 pos = calculateCursorFromMouse(x);
|
||||||
|
if (getWordBoundriesAt(pos, &wordStart, &wordLen))
|
||||||
|
{
|
||||||
|
const auto selectedWord = wstring_to_utf8str(getWText().substr(wordStart, wordLen));
|
||||||
|
|
||||||
|
if (!glggHunSpell->isSpelledRight(selectedWord))
|
||||||
|
{
|
||||||
|
//misspelled word here, and you have just right clicked on it!
|
||||||
|
|
||||||
|
for (const auto& word : glggHunSpell->getSuggestionList(selectedWord))
|
||||||
|
{
|
||||||
|
menu->addChild(new LLMenuItemCallGL(word, spell_correct, nullptr, this));
|
||||||
|
}
|
||||||
|
menu->addChild(new LLMenuItemCallGL("Add Word", spell_add, nullptr, this));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool show = !glggHunSpell->getSpellCheckHighlight();
|
||||||
|
menu->addChild(new LLMenuItemCallGL(show ? "Show Misspellings" : "Hide Misspellings", spell_show, nullptr, show ? menu : nullptr));
|
||||||
|
}
|
||||||
|
|
||||||
|
mLastContextMenuX = x;
|
||||||
|
menu->buildDrawLabels();
|
||||||
|
menu->updateParent(LLMenuGL::sMenuContainer);
|
||||||
|
LLMenuGL::showPopup(this, menu, x, y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -692,16 +692,17 @@ BOOL LLMenuItemSeparatorGL::handleHover(S32 x, S32 y, MASK mask)
|
|||||||
// This class represents a vertical separator.
|
// This class represents a vertical separator.
|
||||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
class LLMenuItemVerticalSeparatorGL
|
class LLMenuItemVerticalSeparatorGL final
|
||||||
: public LLMenuItemSeparatorGL
|
: public LLMenuItemSeparatorGL
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LLMenuItemVerticalSeparatorGL( void );
|
LLMenuItemVerticalSeparatorGL(const std::string& name = LLStringUtil::null);
|
||||||
|
|
||||||
BOOL handleMouseDown(S32 x, S32 y, MASK mask) override { return FALSE; }
|
BOOL handleMouseDown(S32 x, S32 y, MASK mask) override { return FALSE; }
|
||||||
};
|
};
|
||||||
|
|
||||||
LLMenuItemVerticalSeparatorGL::LLMenuItemVerticalSeparatorGL( void )
|
LLMenuItemVerticalSeparatorGL::LLMenuItemVerticalSeparatorGL(const std::string& name)
|
||||||
|
: LLMenuItemSeparatorGL(name)
|
||||||
{
|
{
|
||||||
setLabel( VERTICAL_SEPARATOR_LABEL );
|
setLabel( VERTICAL_SEPARATOR_LABEL );
|
||||||
}
|
}
|
||||||
@@ -826,15 +827,15 @@ U32 LLMenuItemTearOffGL::getNominalHeight( void ) const
|
|||||||
// This class represents a blank, non-functioning item.
|
// This class represents a blank, non-functioning item.
|
||||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
class LLMenuItemBlankGL : public LLMenuItemGL
|
class LLMenuItemBlankGL final : public LLMenuItemGL
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LLMenuItemBlankGL( void ) : LLMenuItemGL( LLStringUtil::null, LLStringUtil::null )
|
LLMenuItemBlankGL(const std::string& name = LLStringUtil::null) : LLMenuItemGL(name, LLStringUtil::null)
|
||||||
{
|
{
|
||||||
setEnabled(FALSE);
|
setEnabled(FALSE);
|
||||||
}
|
}
|
||||||
virtual void onCommit( void ) {}
|
void onCommit() override {}
|
||||||
virtual void draw( void ) {}
|
void draw() override {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -3193,7 +3194,7 @@ void LLMenuGL::insert(S32 position, LLView* ctrl, bool arrange /*= true*/)
|
|||||||
std::advance(position_iter, position);
|
std::advance(position_iter, position);
|
||||||
insert(position_iter, item, arrange);
|
insert(position_iter, item, arrange);
|
||||||
}
|
}
|
||||||
void LLMenuGL::insert(item_list_t::iterator position_iter, LLMenuItemGL* item, bool arrange /*= true*/)
|
void LLMenuGL::insert(item_list_t::const_iterator position_iter, LLMenuItemGL* item, bool arrange /*= true*/)
|
||||||
{
|
{
|
||||||
mItems.insert(position_iter, item);
|
mItems.insert(position_iter, item);
|
||||||
LLUICtrl::addChild(item);
|
LLUICtrl::addChild(item);
|
||||||
@@ -3243,9 +3244,9 @@ BOOL LLMenuGL::append( LLMenuItemGL* item )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// add a separator to this menu
|
// add a separator to this menu
|
||||||
BOOL LLMenuGL::addSeparator()
|
BOOL LLMenuGL::addSeparator(const std::string& name)
|
||||||
{
|
{
|
||||||
LLMenuItemGL* separator = new LLMenuItemSeparatorGL();
|
LLMenuItemGL* separator = new LLMenuItemSeparatorGL(name);
|
||||||
return addChild(separator);
|
return addChild(separator);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3332,11 +3333,6 @@ void LLMenuGL::setTornOff(BOOL torn_off)
|
|||||||
mTornOff = torn_off;
|
mTornOff = torn_off;
|
||||||
}
|
}
|
||||||
|
|
||||||
U32 LLMenuGL::getItemCount()
|
|
||||||
{
|
|
||||||
return mItems.size();
|
|
||||||
}
|
|
||||||
|
|
||||||
LLMenuItemGL* LLMenuGL::getItem(S32 number)
|
LLMenuItemGL* LLMenuGL::getItem(S32 number)
|
||||||
{
|
{
|
||||||
if (number >= 0 && number < (S32)mItems.size())
|
if (number >= 0 && number < (S32)mItems.size())
|
||||||
@@ -4197,10 +4193,10 @@ S32 LLMenuBarGL::getRightmostMenuEdge()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// add a vertical separator to this menu
|
// add a vertical separator to this menu
|
||||||
BOOL LLMenuBarGL::addSeparator()
|
BOOL LLMenuBarGL::addSeparator(const std::string& name)
|
||||||
{
|
{
|
||||||
LLMenuItemGL* separator = new LLMenuItemVerticalSeparatorGL();
|
LLMenuItemGL* separator = new LLMenuItemVerticalSeparatorGL(name);
|
||||||
return append( separator );
|
return append(separator);
|
||||||
}
|
}
|
||||||
|
|
||||||
// add a menu - this will create a drop down menu.
|
// add a menu - this will create a drop down menu.
|
||||||
@@ -5361,9 +5357,9 @@ BOOL LLPieMenu::append(LLMenuItemGL *item)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// virtual
|
// virtual
|
||||||
BOOL LLPieMenu::addSeparator()
|
BOOL LLPieMenu::addSeparator(const std::string& name)
|
||||||
{
|
{
|
||||||
return append( new LLMenuItemBlankGL() );
|
return append(new LLMenuItemBlankGL(name));
|
||||||
}
|
}
|
||||||
|
|
||||||
// virtual
|
// virtual
|
||||||
|
|||||||
@@ -490,7 +490,7 @@ public:
|
|||||||
void setCanTearOff(BOOL tear_off);
|
void setCanTearOff(BOOL tear_off);
|
||||||
|
|
||||||
// add a separator to this menu
|
// add a separator to this menu
|
||||||
virtual BOOL addSeparator();
|
virtual BOOL addSeparator(const std::string& name = LLStringUtil::null);
|
||||||
|
|
||||||
// for branching menu items, bring sub menus up to root level of menu hierarchy
|
// for branching menu items, bring sub menus up to root level of menu hierarchy
|
||||||
virtual void updateParent( LLView* parentp );
|
virtual void updateParent( LLView* parentp );
|
||||||
@@ -530,13 +530,22 @@ public:
|
|||||||
|
|
||||||
// add new item at position
|
// add new item at position
|
||||||
void insert(S32 begin, LLView* ctrl, bool arrange = true);
|
void insert(S32 begin, LLView* ctrl, bool arrange = true);
|
||||||
void insert(std::list<LLMenuItemGL*>::iterator position_iter, LLMenuItemGL* item, bool arrange = true);
|
typedef std::list<LLMenuItemGL*> item_list_t;
|
||||||
|
void insert(item_list_t::const_iterator position_iter, LLMenuItemGL* item, bool arrange = true);
|
||||||
|
|
||||||
// find an item's position
|
// find an item's position
|
||||||
std::list<LLMenuItemGL*>::iterator find(LLMenuItemGL* item) { return std::find(mItems.begin(), mItems.end(), item); }
|
item_list_t::const_iterator find(LLMenuItemGL* item) const { return std::find(mItems.begin(), mItems.end(), item); }
|
||||||
|
|
||||||
|
// end of items, for use with other members that return an iterator
|
||||||
|
item_list_t::const_iterator end() const { return mItems.cend(); }
|
||||||
|
|
||||||
|
// get list of items
|
||||||
|
const item_list_t& getItems() const { return mItems; }
|
||||||
|
|
||||||
|
// number of menu items
|
||||||
|
item_list_t::size_type LLMenuGL::getItemCount() const { return mItems.size(); }
|
||||||
|
|
||||||
void setItemLastSelected(LLMenuItemGL* item); // must be in menu
|
void setItemLastSelected(LLMenuItemGL* item); // must be in menu
|
||||||
U32 getItemCount(); // number of menu items
|
|
||||||
LLMenuItemGL* getItem(S32 number); // 0 = first item
|
LLMenuItemGL* getItem(S32 number); // 0 = first item
|
||||||
LLMenuItemGL* getHighlightedItem();
|
LLMenuItemGL* getHighlightedItem();
|
||||||
|
|
||||||
@@ -591,9 +600,8 @@ public:
|
|||||||
virtual BOOL appendMenu( LLMenuGL* menu );
|
virtual BOOL appendMenu( LLMenuGL* menu );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// TODO: create accessor methods for these?
|
|
||||||
typedef std::list< LLMenuItemGL* > item_list_t;
|
|
||||||
item_list_t mItems;
|
item_list_t mItems;
|
||||||
|
// TODO: create accessor methods for these?
|
||||||
LLMenuItemGL*mFirstVisibleItem;
|
LLMenuItemGL*mFirstVisibleItem;
|
||||||
LLMenuItemGL *mArrowUpItem, *mArrowDownItem;
|
LLMenuItemGL *mArrowUpItem, *mArrowDownItem;
|
||||||
|
|
||||||
@@ -764,7 +772,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
virtual BOOL append(LLMenuItemGL* item);
|
virtual BOOL append(LLMenuItemGL* item);
|
||||||
public:
|
public:
|
||||||
virtual BOOL addSeparator();
|
virtual BOOL addSeparator(const std::string& name = LLStringUtil::null) override final;
|
||||||
|
|
||||||
virtual void arrange( void );
|
virtual void arrange( void );
|
||||||
|
|
||||||
@@ -844,7 +852,7 @@ public:
|
|||||||
/*virtual*/ BOOL jumpKeysActive();
|
/*virtual*/ BOOL jumpKeysActive();
|
||||||
|
|
||||||
// add a vertical separator to this menu
|
// add a vertical separator to this menu
|
||||||
virtual BOOL addSeparator();
|
virtual BOOL addSeparator(const std::string& name = LLStringUtil::null) override final;
|
||||||
|
|
||||||
// LLView Functionality
|
// LLView Functionality
|
||||||
virtual BOOL handleHover( S32 x, S32 y, MASK mask );
|
virtual BOOL handleHover( S32 x, S32 y, MASK mask );
|
||||||
|
|||||||
@@ -1532,18 +1532,18 @@ if (WINDOWS)
|
|||||||
endif (ADDRESS_SIZE EQUAL 64)
|
endif (ADDRESS_SIZE EQUAL 64)
|
||||||
|
|
||||||
if (USE_FMODSTUDIO)
|
if (USE_FMODSTUDIO)
|
||||||
if (WORD_SIZE EQUAL 64)
|
if (ADDRESS_SIZE EQUAL 64)
|
||||||
list(APPEND COPY_INPUT_DEPENDENCIES
|
list(APPEND COPY_INPUT_DEPENDENCIES
|
||||||
${SHARED_LIB_STAGING_DIR}/Release/fmod64.dll
|
${SHARED_LIB_STAGING_DIR}/Release/fmod64.dll
|
||||||
${SHARED_LIB_STAGING_DIR}/RelWithDebInfo/fmod64.dll
|
${SHARED_LIB_STAGING_DIR}/RelWithDebInfo/fmod64.dll
|
||||||
${SHARED_LIB_STAGING_DIR}/Debug/fmodL64.dll
|
${SHARED_LIB_STAGING_DIR}/Debug/fmodL64.dll
|
||||||
)
|
)
|
||||||
else (WORD_SIZE EQUAL 64)
|
else (ADDRESS_SIZE EQUAL 64)
|
||||||
list(APPEND COPY_INPUT_DEPENDENCIES
|
list(APPEND COPY_INPUT_DEPENDENCIES
|
||||||
${SHARED_LIB_STAGING_DIR}/Release/fmod.dll
|
${SHARED_LIB_STAGING_DIR}/Release/fmod.dll
|
||||||
${SHARED_LIB_STAGING_DIR}/RelWithDebInfo/fmod.dll
|
${SHARED_LIB_STAGING_DIR}/RelWithDebInfo/fmod.dll
|
||||||
)
|
)
|
||||||
endif (WORD_SIZE EQUAL 64)
|
endif (ADDRESS_SIZE EQUAL 64)
|
||||||
endif (USE_FMODSTUDIO)
|
endif (USE_FMODSTUDIO)
|
||||||
|
|
||||||
if(MSVC_IDE)
|
if(MSVC_IDE)
|
||||||
|
|||||||
@@ -10009,7 +10009,7 @@ void parse_simulator_features()
|
|||||||
LLMenuGL* menu = dynamic_cast<LLMenuGL*>(marker->getParent());
|
LLMenuGL* menu = dynamic_cast<LLMenuGL*>(marker->getParent());
|
||||||
if (!menu) continue;
|
if (!menu) continue;
|
||||||
|
|
||||||
std::list<LLMenuItemGL*>::iterator it = menu->find(marker);
|
auto it = menu->find(marker);
|
||||||
|
|
||||||
for (LLSD::map_iterator j = i->second.beginMap(); j != i->second.endMap(); ++j)
|
for (LLSD::map_iterator j = i->second.beginMap(); j != i->second.endMap(); ++j)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# -*- cmake -*-
|
# -*- cmake -*-
|
||||||
|
|
||||||
|
include(Variables)
|
||||||
|
|
||||||
add_subdirectory(base_basic)
|
add_subdirectory(base_basic)
|
||||||
add_subdirectory(base_media)
|
add_subdirectory(base_media)
|
||||||
add_subdirectory(filepicker)
|
add_subdirectory(filepicker)
|
||||||
|
|||||||
@@ -15,14 +15,6 @@ include_directories(
|
|||||||
|
|
||||||
### basic_plugin_base
|
### basic_plugin_base
|
||||||
|
|
||||||
if(NOT WORD_SIZE EQUAL 32)
|
|
||||||
if(WINDOWS)
|
|
||||||
# add_definitions(/FIXED:NO)
|
|
||||||
else(WINDOWS) # not windows therefore gcc LINUX and DARWIN
|
|
||||||
add_definitions(-fPIC)
|
|
||||||
endif(WINDOWS)
|
|
||||||
endif (NOT WORD_SIZE EQUAL 32)
|
|
||||||
|
|
||||||
set(basic_plugin_base_SOURCE_FILES
|
set(basic_plugin_base_SOURCE_FILES
|
||||||
basic_plugin_base.cpp
|
basic_plugin_base.cpp
|
||||||
)
|
)
|
||||||
@@ -42,6 +34,8 @@ add_library(basic_plugin_base
|
|||||||
${basic_plugin_base_SOURCE_FILES}
|
${basic_plugin_base_SOURCE_FILES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set_target_properties(basic_plugin_base PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
|
||||||
|
|
||||||
target_link_libraries(basic_plugin_base
|
target_link_libraries(basic_plugin_base
|
||||||
PUBLIC
|
PUBLIC
|
||||||
llcommon
|
llcommon
|
||||||
|
|||||||
@@ -29,14 +29,6 @@ include_directories(
|
|||||||
|
|
||||||
### media_plugin_base
|
### media_plugin_base
|
||||||
|
|
||||||
if(NOT WORD_SIZE EQUAL 32)
|
|
||||||
if(WINDOWS)
|
|
||||||
# add_definitions(/FIXED:NO)
|
|
||||||
else(WINDOWS) # not windows therefore gcc LINUX and DARWIN
|
|
||||||
add_definitions(-fPIC)
|
|
||||||
endif(WINDOWS)
|
|
||||||
endif (NOT WORD_SIZE EQUAL 32)
|
|
||||||
|
|
||||||
set(media_plugin_base_SOURCE_FILES
|
set(media_plugin_base_SOURCE_FILES
|
||||||
media_plugin_base.cpp
|
media_plugin_base.cpp
|
||||||
)
|
)
|
||||||
@@ -56,6 +48,8 @@ add_library(media_plugin_base
|
|||||||
${media_plugin_base_SOURCE_FILES}
|
${media_plugin_base_SOURCE_FILES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set_target_properties(media_plugin_base PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
|
||||||
|
|
||||||
target_link_libraries(media_plugin_base
|
target_link_libraries(media_plugin_base
|
||||||
PUBLIC
|
PUBLIC
|
||||||
llcommon
|
llcommon
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
project(media_plugin_cef)
|
project(media_plugin_cef)
|
||||||
|
|
||||||
|
include(Boost)
|
||||||
include(00-Common)
|
include(00-Common)
|
||||||
include(LLCommon)
|
include(LLCommon)
|
||||||
include(LLImage)
|
include(LLImage)
|
||||||
@@ -14,6 +15,7 @@ include(PluginAPI)
|
|||||||
include(MediaPluginBase)
|
include(MediaPluginBase)
|
||||||
include(OpenGL)
|
include(OpenGL)
|
||||||
include(PulseAudio)
|
include(PulseAudio)
|
||||||
|
include(UI)
|
||||||
|
|
||||||
include(CEFPlugin)
|
include(CEFPlugin)
|
||||||
|
|
||||||
@@ -35,12 +37,6 @@ include_directories(SYSTEM
|
|||||||
|
|
||||||
### media_plugin_cef
|
### media_plugin_cef
|
||||||
|
|
||||||
if(NOT WORD_SIZE EQUAL 32)
|
|
||||||
if(NOT WINDOWS) # not windows therefore gcc LINUX and DARWIN
|
|
||||||
add_definitions(-fPIC)
|
|
||||||
endif(NOT WINDOWS)
|
|
||||||
endif(NOT WORD_SIZE EQUAL 32)
|
|
||||||
|
|
||||||
set(media_plugin_cef_SOURCE_FILES
|
set(media_plugin_cef_SOURCE_FILES
|
||||||
media_plugin_cef.cpp
|
media_plugin_cef.cpp
|
||||||
)
|
)
|
||||||
@@ -52,11 +48,10 @@ set(media_plugin_cef_HEADER_FILES
|
|||||||
set (media_plugin_cef_LINK_LIBRARIES
|
set (media_plugin_cef_LINK_LIBRARIES
|
||||||
${LLPLUGIN_LIBRARIES}
|
${LLPLUGIN_LIBRARIES}
|
||||||
${MEDIA_PLUGIN_BASE_LIBRARIES}
|
${MEDIA_PLUGIN_BASE_LIBRARIES}
|
||||||
${LLCOMMON_LIBRARIES}
|
|
||||||
${CEF_PLUGIN_LIBRARIES}
|
${CEF_PLUGIN_LIBRARIES}
|
||||||
|
${LLCOMMON_LIBRARIES}
|
||||||
${PLUGIN_API_WINDOWS_LIBRARIES})
|
${PLUGIN_API_WINDOWS_LIBRARIES})
|
||||||
|
|
||||||
|
|
||||||
# Select which VolumeCatcher implementation to use
|
# Select which VolumeCatcher implementation to use
|
||||||
if (LINUX)
|
if (LINUX)
|
||||||
if (PULSEAUDIO_FOUND)
|
if (PULSEAUDIO_FOUND)
|
||||||
@@ -89,11 +84,7 @@ add_library(media_plugin_cef
|
|||||||
${media_plugin_cef_SOURCE_FILES}
|
${media_plugin_cef_SOURCE_FILES}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(media_plugin_cef
|
set_target_properties(media_plugin_cef PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
|
||||||
${LLPLUGIN_LIBRARIES}
|
|
||||||
${MEDIA_PLUGIN_BASE_LIBRARIES}
|
|
||||||
${LLCOMMON_LIBRARIES}
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(media_plugin_cef
|
target_link_libraries(media_plugin_cef
|
||||||
${media_plugin_cef_LINK_LIBRARIES}
|
${media_plugin_cef_LINK_LIBRARIES}
|
||||||
|
|||||||
@@ -17,14 +17,6 @@ include_directories(
|
|||||||
|
|
||||||
### basic_plugin_example
|
### basic_plugin_example
|
||||||
|
|
||||||
if(NOT WORD_SIZE EQUAL 32)
|
|
||||||
if(WINDOWS)
|
|
||||||
# add_definitions(/FIXED:NO)
|
|
||||||
else(WINDOWS) # not windows therefore gcc LINUX and DARWIN
|
|
||||||
add_definitions(-fPIC)
|
|
||||||
endif(WINDOWS)
|
|
||||||
endif (NOT WORD_SIZE EQUAL 32)
|
|
||||||
|
|
||||||
set(basic_plugin_example_SOURCE_FILES
|
set(basic_plugin_example_SOURCE_FILES
|
||||||
basic_plugin_example.cpp
|
basic_plugin_example.cpp
|
||||||
)
|
)
|
||||||
@@ -34,13 +26,9 @@ add_library(basic_plugin_example
|
|||||||
${basic_plugin_example_SOURCE_FILES}
|
${basic_plugin_example_SOURCE_FILES}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(basic_plugin_example
|
set_target_properties(basic_plugin_example PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
|
||||||
${LLPLUGIN_LIBRARIES}
|
|
||||||
${LLCOMMON_LIBRARIES}
|
|
||||||
${BASIC_PLUGIN_BASE_LIBRARIES}
|
|
||||||
)
|
|
||||||
|
|
||||||
add_dependencies(basic_plugin_example
|
target_link_libraries(basic_plugin_example
|
||||||
${LLPLUGIN_LIBRARIES}
|
${LLPLUGIN_LIBRARIES}
|
||||||
${LLCOMMON_LIBRARIES}
|
${LLCOMMON_LIBRARIES}
|
||||||
${BASIC_PLUGIN_BASE_LIBRARIES}
|
${BASIC_PLUGIN_BASE_LIBRARIES}
|
||||||
|
|||||||
@@ -28,14 +28,6 @@ include_directories(
|
|||||||
|
|
||||||
### media_plugin_example
|
### media_plugin_example
|
||||||
|
|
||||||
if(NOT WORD_SIZE EQUAL 32)
|
|
||||||
if(WINDOWS)
|
|
||||||
# add_definitions(/FIXED:NO)
|
|
||||||
else(WINDOWS) # not windows therefore gcc LINUX and DARWIN
|
|
||||||
add_definitions(-fPIC)
|
|
||||||
endif(WINDOWS)
|
|
||||||
endif (NOT WORD_SIZE EQUAL 32)
|
|
||||||
|
|
||||||
set(media_plugin_example_SOURCE_FILES
|
set(media_plugin_example_SOURCE_FILES
|
||||||
media_plugin_example.cpp
|
media_plugin_example.cpp
|
||||||
)
|
)
|
||||||
@@ -45,6 +37,8 @@ add_library(media_plugin_example
|
|||||||
${media_plugin_example_SOURCE_FILES}
|
${media_plugin_example_SOURCE_FILES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set_target_properties(media_plugin_example PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
|
||||||
|
|
||||||
target_link_libraries(media_plugin_example
|
target_link_libraries(media_plugin_example
|
||||||
${LLPLUGIN_LIBRARIES}
|
${LLPLUGIN_LIBRARIES}
|
||||||
${MEDIA_PLUGIN_BASE_LIBRARIES}
|
${MEDIA_PLUGIN_BASE_LIBRARIES}
|
||||||
@@ -53,12 +47,6 @@ target_link_libraries(media_plugin_example
|
|||||||
${PLUGIN_API_WINDOWS_LIBRARIES}
|
${PLUGIN_API_WINDOWS_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(media_plugin_example
|
|
||||||
${LLPLUGIN_LIBRARIES}
|
|
||||||
${MEDIA_PLUGIN_BASE_LIBRARIES}
|
|
||||||
${LLCOMMON_LIBRARIES}
|
|
||||||
)
|
|
||||||
|
|
||||||
if (WINDOWS)
|
if (WINDOWS)
|
||||||
set_target_properties(
|
set_target_properties(
|
||||||
media_plugin_example
|
media_plugin_example
|
||||||
|
|||||||
@@ -23,14 +23,6 @@ include_directories(
|
|||||||
|
|
||||||
### basic_plugin_filepicker
|
### basic_plugin_filepicker
|
||||||
|
|
||||||
if(NOT WORD_SIZE EQUAL 32)
|
|
||||||
if(WINDOWS)
|
|
||||||
# add_definitions(/FIXED:NO)
|
|
||||||
else(WINDOWS) # not windows therefore gcc LINUX and DARWIN
|
|
||||||
add_definitions(-fPIC)
|
|
||||||
endif(WINDOWS)
|
|
||||||
endif (NOT WORD_SIZE EQUAL 32)
|
|
||||||
|
|
||||||
set(basic_plugin_filepicker_SOURCE_FILES
|
set(basic_plugin_filepicker_SOURCE_FILES
|
||||||
basic_plugin_filepicker.cpp
|
basic_plugin_filepicker.cpp
|
||||||
legacy.cpp
|
legacy.cpp
|
||||||
@@ -71,6 +63,8 @@ if (DARWIN)
|
|||||||
set(OSX_FILE_LIBRARIES ${APPKIT_LIBRARY} ${CARBON_LIBRARY} ${IOKIT_LIBRARY})
|
set(OSX_FILE_LIBRARIES ${APPKIT_LIBRARY} ${CARBON_LIBRARY} ${IOKIT_LIBRARY})
|
||||||
endif (DARWIN)
|
endif (DARWIN)
|
||||||
|
|
||||||
|
set_target_properties(basic_plugin_filepicker PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
|
||||||
|
|
||||||
target_link_libraries(basic_plugin_filepicker
|
target_link_libraries(basic_plugin_filepicker
|
||||||
${LLPLUGIN_LIBRARIES}
|
${LLPLUGIN_LIBRARIES}
|
||||||
${LLCOMMON_LIBRARIES}
|
${LLCOMMON_LIBRARIES}
|
||||||
@@ -80,12 +74,6 @@ target_link_libraries(basic_plugin_filepicker
|
|||||||
${OSX_FILE_LIBRARIES}
|
${OSX_FILE_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(basic_plugin_filepicker
|
|
||||||
${LLPLUGIN_LIBRARIES}
|
|
||||||
${LLCOMMON_LIBRARIES}
|
|
||||||
${BASIC_PLUGIN_BASE_LIBRARIES}
|
|
||||||
)
|
|
||||||
|
|
||||||
if (WINDOWS)
|
if (WINDOWS)
|
||||||
set_target_properties(
|
set_target_properties(
|
||||||
basic_plugin_filepicker
|
basic_plugin_filepicker
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ include(Linking)
|
|||||||
include(PluginAPI)
|
include(PluginAPI)
|
||||||
include(MediaPluginBase)
|
include(MediaPluginBase)
|
||||||
include(FindOpenGL)
|
include(FindOpenGL)
|
||||||
|
include(Boost)
|
||||||
|
|
||||||
include(GStreamer010Plugin)
|
include(GStreamer010Plugin)
|
||||||
|
|
||||||
@@ -45,6 +46,8 @@ add_library(media_plugin_gstreamer010
|
|||||||
${media_plugin_gstreamer010_SOURCE_FILES}
|
${media_plugin_gstreamer010_SOURCE_FILES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set_target_properties(media_plugin_gstreamer010 PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
|
||||||
|
|
||||||
target_link_libraries(media_plugin_gstreamer010
|
target_link_libraries(media_plugin_gstreamer010
|
||||||
${LLPLUGIN_LIBRARIES}
|
${LLPLUGIN_LIBRARIES}
|
||||||
${MEDIA_PLUGIN_BASE_LIBRARIES}
|
${MEDIA_PLUGIN_BASE_LIBRARIES}
|
||||||
@@ -53,9 +56,3 @@ target_link_libraries(media_plugin_gstreamer010
|
|||||||
${GSTREAMER010_LIBRARIES}
|
${GSTREAMER010_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(media_plugin_gstreamer010
|
|
||||||
${LLPLUGIN_LIBRARIES}
|
|
||||||
${MEDIA_PLUGIN_BASE_LIBRARIES}
|
|
||||||
${LLCOMMON_LIBRARIES}
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user