moduledir = join_paths(pkgdatadir, 'src')

configure_file(
  input: 'cartridges.in',
  output: 'cartridges',
  configuration: conf,
  install: true,
  install_dir: get_option('bindir')
)

install_subdir('importer', install_dir: moduledir)
install_subdir('importers', install_dir: moduledir)
install_subdir('utils', install_dir: moduledir)
install_subdir('store', install_dir: moduledir)
install_data(
  [
    'main.py',
    'window.py',
    'preferences.py',
    'details_window.py',
    'game.py',
    'game_cover.py',
    configure_file(
      input: 'shared.py.in',
      output: 'shared.py',
      configuration: conf
    )
  ],
  install_dir: moduledir
)