mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge pull request #2705 from pypeclub/feature/new_tvpaint_plugin_build
TVPaint: Plugin build without dependencies
This commit is contained in:
commit
ed94ab51c8
6 changed files with 20 additions and 6 deletions
|
|
@ -586,7 +586,10 @@ class BaseCommunicator:
|
|||
"additional_libraries"
|
||||
)
|
||||
additional_libs_folder = additional_libs_folder.replace("\\", "/")
|
||||
if additional_libs_folder not in os.environ["PATH"]:
|
||||
if (
|
||||
os.path.exists(additional_libs_folder)
|
||||
and additional_libs_folder not in os.environ["PATH"]
|
||||
):
|
||||
os.environ["PATH"] += (os.pathsep + additional_libs_folder)
|
||||
|
||||
# Path to TVPaint's plugins folder (where we want to add our plugin)
|
||||
|
|
|
|||
|
|
@ -10,31 +10,42 @@ set(IP_ENABLE_DOCTEST OFF)
|
|||
if(MSVC)
|
||||
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
# Define WIN64 or WIN32 for TVPaint SDK
|
||||
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
message("64bit")
|
||||
add_definitions(-DWIN64)
|
||||
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||
message("32bit")
|
||||
add_definitions(-DWIN32)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# TODO better options
|
||||
option(BOOST_ROOT "Path to root of Boost" "")
|
||||
|
||||
option(OPENSSL_INCLUDE "OpenSSL include path" "")
|
||||
option(OPENSSL_INCLUDE "OpenSSL include path" "")
|
||||
option(OPENSSL_LIB_DIR "OpenSSL lib path" "")
|
||||
|
||||
option(WEBSOCKETPP_INCLUDE "Websocketpp include path" "")
|
||||
option(WEBSOCKETPP_LIB_DIR "Websocketpp lib path" "")
|
||||
|
||||
option(JSONRPCPP_INCLUDE "Jsonrpcpp include path" "")
|
||||
|
||||
find_package(Boost 1.72.0 COMPONENTS random)
|
||||
# Use static boost libraries
|
||||
set(Boost_USE_STATIC_LIBS ON)
|
||||
|
||||
find_package(Boost COMPONENTS random chrono date_time regex REQUIRED)
|
||||
|
||||
include_directories(
|
||||
"${TVPAINT_SDK_INCLUDE}"
|
||||
"${OPENSSL_INCLUDE}"
|
||||
"${WEBSOCKETPP_INCLUDE}"
|
||||
"${JSONRPCPP_INCLUDE}"
|
||||
"${Boost_INCLUDE_DIR}"
|
||||
"${Boost_INCLUDE_DIRS}"
|
||||
)
|
||||
|
||||
link_directories(
|
||||
"${OPENSSL_LIB_DIR}"
|
||||
"${WEBSOCKETPP_LIB_DIR}"
|
||||
"${Boost_LIBRARY_DIRS}"
|
||||
)
|
||||
|
||||
add_library(jsonrpcpp INTERFACE)
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue