project(
  'mcompile', 'c', 'cpp',
  version: files('../../../VERSION.md'),
  default_options: ['cpp_std=c++17'],
  license: 'MIT',
  meson_version: '>=1.0',
)

gtk = dependency('gtk+-3.0', version: '>= 2.4')
xkb = dependency('xkbcommon')

deps = [gtk, xkb]

subdir('resources')

cpp_files = files(
  'keymap.cpp',
  'deadkey.cpp',
  'mcompile.cpp',
  'mc_kmxfile.cpp',
  'mc_import_rules.cpp',
  '../../../common/cpp/km_u16.cpp',
  '../../../common/cpp/utfcodec.cpp',
)

comon_include_dir = [
  include_directories('../../../common/include')
]

mcompile = executable(
  'mcompile',
  sources: [cpp_files],
  dependencies: deps,
  include_directories : comon_include_dir
)
