diff --git a/share/cmake/modules/Findpystring.cmake b/share/cmake/modules/Findpystring.cmake index c46611547..50fc64635 100644 --- a/share/cmake/modules/Findpystring.cmake +++ b/share/cmake/modules/Findpystring.cmake @@ -28,11 +28,12 @@ if(NOT OCIO_INSTALL_EXT_PACKAGES STREQUAL ALL) # Find include directory find_path(pystring_INCLUDE_DIR NAMES - pystring/pystring.h + pystring.h HINTS ${pystring_ROOT} PATH_SUFFIXES include + include/pystring pystring/include ) diff --git a/share/cmake/modules/install/Installpystring.cmake b/share/cmake/modules/install/Installpystring.cmake index 3045e4fbc..48ca15229 100644 --- a/share/cmake/modules/install/Installpystring.cmake +++ b/share/cmake/modules/install/Installpystring.cmake @@ -38,7 +38,7 @@ if(NOT pystring_FOUND AND OCIO_INSTALL_EXT_PACKAGES AND NOT OCIO_INSTALL_EXT_PAC else() set(pystring_VERSION ${pystring_FIND_VERSION}) endif() - set(pystring_INCLUDE_DIR "${_EXT_DIST_ROOT}/${CMAKE_INSTALL_INCLUDEDIR}") + set(pystring_INCLUDE_DIR "${_EXT_DIST_ROOT}/${CMAKE_INSTALL_INCLUDEDIR}/pystring") set(pystring_LIBRARY "${_EXT_DIST_ROOT}/${CMAKE_INSTALL_LIBDIR}/${CMAKE_STATIC_LIBRARY_PREFIX}pystring${CMAKE_STATIC_LIBRARY_SUFFIX}") diff --git a/src/OpenColorIO/Config.cpp b/src/OpenColorIO/Config.cpp index ccfb134b4..6e848d5bd 100644 --- a/src/OpenColorIO/Config.cpp +++ b/src/OpenColorIO/Config.cpp @@ -12,6 +12,8 @@ #include #include +#include + #include #include "builtinconfigs/BuiltinConfigRegistry.h" @@ -34,7 +36,6 @@ #include "Platform.h" #include "PrivateTypes.h" #include "Processor.h" -#include "pystring/pystring.h" #include "transforms/FileTransform.h" #include "utils/StringUtils.h" #include "ViewingRules.h" diff --git a/src/OpenColorIO/Context.cpp b/src/OpenColorIO/Context.cpp index bb6fb07f3..3a1294be5 100644 --- a/src/OpenColorIO/Context.cpp +++ b/src/OpenColorIO/Context.cpp @@ -7,6 +7,8 @@ #include #include +#include + #include #include "ContextVariableUtils.h" @@ -15,7 +17,6 @@ #include "OCIOZArchive.h" #include "PathUtils.h" #include "PrivateTypes.h" -#include "pystring/pystring.h" #include "utils/StringUtils.h" namespace OCIO_NAMESPACE diff --git a/src/OpenColorIO/OCIOYaml.cpp b/src/OpenColorIO/OCIOYaml.cpp index 62cbb0d00..e62964349 100644 --- a/src/OpenColorIO/OCIOYaml.cpp +++ b/src/OpenColorIO/OCIOYaml.cpp @@ -4,6 +4,8 @@ #include #include +#include + #include #include "Display.h" @@ -19,7 +21,6 @@ #include "ParseUtils.h" #include "PathUtils.h" #include "Platform.h" -#include "pystring/pystring.h" #include "utils/StringUtils.h" #include "ViewingRules.h" #include "yaml-cpp/yaml.h" diff --git a/src/OpenColorIO/OCIOZArchive.cpp b/src/OpenColorIO/OCIOZArchive.cpp index 24d836e95..0f8989a1c 100644 --- a/src/OpenColorIO/OCIOZArchive.cpp +++ b/src/OpenColorIO/OCIOZArchive.cpp @@ -8,10 +8,12 @@ #include #include +#include + #include + #include "Mutex.h" #include "Platform.h" -#include "pystring/pystring.h" #include "utils/StringUtils.h" #include "transforms/FileTransform.h" diff --git a/src/OpenColorIO/Op.cpp b/src/OpenColorIO/Op.cpp index e1bd564ff..81dfe9867 100755 --- a/src/OpenColorIO/Op.cpp +++ b/src/OpenColorIO/Op.cpp @@ -4,6 +4,8 @@ #include #include +#include + #include #include "Logging.h" @@ -20,7 +22,6 @@ #include "ops/lut1d/Lut1DOp.h" #include "ops/lut3d/Lut3DOp.h" #include "ops/range/RangeOp.h" -#include "pystring/pystring.h" namespace OCIO_NAMESPACE { diff --git a/src/OpenColorIO/PathUtils.cpp b/src/OpenColorIO/PathUtils.cpp index 9dc8c6b74..bd9fb1135 100644 --- a/src/OpenColorIO/PathUtils.cpp +++ b/src/OpenColorIO/PathUtils.cpp @@ -5,12 +5,13 @@ #include #include +#include + #include #include "Mutex.h" #include "PathUtils.h" #include "Platform.h" -#include "pystring/pystring.h" #include "utils/StringUtils.h" #include "OCIOZArchive.h" @@ -218,4 +219,3 @@ int ParseColorSpaceFromString(const Config & config, const char * str) } } // namespace OCIO_NAMESPACE - diff --git a/src/OpenColorIO/fileformats/FileFormatCTF.cpp b/src/OpenColorIO/fileformats/FileFormatCTF.cpp index ebed326c9..c9ada57cd 100644 --- a/src/OpenColorIO/fileformats/FileFormatCTF.cpp +++ b/src/OpenColorIO/fileformats/FileFormatCTF.cpp @@ -6,6 +6,8 @@ #include #include +#include + #include #include "expat.h" @@ -23,7 +25,6 @@ #include "OpBuilders.h" #include "ops/noop/NoOps.h" #include "Platform.h" -#include "pystring/pystring.h" #include "TransformBuilder.h" #include "transforms/FileTransform.h" #include "utils/StringUtils.h" diff --git a/src/OpenColorIO/fileformats/FileFormatDiscreet1DL.cpp b/src/OpenColorIO/fileformats/FileFormatDiscreet1DL.cpp index a52bc728f..6a76d968d 100755 --- a/src/OpenColorIO/fileformats/FileFormatDiscreet1DL.cpp +++ b/src/OpenColorIO/fileformats/FileFormatDiscreet1DL.cpp @@ -8,6 +8,8 @@ #include #include +#include + #include #include "BitDepthUtils.h" @@ -16,7 +18,6 @@ #include "ops/lut1d/Lut1DOp.h" #include "ops/lut3d/Lut3DOp.h" #include "ParseUtils.h" -#include "pystring/pystring.h" #include "Platform.h" #include "transforms/FileTransform.h" #include "utils/StringUtils.h" @@ -771,4 +772,3 @@ FileFormat * CreateFileFormatDiscreet1DL() } } // namespace OCIO_NAMESPACE - diff --git a/src/OpenColorIO/fileformats/FileFormatICC.cpp b/src/OpenColorIO/fileformats/FileFormatICC.cpp index 1fcfd9adc..476810112 100755 --- a/src/OpenColorIO/fileformats/FileFormatICC.cpp +++ b/src/OpenColorIO/fileformats/FileFormatICC.cpp @@ -5,6 +5,8 @@ #include #include +#include + #include #include "Logging.h" @@ -15,7 +17,6 @@ #include "ops/matrix/MatrixOp.h" #include "ops/range/RangeOp.h" #include "Platform.h" -#include "pystring/pystring.h" #include "transforms/FileTransform.h" diff --git a/src/OpenColorIO/fileformats/FileFormatIridasLook.cpp b/src/OpenColorIO/fileformats/FileFormatIridasLook.cpp index 7402efd09..0ba209a90 100755 --- a/src/OpenColorIO/fileformats/FileFormatIridasLook.cpp +++ b/src/OpenColorIO/fileformats/FileFormatIridasLook.cpp @@ -5,6 +5,8 @@ #include #include +#include + #include #include "expat.h" @@ -13,7 +15,6 @@ #include "ops/lut3d/Lut3DOp.h" #include "ParseUtils.h" #include "Platform.h" -#include "pystring/pystring.h" #include "transforms/FileTransform.h" #include "utils/StringUtils.h" #include "utils/NumberUtils.h" @@ -579,4 +580,3 @@ FileFormat * CreateFileFormatIridasLook() } } // namespace OCIO_NAMESPACE - diff --git a/src/OpenColorIO/transforms/FileTransform.cpp b/src/OpenColorIO/transforms/FileTransform.cpp index 4fd4d5d47..9aeae8df4 100755 --- a/src/OpenColorIO/transforms/FileTransform.cpp +++ b/src/OpenColorIO/transforms/FileTransform.cpp @@ -9,6 +9,8 @@ #include #include +#include + #include #include "Caching.h" @@ -19,7 +21,6 @@ #include "ops/noop/NoOps.h" #include "PathUtils.h" #include "Platform.h" -#include "pystring/pystring.h" #include "utils/StringUtils.h" namespace OCIO_NAMESPACE diff --git a/tests/cpu/ColorSpace_tests.cpp b/tests/cpu/ColorSpace_tests.cpp index 8c37c3797..7d86b6a04 100644 --- a/tests/cpu/ColorSpace_tests.cpp +++ b/tests/cpu/ColorSpace_tests.cpp @@ -4,9 +4,10 @@ #include +#include + #include "ColorSpace.cpp" -#include #include "testutils/UnitTest.h" #include "UnitTestUtils.h" diff --git a/tests/cpu/Config_tests.cpp b/tests/cpu/Config_tests.cpp index 59d1472db..d5f05e931 100644 --- a/tests/cpu/Config_tests.cpp +++ b/tests/cpu/Config_tests.cpp @@ -4,10 +4,10 @@ #include +#include + #include "Config.cpp" -#include "utils/StringUtils.h" -#include #include "testutils/UnitTest.h" #include "UnitTestLogUtils.h" #include "UnitTestUtils.h" diff --git a/tests/cpu/Context_tests.cpp b/tests/cpu/Context_tests.cpp index f78bad8d9..c8d4052ff 100644 --- a/tests/cpu/Context_tests.cpp +++ b/tests/cpu/Context_tests.cpp @@ -4,11 +4,12 @@ #include +#include + #include "Context.cpp" #include "PathUtils.h" #include "Platform.h" -#include "pystring/pystring.h" #include "testutils/UnitTest.h" namespace OCIO = OCIO_NAMESPACE; @@ -171,5 +172,3 @@ OCIO_ADD_TEST(Context, string_vars) OCIO_CHECK_EQUAL(std::string("var3"), ctx1->getStringVarNameByIndex(2)); OCIO_CHECK_EQUAL(std::string("val3"), ctx1->getStringVarByIndex(2)); } - - diff --git a/tests/cpu/UnitTestUtils.h b/tests/cpu/UnitTestUtils.h index 4c65b0f52..bbdac3554 100644 --- a/tests/cpu/UnitTestUtils.h +++ b/tests/cpu/UnitTestUtils.h @@ -13,12 +13,13 @@ # endif #endif +#include + #include #include "MathUtils.h" #include "Op.h" #include "Platform.h" -#include "pystring/pystring.h" #include "CPUInfoConfig.h" namespace OCIO_NAMESPACE diff --git a/vendor/openfx/OCIOUtils.cpp b/vendor/openfx/OCIOUtils.cpp index ca4490506..90f6e4252 100644 --- a/vendor/openfx/OCIOUtils.cpp +++ b/vendor/openfx/OCIOUtils.cpp @@ -8,8 +8,9 @@ namespace OCIO = OCIO_NAMESPACE; #include #include +#include + #include "ofxsLog.h" -#include "pystring/pystring.h" namespace {