# tools/extra_defs_gen

# Input: glibmm_build_dep, giomm_build_dep, glibmm_api_version,
#        glibmm_libversion, glibmm_pcname
# Output: -

glibmm_generate_extra_defs_library = library(
  'glibmm_generate_extra_defs-' + glibmm_api_version,
  'generate_extra_defs.cc',
  version: glibmm_libversion,
  cpp_args: '-DGLIBMM_GEN_EXTRA_DEFS_BUILD',
  dependencies: glibmm_build_dep,
  install: true,
)

install_headers('generate_extra_defs.h', subdir: glibmm_pcname / 'glibmm_generate_extra_defs')

executable('generate_defs_glib', 'generate_defs_glib.cc',
  dependencies: glibmm_build_dep,
  link_with: glibmm_generate_extra_defs_library,
  install: false,
)

executable('generate_defs_gio', 'generate_defs_gio.cc',
  dependencies: giomm_build_dep,
  link_with: glibmm_generate_extra_defs_library,
  install: false,
)
