Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 485782 | Differences between
and this patch

Collapse All | Expand All

(-)docs/CMakeLists.txt.orig (-9 / +8 lines)
Lines 81-87 Link Here
81
ExtractRstCPP(${CMAKE_SOURCE_DIR}/export/OpenColorIO/OpenColorTypes.h developers/api/OpenColorTypes.rst)
81
ExtractRstCPP(${CMAKE_SOURCE_DIR}/export/OpenColorIO/OpenColorTypes.h developers/api/OpenColorTypes.rst)
82
82
83
add_custom_target(doc ALL
83
add_custom_target(doc ALL
84
    COMMAND PYTHONPATH=${PYTHONPATH} ${EXTDIST_BINPATH}/sphinx-build -b html . ${CMAKE_CURRENT_BINARY_DIR}/build-html
84
    COMMAND sphinx-build -b html . ${CMAKE_CURRENT_BINARY_DIR}/build-html
85
    DEPENDS
85
    DEPENDS
86
        OpenColorIO
86
        OpenColorIO
87
        PyOpenColorIO
87
        PyOpenColorIO
Lines 93-112 Link Here
93
    COMMENT "Building html docs"
93
    COMMENT "Building html docs"
94
    SOURCES ${DOCFILES})
94
    SOURCES ${DOCFILES})
95
95
96
# note: ExternalProject will not build when added to a add_custom_target this
97
# works around this problem. This seems to be fixed in the cmake ^HEAD
98
add_dependencies(doc Sphinx) 
99
100
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/build-html/
96
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/build-html/
101
        DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/OpenColorIO/html
97
        DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/$ENV{P}/html
102
        PATTERN .* EXCLUDE
98
        PATTERN .* EXCLUDE
103
)
99
)
104
100
101
if(OCIO_BUILD_PDF_DOCS)
102
105
find_package(LATEX)
103
find_package(LATEX)
106
if(PDFLATEX_COMPILER)
104
if(PDFLATEX_COMPILER)
107
    
105
    
108
    add_custom_target(latex
106
    add_custom_target(latex
109
        COMMAND PYTHONPATH=${PYTHONPATH} ${EXTDIST_BINPATH}/sphinx-build -b latex . ${CMAKE_CURRENT_BINARY_DIR}/build-latex
107
        COMMAND sphinx-build -b latex . ${CMAKE_CURRENT_BINARY_DIR}/build-latex
110
        DEPENDS
108
        DEPENDS
111
            OpenColorIO
109
            OpenColorIO
112
            ${CMAKE_BINARY_DIR}/docs/conf.py
110
            ${CMAKE_BINARY_DIR}/docs/conf.py
Lines 116-122 Link Here
116
            ${RSTDOC_OUTPUT}
114
            ${RSTDOC_OUTPUT}
117
        COMMENT "Building latex doc"
115
        COMMENT "Building latex doc"
118
        SOURCES ${DOCFILES})
116
        SOURCES ${DOCFILES})
119
    add_dependencies(latex Sphinx)
120
    
117
    
121
    add_custom_target(pdf ALL
118
    add_custom_target(pdf ALL
122
        COMMAND ${PDFLATEX_COMPILER} OpenColorIO.tex
119
        COMMAND ${PDFLATEX_COMPILER} OpenColorIO.tex
Lines 126-131 Link Here
126
    add_dependencies(pdf latex)
123
    add_dependencies(pdf latex)
127
    
124
    
128
    install(FILES ${CMAKE_CURRENT_BINARY_DIR}/build-latex/OpenColorIO.pdf
125
    install(FILES ${CMAKE_CURRENT_BINARY_DIR}/build-latex/OpenColorIO.pdf
129
            DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/OpenColorIO/)
126
            DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/$ENV{P}/)
130
    
127
    
131
endif()
128
endif()
129
130
endif()

Return to bug 485782