inc += include_directories('.')

headers = [ 
  'vertex_engine/application/application.hpp',
  'vertex_engine/event/event.hpp',

  'vertex_engine/glfw/context/context.hpp',
  'vertex_engine/glfw/glfw.hpp',

  'vertex_engine/gui/style/fonts.hpp',
  'vertex_engine/gui/style/icons.hpp',
  'vertex_engine/gui/style/style.hpp',
  'vertex_engine/gui/flags.hpp',

  'vertex_engine/layer/layer.hpp',

  'vertex_engine/utils/define.hpp',
  'vertex_engine/utils/include.hpp',
  'vertex_engine/utils/keycode.hpp',
  # 'vertex_engine/utils/time.hpp',
  'vertex_engine/utils/using.hpp',
  'vertex_engine/utils/var.hpp',
  'vertex_engine/utils/utils.hpp',

  'vertex_engine/opengl/buffer/buffer.hpp',
  'vertex_engine/opengl/shader_program/shader_program.hpp',
  'vertex_engine/opengl/opengl.hpp',

  'VE.hpp'
]

sources = [ 
  'vertex_engine/application/application.cpp',

  'vertex_engine/glfw/context/context.cpp',
  'vertex_engine/glfw/glfw.cpp',
  'vertex_engine/gui/gui.cpp',

  'vertex_engine/opengl/buffer/buffer.cpp',
  'vertex_engine/opengl/shader_program/shader_program.cpp'
]

lib = library(
  meson.project_name(), 
  include_directories : inc,
  sources: [headers, sources],
  dependencies : deps,
  cpp_args: args
)

vertex_engine_dep = declare_dependency(
  include_directories: inc, 
  link_with: lib, 
)

deps += vertex_engine_dep

