Browse Source

add include-what-you-use target

audio_region_bpm_change_fix
Alexandros Theodotou 12 months ago
parent
commit
979bd51af3
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 20
      inc/gui/widgets/active_hardware_mb.h
  2. 15
      meson.build
  3. 1
      src/audio/kmeter_dsp.c
  4. 28
      src/audio/peak_dsp.c
  5. 6
      src/gui/widgets/active_hardware_mb.c
  6. 4
      src/gui/widgets/active_hardware_popover.c

20
inc/gui/widgets/active_hardware_mb.h

@ -1,21 +1,5 @@ @@ -1,21 +1,5 @@
/*
* Copyright (C) 2019-2021 Alexandros Theodotou <alex at zrythm dot org>
*
* This file is part of Zrythm
*
* Zrythm is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Zrythm is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// SPDX-FileCopyrightText: © 2019-2021 Alexandros Theodotou <alex@zrythm.org>
// SPDX-License-Identifier: LicenseRef-ZrythmLicense
/**
* @file

15
meson.build

@ -80,6 +80,8 @@ get_vst_path_bin = find_program ( @@ -80,6 +80,8 @@ get_vst_path_bin = find_program (
manpage_completions_run_sh = find_program (
'ext/sh-manpage-completions/run.sh')
xmllint = find_program ('xmllint')
iwyu_tool = find_program (
'iwyu_tool', 'iwyu-tool', required: false)
# --- Set common variables ---
@ -1415,6 +1417,19 @@ meson.add_install_script ( @@ -1415,6 +1417,19 @@ meson.add_install_script (
meson.add_dist_script (
'scripts/meson_dist.sh')
# --- Run targets ---
if iwyu_tool.found ()
run_target (
'iwyu',
command: [
iwyu_tool, '-p', meson.project_build_root (),
'../src',
])
endif
# --- Summary ---
summary ({
'Program name': get_option ('program_name'),
'Debug': get_option ('debug'),

1
src/audio/kmeter_dsp.c

@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
*/
#include <math.h>
#include <stdbool.h>
#include <stdlib.h>
#include "audio/kmeter_dsp.h"

28
src/audio/peak_dsp.c

@ -1,24 +1,12 @@ @@ -1,24 +1,12 @@
/*
* Copyright (C) 2020 Alexandros Theodotou <alex at zrythm dot org>
*
* This file is part of Zrythm
*
* Zrythm is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Zrythm is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Zrythm. If not, see <https://www.gnu.org/licenses/>.
* SPDX-FileCopyrightText: © 2020 Alexandros Theodotou <alex@zrythm.org>
* SPDX-License-Identifier: LicenseRef-ZrythmLicense
*
* This file incorporates work covered by the following copyright and
* permission notice:
*
* ---
*
* Copyright (C) 2008-2011 Fons Adriaensen <fons@linuxaudio.org>
* Copyright (C) 2013 Robin Gareus <robin@gareus.org>
*
@ -33,11 +21,15 @@ @@ -33,11 +21,15 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* ---
*/
#include <math.h>
#include <stdbool.h>
#include <stdlib.h>
#include "audio/peak_dsp.h"

6
src/gui/widgets/active_hardware_mb.c

@ -3,12 +3,6 @@ @@ -3,12 +3,6 @@
#include "gui/widgets/active_hardware_mb.h"
#include "gui/widgets/active_hardware_popover.h"
#include "settings/settings.h"
#include "utils/flags.h"
#include "utils/gtk.h"
#include "utils/resources.h"
#include "zrythm.h"
#include "zrythm_app.h"
#include <glib/gi18n.h>
#include <gtk/gtk.h>

4
src/gui/widgets/active_hardware_popover.c

@ -3,18 +3,16 @@ @@ -3,18 +3,16 @@
#include <string.h>
#include "audio/engine.h"
#include "audio/channel.h"
#include "audio/ext_port.h"
#include "audio/hardware_processor.h"
#include "gui/widgets/active_hardware_mb.h"
#include "gui/widgets/active_hardware_popover.h"
#include "project.h"
#include "settings/settings.h"
#include "utils/gtk.h"
#include "utils/resources.h"
#include "utils/string.h"
#include "zrythm.h"
#include "zrythm_app.h"
#include <gtk/gtk.h>

Loading…
Cancel
Save