|
@@ -7,6 +7,7 @@ package("opencolorio")
|
|
add_urls("https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/refs/tags/$(version).tar.gz",
|
|
add_urls("https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/refs/tags/$(version).tar.gz",
|
|
"https://github.com/AcademySoftwareFoundation/OpenColorIO.git")
|
|
"https://github.com/AcademySoftwareFoundation/OpenColorIO.git")
|
|
add_versions("v2.1.0", "81fc7853a490031632a69c73716bc6ac271b395e2ba0e2587af9995c2b0efb5f")
|
|
add_versions("v2.1.0", "81fc7853a490031632a69c73716bc6ac271b395e2ba0e2587af9995c2b0efb5f")
|
|
|
|
+ add_versions("v2.1.1", "16ebc3e0f21f72dbe90fe60437eb864f4d4de9c255ef8e212f837824fc9b8d9c")
|
|
|
|
|
|
add_deps("cmake", "expat", "yaml-cpp", "imath", "pystring")
|
|
add_deps("cmake", "expat", "yaml-cpp", "imath", "pystring")
|
|
if is_plat("windows") then
|
|
if is_plat("windows") then
|
|
@@ -21,9 +22,6 @@ package("opencolorio")
|
|
end)
|
|
end)
|
|
|
|
|
|
on_install("windows", "macosx", "linux", function (package)
|
|
on_install("windows", "macosx", "linux", function (package)
|
|
- if package:is_plat("windows") and package:config("shared") and package:config("vs_runtime"):startswith("MT") then
|
|
|
|
- raise("Can not build this shared library against static runtime.")
|
|
|
|
- end
|
|
|
|
local configs = {"-DOCIO_BUILD_APPS=OFF", "-DOCIO_BUILD_OPENFX=OFF", "-DOCIO_BUILD_PYTHON=OFF", "-DOCIO_BUILD_DOCS=OFF", "-DOCIO_BUILD_TESTS=OFF", "-DOCIO_BUILD_GPU_TESTS=OFF"}
|
|
local configs = {"-DOCIO_BUILD_APPS=OFF", "-DOCIO_BUILD_OPENFX=OFF", "-DOCIO_BUILD_PYTHON=OFF", "-DOCIO_BUILD_DOCS=OFF", "-DOCIO_BUILD_TESTS=OFF", "-DOCIO_BUILD_GPU_TESTS=OFF"}
|
|
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
|
|
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
|
|
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
|
|
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
|