meson.build 720 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

libgimpmodule_sources = files(
  'gimpmodule.c',
  'gimpmoduledb.c',
)

libgimpmodule_headers = files(
  'gimpmodule.h',
  'gimpmoduledb.h',
  'gimpmoduletypes.h',
)

libgimpmodule_introspectable = [
  libgimpmodule_sources,
  libgimpmodule_headers,
]

libgimpmodule = library('gimpmodule-' + gimp_api_version,
  libgimpmodule_sources,
  include_directories: rootInclude,
  dependencies: [
    gio, glib, gmodule,
  ],
  c_args: [ '-DG_LOG_DOMAIN="LibGimpModule"', '-DGIMP_MODULE_COMPILATION', ],
  link_with: [
    libgimpbase,
    libgimpconfig,
  ],
  vs_module_defs: 'gimpmodule.def',
  install: true,
  version: so_version,
)

install_headers(
  libgimpmodule_headers,
  subdir: gimp_api_name / 'libgimpmodule',
)