summaryrefslogtreecommitdiff
path: root/media-libs/implot/files/implot-meson.build
blob: 7bf1106663c38cf17224084531f9f46dba538e50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
project(
  'ImGui Plotting Library',
  'cpp',
  license : 'MIT',
  version : 'PV',
)

imgui_dep=dependency('imgui', required : true)

implot_inc = include_directories('.')
implot_src = files(
  'implot.cpp',
  'implot_items.cpp'
)

implot_lib = library(
  'implot',
  implot_src,
  dependencies: imgui_dep,
  version: meson.project_version(),
  install: true
)

pkg_mod = import('pkgconfig')
pkg_mod.generate(implot_lib,
  description : 'Immediate Mode Plotting'
)

install_headers(
    'implot.h',
    'implot_internal.h'
)

implot_dep = declare_dependency(
  link_with : implot_lib,
  include_directories : implot_inc
)