summaryrefslogblamecommitdiff
path: root/src/lib/ector/gl/meson.build
blob: dad958c0fca0e263b09dc983499337601f320e50 (plain) (tree)




































                                                                                              

ector_src += files([
  'ector_renderer_gl_gradient_linear.c',
  'ector_renderer_gl_gradient_radial.c',
  'ector_renderer_gl_shape.c',
  'ector_renderer_gl.c',
  'ector_gl_buffer.c',
  'ector_gl_surface.c',
  'ector_gl_private.h',
  #'shader/ector_gl_shaders.x',
  'ector_gl_shader.c'
])

pub_eo_files = [
  'ector_gl_surface.eo',
  'ector_gl_buffer.eo',
  'ector_renderer_gl.eo',
  'ector_renderer_gl_shape.eo',
  'ector_renderer_gl_gradient_radial.eo',
  'ector_renderer_gl_gradient_linear.eo'
]

foreach eo_file : pub_eo_files
  pub_eo_file_target += custom_target('eolian_gen_' + eo_file,
    input : eo_file,
    output : [eo_file + '.h'],
    install : false,
    install_dir : dir_package_include,
    command : [eolian_gen, '-I', meson.current_source_dir(), eolian_include_directories,
                           '-o', 'h:' + join_paths(meson.current_build_dir(), eo_file + '.h'),
                           '-o', 'c:' + join_paths(meson.current_build_dir(), eo_file + '.c'),
                           '-gch', '@INPUT@'])
endforeach

install_data(pub_eo_files,
  install_dir: join_paths(eolian_include_dir, package_version_name)
)