meson/mesonbuild/compilers
Matthew Krupcale 45cc001a40 Add support for finding libraries in Fortran projects
* mesonbuild/compilers/c.py: Make the `find_library` method more generic by allowing the user to supply the `code` for compiling and linking.
 * mesonbuild/compilers/fortran.py: Use the methods inherited from `Compiler` base class where appropriate. Also reuse `CComiler` methods where applicable. This should be sufficient to get various compiler/linker arguments as well as to compile and link Fortran programs. This was tested with `gfortran` compiler, and while the other compilers ought to work for simple cases, their methods are primarily inherited from the base `FortranCompiler` class.
 * test cases/fortran/10 find library/gzip.f90: Fortran module with some basic Fortran wrapper interfaces to `gzopen`, `gzwrite`, and `gzclose` C `zlib` functions.
 * test cases/fortran/10 find library/main.f90: Fortran program using the `gzip` Fortran interface module to write some data to a gzip file.
 * test cases/fortran/10 find library/meson.build: Meson build file for this test case. This demonstrates the ability to link the Fortran program against an external library.
2018-05-21 23:17:02 +03:00
..
__init__.py Merged Arm CC support. 2018-04-16 23:02:09 +03:00
c.py Add support for finding libraries in Fortran projects 2018-05-21 23:17:02 +03:00
compilers.py Revert "Add macOS linker versioning information" 2018-05-09 23:11:15 +02:00
cpp.py Can combine D and C++ in a single target. Closes #3125. 2018-05-02 22:50:15 +03:00
cs.py Revert "Add macOS linker versioning information" 2018-05-09 23:11:15 +02:00
d.py Revert "Add macOS linker versioning information" 2018-05-09 23:11:15 +02:00
fortran.py Add support for finding libraries in Fortran projects 2018-05-21 23:17:02 +03:00
java.py Revert "Add macOS linker versioning information" 2018-05-09 23:11:15 +02:00
objc.py Add 'Compiler.get_display_language' 2017-06-26 14:15:44 -04:00
objcpp.py Add 'Compiler.get_display_language' 2017-06-26 14:15:44 -04:00
rust.py Add cross-compilation support for `rustc` 2018-01-29 15:47:05 -08:00
swift.py Split out languages from compilers.py 2017-06-23 00:42:41 +01:00
vala.py vala: Don't pass -o and -C at the same time 2018-04-11 21:42:42 +03:00