# Copyright 2022 Collabora Ltd.
# SPDX-License-Identifier: LGPL-2.1-or-later

custom_target(
  'flatpak.pp.bz2',
  input : ['flatpak.te', 'flatpak.fc'],
  output : ['flatpak.pp.bz2'],
  build_by_default : true,
  command : [
    files('build-selinux.sh'),
    '@OUTPUT0@',
    '@INPUT@',
  ],
  install : true,
  install_dir : get_option('datadir') / 'selinux' / 'packages',
)

install_data(
  'flatpak.if',
  install_dir : get_option('datadir') / 'selinux' / 'devel' / 'include' / 'distributed',
)
