meson: rename included C source files to .c.inc
commit139c1837db7eaee53e1c441629b5bcc159e1deb0
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 4 Feb 2020 11:41:01 +0000 (4 12:41 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Aug 2020 10:18:30 +0000 (21 06:18 -0400)
treec677e659b182e1a5df1d7a928c7a7e1afb921b3a
parent243af0225ab37c642d73e4002b233af728119f72
meson: rename included C source files to .c.inc

With Makefiles that have automatically generated dependencies, you
generated includes are set as dependencies of the Makefile, so that they
are built before everything else and they are available when first
building the .c files.

Alternatively you can use a fine-grained dependency, e.g.

        target/arm/translate.o: target/arm/decode-neon-shared.inc.c

With Meson you have only one choice and it is a third option, namely
"build at the beginning of the corresponding target"; the way you
express it is to list the includes in the sources of that target.

The problem is that Meson decides if something is a source vs. a
generated include by looking at the extension: '.c', '.cc', '.m', '.C'
are sources, while everything else is considered an include---including
'.inc.c'.

Use '.c.inc' to avoid this, as it is consistent with our other convention
of using '.rst.inc' for included reStructuredText files.  The editorconfig
file is adjusted.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
99 files changed:
.editorconfig
.gitignore
Makefile
accel/tcg/atomic_common.c.inc [moved from accel/tcg/atomic_common.inc.c with 100% similarity]
accel/tcg/cputlb.c
accel/tcg/user-exec.c
contrib/gitdm/filetypes.txt
exec.c
fpu/softfloat-specialize.c.inc [moved from fpu/softfloat-specialize.inc.c with 100% similarity]
fpu/softfloat.c
include/tcg/tcg.h
memory_ldst.c.inc [moved from memory_ldst.inc.c with 100% similarity]
scripts/clean-includes
target/arm/Makefile.objs
target/arm/translate-neon.c.inc [moved from target/arm/translate-neon.inc.c with 99% similarity]
target/arm/translate-sve.c
target/arm/translate-vfp.c.inc [moved from target/arm/translate-vfp.inc.c with 99% similarity]
target/arm/translate.c
target/avr/Makefile.objs
target/avr/disas.c
target/avr/translate.c
target/cris/translate.c
target/cris/translate_v10.c.inc [moved from target/cris/translate_v10.inc.c with 100% similarity]
target/hppa/Makefile.objs
target/hppa/translate.c
target/mips/translate.c
target/mips/translate_init.c.inc [moved from target/mips/translate_init.inc.c with 100% similarity]
target/openrisc/Makefile.objs
target/openrisc/disas.c
target/openrisc/translate.c
target/ppc/int_helper.c
target/ppc/mfrom_table.c.inc [moved from target/ppc/mfrom_table.inc.c with 100% similarity]
target/ppc/translate.c
target/ppc/translate/dfp-impl.c.inc [moved from target/ppc/translate/dfp-impl.inc.c with 100% similarity]
target/ppc/translate/dfp-ops.c.inc [moved from target/ppc/translate/dfp-ops.inc.c with 100% similarity]
target/ppc/translate/fp-impl.c.inc [moved from target/ppc/translate/fp-impl.inc.c with 100% similarity]
target/ppc/translate/fp-ops.c.inc [moved from target/ppc/translate/fp-ops.inc.c with 100% similarity]
target/ppc/translate/spe-impl.c.inc [moved from target/ppc/translate/spe-impl.inc.c with 100% similarity]
target/ppc/translate/spe-ops.c.inc [moved from target/ppc/translate/spe-ops.inc.c with 100% similarity]
target/ppc/translate/vmx-impl.c.inc [moved from target/ppc/translate/vmx-impl.inc.c with 100% similarity]
target/ppc/translate/vmx-ops.c.inc [moved from target/ppc/translate/vmx-ops.inc.c with 100% similarity]
target/ppc/translate/vsx-impl.c.inc [moved from target/ppc/translate/vsx-impl.inc.c with 100% similarity]
target/ppc/translate/vsx-ops.c.inc [moved from target/ppc/translate/vsx-ops.inc.c with 100% similarity]
target/ppc/translate_init.c.inc [moved from target/ppc/translate_init.inc.c with 100% similarity]
target/riscv/Makefile.objs
target/riscv/insn_trans/trans_privileged.c.inc [moved from target/riscv/insn_trans/trans_privileged.inc.c with 100% similarity]
target/riscv/insn_trans/trans_rva.c.inc [moved from target/riscv/insn_trans/trans_rva.inc.c with 100% similarity]
target/riscv/insn_trans/trans_rvd.c.inc [moved from target/riscv/insn_trans/trans_rvd.inc.c with 100% similarity]
target/riscv/insn_trans/trans_rvf.c.inc [moved from target/riscv/insn_trans/trans_rvf.inc.c with 100% similarity]
target/riscv/insn_trans/trans_rvh.c.inc [moved from target/riscv/insn_trans/trans_rvh.inc.c with 100% similarity]
target/riscv/insn_trans/trans_rvi.c.inc [moved from target/riscv/insn_trans/trans_rvi.inc.c with 100% similarity]
target/riscv/insn_trans/trans_rvm.c.inc [moved from target/riscv/insn_trans/trans_rvm.inc.c with 100% similarity]
target/riscv/insn_trans/trans_rvv.c.inc [moved from target/riscv/insn_trans/trans_rvv.inc.c with 100% similarity]
target/riscv/translate.c
target/rx/Makefile.objs
target/rx/disas.c
target/rx/translate.c
target/s390x/translate.c
target/s390x/translate_vx.c.inc [moved from target/s390x/translate_vx.inc.c with 100% similarity]
target/xtensa/core-dc232b.c
target/xtensa/core-dc232b/gdb-config.c.inc [moved from target/xtensa/core-dc232b/gdb-config.inc.c with 100% similarity]
target/xtensa/core-dc232b/xtensa-modules.c.inc [moved from target/xtensa/core-dc232b/xtensa-modules.inc.c with 100% similarity]
target/xtensa/core-dc233c.c
target/xtensa/core-dc233c/gdb-config.c.inc [moved from target/xtensa/core-dc233c/gdb-config.inc.c with 100% similarity]
target/xtensa/core-dc233c/xtensa-modules.c.inc [moved from target/xtensa/core-dc233c/xtensa-modules.inc.c with 100% similarity]
target/xtensa/core-de212.c
target/xtensa/core-de212/gdb-config.c.inc [moved from target/xtensa/core-de212/gdb-config.inc.c with 100% similarity]
target/xtensa/core-de212/xtensa-modules.c.inc [moved from target/xtensa/core-de212/xtensa-modules.inc.c with 100% similarity]
target/xtensa/core-fsf.c
target/xtensa/core-fsf/xtensa-modules.c.inc [moved from target/xtensa/core-fsf/xtensa-modules.inc.c with 100% similarity]
target/xtensa/core-sample_controller.c
target/xtensa/core-sample_controller/gdb-config.c.inc [moved from target/xtensa/core-sample_controller/gdb-config.inc.c with 100% similarity]
target/xtensa/core-sample_controller/xtensa-modules.c.inc [moved from target/xtensa/core-sample_controller/xtensa-modules.inc.c with 100% similarity]
target/xtensa/core-test_kc705_be.c
target/xtensa/core-test_kc705_be/gdb-config.c.inc [moved from target/xtensa/core-test_kc705_be/gdb-config.inc.c with 100% similarity]
target/xtensa/core-test_kc705_be/xtensa-modules.c.inc [moved from target/xtensa/core-test_kc705_be/xtensa-modules.inc.c with 100% similarity]
target/xtensa/core-test_mmuhifi_c3.c
target/xtensa/core-test_mmuhifi_c3/gdb-config.c.inc [moved from target/xtensa/core-test_mmuhifi_c3/gdb-config.inc.c with 100% similarity]
target/xtensa/core-test_mmuhifi_c3/xtensa-modules.c.inc [moved from target/xtensa/core-test_mmuhifi_c3/xtensa-modules.inc.c with 100% similarity]
target/xtensa/import_core.sh
tcg/README
tcg/aarch64/tcg-target.c.inc [moved from tcg/aarch64/tcg-target.inc.c with 99% similarity]
tcg/arm/tcg-target.c.inc [moved from tcg/arm/tcg-target.inc.c with 99% similarity]
tcg/i386/tcg-target.c.inc [moved from tcg/i386/tcg-target.inc.c with 99% similarity]
tcg/mips/tcg-target.c.inc [moved from tcg/mips/tcg-target.inc.c with 99% similarity]
tcg/ppc/tcg-target.c.inc [moved from tcg/ppc/tcg-target.inc.c with 99% similarity]
tcg/riscv/tcg-target.c.inc [moved from tcg/riscv/tcg-target.inc.c with 99% similarity]
tcg/s390/tcg-target.c.inc [moved from tcg/s390/tcg-target.inc.c with 99% similarity]
tcg/sparc/tcg-target.c.inc [moved from tcg/sparc/tcg-target.inc.c with 99% similarity]
tcg/tcg-ldst.c.inc [moved from tcg/tcg-ldst.inc.c with 100% similarity]
tcg/tcg-pool.c.inc [moved from tcg/tcg-pool.inc.c with 99% similarity]
tcg/tcg.c
tcg/tci/README
tcg/tci/tcg-target.c.inc [moved from tcg/tci/tcg-target.inc.c with 100% similarity]
tests/fp/fp-test.c
tests/fp/wrap.c.inc [moved from tests/fp/wrap.inc.c with 100% similarity]
ui/input-keymap.c
ui/vnc-enc-zrle.c
ui/vnc-enc-zrle.c.inc [moved from ui/vnc-enc-zrle.inc.c with 100% similarity]