Skip to content
Snippets Groups Projects
  1. Mar 10, 2021
  2. Aug 21, 2020
    • Paolo Bonzini's avatar
      meson: rename included C source files to .c.inc · 139c1837
      Paolo Bonzini authored
      
      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: default avatarPaolo Bonzini <pbonzini@redhat.com>
      139c1837
  3. Jun 12, 2019
  4. May 28, 2019
  5. Nov 01, 2018
    • Marc-André Lureau's avatar
      editorconfig: set emacs mode · 1ad723e9
      Marc-André Lureau authored
      
      Some time ago, I proposed to use an (eval) in .dir-locals.el to set
      the mode for all json files and Makefile. Unfortunately, this isn't
      safe, and emacs will prompt the user, which isn't very friendly.
      
      Fortunately, editorconfig provides a special config key which does
      allow to set the emacs mode. Add a few missing entries and set the
      emacs mode.
      
      Update top comment to provide a short summary about the file and the
      IDE plugins while at it.
      
      Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
      Acked-by: default avatarMarkus Armbruster <armbru@redhat.com>
      1ad723e9
  6. Jul 20, 2017
Loading