meson.build 877 Bytes
Newer Older
Salamandar's avatar
Salamandar committed
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 38 39 40 41 42 43 44 45 46

libgimpmath_sources_introspectable = files(
  'gimpmatrix.c',
  'gimpvector.c',
)

libgimpmath_sources = [
  libgimpmath_sources_introspectable,
]

libgimpmath_headers_introspectable = files(
  'gimpmathtypes.h',
  'gimpmatrix.h',
  'gimpvector.h',
)

libgimpmath_headers = [
  libgimpmath_headers_introspectable,
  'gimpmath.h',
]

libgimpmath_introspectable = [
  libgimpmath_sources_introspectable,
  libgimpmath_headers_introspectable,
]


libgimpmath = library('gimpmath-' + gimp_api_version,
  libgimpmath_sources,
  include_directories: rootInclude,
  dependencies: [
    glib, gobject, math,
  ],
  c_args: [ '-DG_LOG_DOMAIN="LibGimpMath"', '-DGIMP_MATH_COMPILATION', ],
  link_with: [
    libgimpbase,
  ],
  vs_module_defs: 'gimpmath.def',
  install: true,
  version: so_version,
)

install_headers(
  libgimpmath_headers,
  subdir: gimp_api_name / 'libgimpmath',
)