* Added OpenCL kernel for bokeh blur
[blender.git] / source / blender / nodes / CMakeLists.txt
index a789155bc5a809046b5cfbf6f75f10a623d59704..c637e3606f1a08300d895d0364684064f005a96b 100644 (file)
@@ -25,6 +25,7 @@
 
 set(INC 
        .
+       ../blenfont
        ../blenkernel
        ../blenlib
        ../blenloader
@@ -34,157 +35,191 @@ set(INC
        ../makesrna
        ../render/extern/include
        ../../../intern/guardedalloc
+       ../compositor
 )
 
 set(INC_SYS
        ${GLEW_INCLUDE_PATH}
+       intern
+       composite
+       shader
+       texture
 )
 
 set(SRC
-       intern/CMP_nodes/CMP_alphaOver.c
-       intern/CMP_nodes/CMP_bilateralblur.c
-       intern/CMP_nodes/CMP_blur.c
-       intern/CMP_nodes/CMP_brightness.c
-       intern/CMP_nodes/CMP_channelMatte.c
-       intern/CMP_nodes/CMP_chromaMatte.c
-       intern/CMP_nodes/CMP_colorMatte.c
-       intern/CMP_nodes/CMP_colorSpill.c
-       intern/CMP_nodes/CMP_colorbalance.c
-       intern/CMP_nodes/CMP_composite.c
-       intern/CMP_nodes/CMP_crop.c
-       intern/CMP_nodes/CMP_curves.c
-       intern/CMP_nodes/CMP_defocus.c
-       intern/CMP_nodes/CMP_diffMatte.c
-       intern/CMP_nodes/CMP_dilate.c
-       intern/CMP_nodes/CMP_directionalblur.c
-       intern/CMP_nodes/CMP_displace.c
-       intern/CMP_nodes/CMP_distanceMatte.c
-       intern/CMP_nodes/CMP_filter.c
-       intern/CMP_nodes/CMP_flip.c
-       intern/CMP_nodes/CMP_gamma.c
-       intern/CMP_nodes/CMP_glare.c
-       intern/CMP_nodes/CMP_hueSatVal.c
-       intern/CMP_nodes/CMP_huecorrect.c
-       intern/CMP_nodes/CMP_idMask.c
-       intern/CMP_nodes/CMP_image.c
-       intern/CMP_nodes/CMP_invert.c
-       intern/CMP_nodes/CMP_lensdist.c
-       intern/CMP_nodes/CMP_levels.c
-       intern/CMP_nodes/CMP_lummaMatte.c
-       intern/CMP_nodes/CMP_mapUV.c
-       intern/CMP_nodes/CMP_mapValue.c
-       intern/CMP_nodes/CMP_math.c
-       intern/CMP_nodes/CMP_mixrgb.c
-       intern/CMP_nodes/CMP_normal.c
-       intern/CMP_nodes/CMP_normalize.c
-       intern/CMP_nodes/CMP_outputFile.c
-       intern/CMP_nodes/CMP_premulkey.c
-       intern/CMP_nodes/CMP_rgb.c
-       intern/CMP_nodes/CMP_rotate.c
-       intern/CMP_nodes/CMP_scale.c
-       intern/CMP_nodes/CMP_sepcombHSVA.c
-       intern/CMP_nodes/CMP_sepcombRGBA.c
-       intern/CMP_nodes/CMP_sepcombYCCA.c
-       intern/CMP_nodes/CMP_sepcombYUVA.c
-       intern/CMP_nodes/CMP_setalpha.c
-       intern/CMP_nodes/CMP_splitViewer.c
-       intern/CMP_nodes/CMP_texture.c
-       intern/CMP_nodes/CMP_tonemap.c
-       intern/CMP_nodes/CMP_translate.c
-       intern/CMP_nodes/CMP_valToRgb.c
-       intern/CMP_nodes/CMP_value.c
-       intern/CMP_nodes/CMP_vecBlur.c
-       intern/CMP_nodes/CMP_viewer.c
-       intern/CMP_nodes/CMP_zcombine.c
-       intern/CMP_util.c
-       intern/SHD_nodes/SHD_camera.c
-       intern/SHD_nodes/SHD_curves.c
-       intern/SHD_nodes/SHD_dynamic.c
-       intern/SHD_nodes/SHD_geom.c
-       intern/SHD_nodes/SHD_hueSatVal.c
-       intern/SHD_nodes/SHD_invert.c
-       intern/SHD_nodes/SHD_mapping.c
-       intern/SHD_nodes/SHD_material.c
-       intern/SHD_nodes/SHD_math.c
-       intern/SHD_nodes/SHD_mixRgb.c
-       intern/SHD_nodes/SHD_normal.c
-       intern/SHD_nodes/SHD_output.c
-       intern/SHD_nodes/SHD_rgb.c
-       intern/SHD_nodes/SHD_sepcombRGB.c
-       intern/SHD_nodes/SHD_squeeze.c
-       intern/SHD_nodes/SHD_texture.c
-       intern/SHD_nodes/SHD_valToRgb.c
-       intern/SHD_nodes/SHD_value.c
-       intern/SHD_nodes/SHD_vectMath.c
-       intern/SHD_nodes/SHD_attribute.c
-       intern/SHD_nodes/SHD_background.c
-       intern/SHD_nodes/SHD_bsdf_anisotropic.c
-       intern/SHD_nodes/SHD_bsdf_diffuse.c
-       intern/SHD_nodes/SHD_bsdf_glossy.c
-       intern/SHD_nodes/SHD_bsdf_glass.c
-       intern/SHD_nodes/SHD_bsdf_translucent.c
-       intern/SHD_nodes/SHD_bsdf_transparent.c
-       intern/SHD_nodes/SHD_bsdf_velvet.c
-       intern/SHD_nodes/SHD_emission.c
-       intern/SHD_nodes/SHD_fresnel.c
-       intern/SHD_nodes/SHD_blend_weight.c
-       intern/SHD_nodes/SHD_geometry.c
-       intern/SHD_nodes/SHD_holdout.c
-       intern/SHD_nodes/SHD_light_path.c
-       intern/SHD_nodes/SHD_mix_shader.c
-       intern/SHD_nodes/SHD_add_shader.c
-       intern/SHD_nodes/SHD_output_lamp.c
-       intern/SHD_nodes/SHD_output_material.c
-       intern/SHD_nodes/SHD_output_texture.c
-       intern/SHD_nodes/SHD_output_world.c
-       intern/SHD_nodes/SHD_tex_blend.c
-       intern/SHD_nodes/SHD_tex_clouds.c
-       intern/SHD_nodes/SHD_tex_coord.c
-       intern/SHD_nodes/SHD_tex_distnoise.c
-       intern/SHD_nodes/SHD_tex_image.c
-       intern/SHD_nodes/SHD_tex_environment.c
-       intern/SHD_nodes/SHD_tex_magic.c
-       intern/SHD_nodes/SHD_tex_marble.c
-       intern/SHD_nodes/SHD_tex_musgrave.c
-       intern/SHD_nodes/SHD_tex_noise.c
-       intern/SHD_nodes/SHD_tex_sky.c
-       intern/SHD_nodes/SHD_tex_stucci.c
-       intern/SHD_nodes/SHD_tex_voronoi.c
-       intern/SHD_nodes/SHD_tex_wood.c
-       intern/SHD_util.c
-       intern/TEX_nodes/TEX_at.c
-       intern/TEX_nodes/TEX_bricks.c
-       intern/TEX_nodes/TEX_checker.c
-       intern/TEX_nodes/TEX_compose.c
-       intern/TEX_nodes/TEX_coord.c
-       intern/TEX_nodes/TEX_curves.c
-       intern/TEX_nodes/TEX_decompose.c
-       intern/TEX_nodes/TEX_distance.c
-       intern/TEX_nodes/TEX_hueSatVal.c
-       intern/TEX_nodes/TEX_image.c
-       intern/TEX_nodes/TEX_invert.c
-       intern/TEX_nodes/TEX_math.c
-       intern/TEX_nodes/TEX_mixRgb.c
-       intern/TEX_nodes/TEX_output.c
-       intern/TEX_nodes/TEX_proc.c
-       intern/TEX_nodes/TEX_rotate.c
-       intern/TEX_nodes/TEX_scale.c
-       intern/TEX_nodes/TEX_texture.c
-       intern/TEX_nodes/TEX_translate.c
-       intern/TEX_nodes/TEX_valToNor.c
-       intern/TEX_nodes/TEX_valToRgb.c
-       intern/TEX_nodes/TEX_viewer.c
-       intern/TEX_util.c
+       composite/nodes/node_composite_alphaOver.c
+       composite/nodes/node_composite_bilateralblur.c
+       composite/nodes/node_composite_blur.c
+       composite/nodes/node_composite_brightness.c
+       composite/nodes/node_composite_channelMatte.c
+       composite/nodes/node_composite_chromaMatte.c
+       composite/nodes/node_composite_colorMatte.c
+       composite/nodes/node_composite_colorSpill.c
+       composite/nodes/node_composite_colorbalance.c
+       composite/nodes/node_composite_common.c
+       composite/nodes/node_composite_composite.c
+       composite/nodes/node_composite_crop.c
+       composite/nodes/node_composite_curves.c
+       composite/nodes/node_composite_doubleEdgeMask.c
+       composite/nodes/node_composite_defocus.c
+       composite/nodes/node_composite_diffMatte.c
+       composite/nodes/node_composite_dilate.c
+       composite/nodes/node_composite_directionalblur.c
+       composite/nodes/node_composite_displace.c
+       composite/nodes/node_composite_distanceMatte.c
+       composite/nodes/node_composite_filter.c
+       composite/nodes/node_composite_flip.c
+       composite/nodes/node_composite_gamma.c
+       composite/nodes/node_composite_glare.c
+       composite/nodes/node_composite_hueSatVal.c
+       composite/nodes/node_composite_huecorrect.c
+       composite/nodes/node_composite_idMask.c
+       composite/nodes/node_composite_image.c
+       composite/nodes/node_composite_invert.c
+       composite/nodes/node_composite_lensdist.c
+       composite/nodes/node_composite_levels.c
+       composite/nodes/node_composite_lummaMatte.c
+       composite/nodes/node_composite_mapUV.c
+       composite/nodes/node_composite_mapValue.c
+       composite/nodes/node_composite_math.c
+       composite/nodes/node_composite_mask.c
+       composite/nodes/node_composite_mixrgb.c
+       composite/nodes/node_composite_movieclip.c
+       composite/nodes/node_composite_moviedistortion.c
+       composite/nodes/node_composite_normal.c
+       composite/nodes/node_composite_normalize.c
+       composite/nodes/node_composite_outputFile.c
+       composite/nodes/node_composite_premulkey.c
+       composite/nodes/node_composite_rgb.c
+       composite/nodes/node_composite_rotate.c
+       composite/nodes/node_composite_scale.c
+       composite/nodes/node_composite_sepcombHSVA.c
+       composite/nodes/node_composite_sepcombRGBA.c
+       composite/nodes/node_composite_sepcombYCCA.c
+       composite/nodes/node_composite_sepcombYUVA.c
+       composite/nodes/node_composite_setalpha.c
+       composite/nodes/node_composite_splitViewer.c
+       composite/nodes/node_composite_stabilize2d.c
+       composite/nodes/node_composite_texture.c
+       composite/nodes/node_composite_tonemap.c
+       composite/nodes/node_composite_transform.c
+       composite/nodes/node_composite_translate.c
+       composite/nodes/node_composite_valToRgb.c
+       composite/nodes/node_composite_value.c
+       composite/nodes/node_composite_vecBlur.c
+       composite/nodes/node_composite_viewer.c
+       composite/nodes/node_composite_zcombine.c
+       composite/nodes/node_composite_bokehblur.c
+       composite/nodes/node_composite_bokehimage.c
+       composite/nodes/node_composite_boxmask.c
+       composite/nodes/node_composite_ellipsemask.c
+       composite/nodes/node_composite_switch.c
+       composite/nodes/node_composite_colorcorrection.c
+       
+       composite/node_composite_tree.c
+       composite/node_composite_util.c
+
+       shader/nodes/node_shader_camera.c
+       shader/nodes/node_shader_common.c
+       shader/nodes/node_shader_curves.c
+       shader/nodes/node_shader_gamma.c
+       shader/nodes/node_shader_brightness.c
+       shader/nodes/node_shader_geom.c
+       shader/nodes/node_shader_hueSatVal.c
+       shader/nodes/node_shader_invert.c
+       shader/nodes/node_shader_mapping.c
+       shader/nodes/node_shader_material.c
+       shader/nodes/node_shader_math.c
+       shader/nodes/node_shader_mixRgb.c
+       shader/nodes/node_shader_normal.c
+       shader/nodes/node_shader_output.c
+       shader/nodes/node_shader_rgb.c
+       shader/nodes/node_shader_sepcombRGB.c
+       shader/nodes/node_shader_squeeze.c
+       shader/nodes/node_shader_texture.c
+       shader/nodes/node_shader_valToRgb.c
+       shader/nodes/node_shader_value.c
+       shader/nodes/node_shader_vectMath.c
+       shader/nodes/node_shader_attribute.c
+       shader/nodes/node_shader_background.c
+       # shader/nodes/node_shader_bsdf_anisotropic.c  # XXX, why not included?
+       shader/nodes/node_shader_bsdf_diffuse.c
+       shader/nodes/node_shader_bsdf_glossy.c
+       shader/nodes/node_shader_bsdf_glass.c
+       shader/nodes/node_shader_bsdf_translucent.c
+       shader/nodes/node_shader_bsdf_transparent.c
+       shader/nodes/node_shader_bsdf_velvet.c
+       shader/nodes/node_shader_emission.c
+       shader/nodes/node_shader_fresnel.c
+       shader/nodes/node_shader_layer_weight.c
+       shader/nodes/node_shader_geometry.c
+       shader/nodes/node_shader_holdout.c
+       shader/nodes/node_shader_volume_transparent.c
+       shader/nodes/node_shader_volume_isotropic.c
+       shader/nodes/node_shader_light_path.c
+       shader/nodes/node_shader_light_falloff.c
+       shader/nodes/node_shader_object_info.c
+       shader/nodes/node_shader_mix_shader.c
+       shader/nodes/node_shader_add_shader.c
+       shader/nodes/node_shader_output_lamp.c
+       shader/nodes/node_shader_output_material.c
+       shader/nodes/node_shader_output_world.c
+       shader/nodes/node_shader_tex_gradient.c
+       shader/nodes/node_shader_tex_coord.c
+       shader/nodes/node_shader_tex_environment.c
+       shader/nodes/node_shader_tex_image.c
+       shader/nodes/node_shader_tex_magic.c
+       shader/nodes/node_shader_tex_musgrave.c
+       shader/nodes/node_shader_tex_noise.c
+       shader/nodes/node_shader_tex_sky.c
+       shader/nodes/node_shader_tex_voronoi.c
+       shader/nodes/node_shader_tex_wave.c
+       shader/nodes/node_shader_tex_checker.c
+       shader/node_shader_tree.c
+       shader/node_shader_util.c
+
+       texture/nodes/node_texture_at.c
+       texture/nodes/node_texture_bricks.c
+       texture/nodes/node_texture_checker.c
+       texture/nodes/node_texture_common.c
+       texture/nodes/node_texture_compose.c
+       texture/nodes/node_texture_coord.c
+       texture/nodes/node_texture_curves.c
+       texture/nodes/node_texture_decompose.c
+       texture/nodes/node_texture_distance.c
+       texture/nodes/node_texture_hueSatVal.c
+       texture/nodes/node_texture_image.c
+       texture/nodes/node_texture_invert.c
+       texture/nodes/node_texture_math.c
+       texture/nodes/node_texture_mixRgb.c
+       texture/nodes/node_texture_output.c
+       texture/nodes/node_texture_proc.c
+       texture/nodes/node_texture_rotate.c
+       texture/nodes/node_texture_scale.c
+       texture/nodes/node_texture_texture.c
+       texture/nodes/node_texture_translate.c
+       texture/nodes/node_texture_valToNor.c
+       texture/nodes/node_texture_valToRgb.c
+       texture/nodes/node_texture_viewer.c
+       texture/node_texture_tree.c
+       texture/node_texture_util.c
+
        intern/node_util.c
+       intern/node_exec.c
+       intern/node_common.c
+       intern/node_socket.c
+
+       composite/node_composite_util.h
+       shader/node_shader_util.h
+       texture/node_texture_util.h
 
-       CMP_node.h
-       SHD_node.h
-       TEX_node.h
-       intern/CMP_util.h
-       intern/SHD_util.h
-       intern/TEX_util.h
+       NOD_composite.h
+       NOD_shader.h
+       NOD_texture.h
+       NOD_socket.h
        intern/node_util.h
-       intern/SHD_nodes/SHD_noise.h
+       intern/node_exec.h
+       intern/node_common.h
 )
 
 if(WITH_PYTHON)
@@ -197,4 +232,12 @@ if(WITH_PYTHON)
        add_definitions(-DWITH_PYTHON)
 endif()
 
+if(WITH_INTERNATIONAL)
+       add_definitions(-DWITH_INTERNATIONAL)
+endif()
+
+if(WITH_IMAGE_OPENEXR)
+       add_definitions(-DWITH_OPENEXR)
+endif()
+
 blender_add_lib(bf_nodes "${SRC}" "${INC}" "${INC_SYS}")