Cycles: remove developer docs, all moved to wiki now.
[blender.git] / intern / cycles / doc / CMakeLists.txt
1
2 INSTALL(DIRECTORY license DESTINATION ${CYCLES_INSTALL_PATH}/cycles PATTERN ".svn" EXCLUDE)
3
4 SET(doc_sources
5         index.html
6
7         reference/camera.html
8         reference/curve.html
9         reference/devices.html
10         reference/film.html
11         reference/index.html
12         reference/integrator.html
13         reference/interactive.html
14         reference/lamp.html
15         reference/mesh.html
16         reference/motion_blur.html
17         reference/particle.html
18         reference/subdivision.html
19         reference/world.html
20
21         reference/material/displacement.html
22         reference/material/index.html
23         reference/material/surface.html
24         reference/material/volume.html
25
26         reference/shader/background.html
27         reference/shader/bsdf.html
28         reference/shader/color_operations.html
29         reference/shader/custom.html
30         reference/shader/emission.html
31         reference/shader/image_textures.html
32         reference/shader/index.html
33         reference/shader/input.html
34         reference/shader/output.html
35         reference/shader/procedural_textures.html
36         reference/shader/vector_operations.html
37         reference/shader/volume.html
38         reference/shader/volume_textures.html)
39
40 SET(doc_extra
41         reference/camera_ortho.svg
42         reference/camera_persp.svg
43         reference/material/material.svg
44         reference/shader/bsdf.svg
45         style/style.css)
46
47 SET(doc_templates
48         templates/footer.html
49         templates/header.html
50         templates/nodes.html
51         templates/reference.html)
52
53 IF(WITH_CYCLES_DOCS)
54         MACRO(install_doc_file source_file html_file)
55                 GET_FILENAME_COMPONENT(subdir ${source_file} PATH)
56                 INSTALL(
57                         FILES ${html_file}
58                         DESTINATION ${CYCLES_INSTALL_PATH}/cycles/doc/${subdir})
59         ENDMACRO()
60
61         FOREACH(_file ${doc_sources})
62                 SET(source_file ${_file})
63                 SET(html_file ${CMAKE_CURRENT_BINARY_DIR}/${_file})
64                 ADD_CUSTOM_COMMAND(
65                         OUTPUT ${html_file} 
66                         COMMAND python generate.py ${source_file} ${html_file} ${CYCLES_VERSION}
67                         WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
68                         DEPENDS ${source_file} ${doc_templates} generate.py)
69                 LIST(APPEND html_files ${html_file})
70                 install_doc_file(${source_file} ${html_file})
71         ENDFOREACH()
72
73         FOREACH(_file ${doc_extra})
74                 install_doc_file(${_file} ${_file})
75         ENDFOREACH()
76
77         ADD_CUSTOM_TARGET(cycles_doc ALL DEPENDS ${html_files})
78 ENDIF()
79