aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-09-29dependencies/curses: Add support for using the ncurses config toolsDylan Baker6-3/+44
These are mostly duplicated with pkg-config, but maybe someone has one but not another, and they're easy to turn on with the ConfigToolDependency.
2020-09-29dependency/misc: change lookup order for curses pkg-configDylan Baker1-1/+1
look for (in order): ncursesw, ncurses, curses.
2020-09-29docs/Dependencies Add missing curses documentationDylan Baker1-0/+10
2020-09-29dependencies/misc: Fix typing of curses_factoryDylan Baker1-3/+3
2020-09-29Merge pull request #7758 from dcbaker/submit/hdf5-factoryDylan Baker10-119/+206
dependencies/hdf5: Convert to a dependency_factory
2020-09-29Merge pull request #7762 from jon-turney/meson-exe-output-improveJussi Pakkanen5-25/+60
Improve the output for meson wrapped commands
2020-09-29compilers/VS: fix build to use optimization and debug flagsVili Väinölä3-27/+41
- Fixed using debug and optimization built-in options in MSVC. - Fixed that VS backend does not create pdb files in release mode. VS implicitly adds the debug fields if left out. - Fix that it is possible to add debug info with ninja backend with optimizations.
2020-09-29Merge pull request #7772 from xclaesse/deprecate-source-rootJussi Pakkanen8-9/+59
Deprecate meson.build_root() and meson.source_root()
2020-09-29Improve documentation about using shell in custom_target() [skip ci]Jon Turney2-4/+9
Add a note about the portability of using shell constructs in the custom_target() command.
2020-09-29Merge pull request #7794 from mensinda/cmTypingDaniel Mensinger9-373/+444
typing: CMake module
2020-09-28CODEOWNERS: don't use * [skip ci]Dylan Baker1-3/+3
strangely enough the syntax is: /foo/* (files in foo, but not in foo/dir/) /foo/ (files in foo and any subfolder of foo (recursively)
2020-09-28Add old style command to tutorial. Closes #7793. [skip ci]Jussi Pakkanen1-2/+13
2020-09-28Add meson.project_build/source_root() methodsXavier Claessens8-4/+47
2020-09-28windows: reduce chance of going over path limit in backend/vsPeter Harris1-4/+5
When building with vs2019 (not ninja), a path length error will be thrown if the path to a resource file is even remotely deep within the tree. This is largely because the target name includes the string "Windows resource for file 'full path'", which is then expanded twice (once for the .vcxproj itself, and once for IntDir) and added to the full path. When combined with the tiny path limits on Windows, it is easy to exceed path limits. This error is largely avoided by the ninja back-end. Unlike the vs back-end, the ninja back-end does not use target.get_id() as part of the project file path, nor does it use target.get_id() as part of get_target_private_dir(). Example error: error MSB4184: The expression "[MSBuild]::NormalizePath( C:\src\mesonbuild\Misc\FreeRDP-master\client\X11\xfreerdp\xfreerdp, f3f7317@@Windows resource for file 'Misc_FreeRDP-master_client_X11_xfreerdp_xfreerdp_xfreerdp.rc'@cus\, f3f7317@@Windows resource for file 'Misc_FreeRDP-master_client_X11_xfreerdp_xfreerdp_xfreerdp.rc'@cus. vcxproj.CopyComplete)" cannot be evaluated. Path: C:\src\mesonbuild\Misc\FreeRDP-master\client\X11\xfreerdp\xfreerdp\f3f7317 @@Windows resource for file 'Misc_FreeRDP-master_client_X11_xfreerdp_xfreerdp_xfreerdp.rc'@cus\f3f7317 @@Windows resource for file 'Misc_FreeRDP-master_client_X11_xfreerdp_xfreerdp_xfreerdp.rc'@cus. vcxproj.CopyComplete exceeds the OS max path limit. The fully qualified file name must be less than 260 characters.
2020-09-28typing: fully annotate cmake.interpreterDaniel Mensinger2-171/+199
2020-09-28typing: fully annotate cmake.traceparserDaniel Mensinger1-32/+45
2020-09-28typing: fully annotate cmake.generatorDaniel Mensinger1-1/+2
2020-09-28typing: fully annotate cmake.fileapiDaniel Mensinger1-10/+14
2020-09-28typing: fully annotate cmake.executorDaniel Mensinger2-36/+40
2020-09-27Fixes meson test timeout on windowsYonggang Luo1-2/+2
``` 2020-09-23T01:25:14.7849070Z 2020-09-23T01:25:14.7849592Z 1/5 Boost linktest TIMEOUT 30.16s 2020-09-23T01:25:14.7849811Z 2020-09-23T01:25:14.7850027Z --- command --- 2020-09-23T01:25:14.7850281Z 01:24:30 D:\a\1\s\b 125f976e40\linkedexe.exe 2020-09-23T01:25:14.7850561Z ------- 2020-09-23T01:25:14.7850693Z 2020-09-23T01:25:14.7850947Z 2/5 Boost UTF test TIMEOUT 31.15s 2020-09-23T01:25:14.7851141Z 2020-09-23T01:25:14.7851347Z --- command --- 2020-09-23T01:25:14.7851580Z 01:24:30 D:\a\1\s\b 125f976e40\utf.exe 2020-09-23T01:25:14.7851862Z --- stdout --- 2020-09-23T01:25:14.7852065Z Running 1 test case... 2020-09-23T01:25:14.7852441Z ``` Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
2020-09-27Merge pull request #7776 from dcbaker/submit/zsh-additionsJussi Pakkanen2-42/+255
Add most missing zsh completions
2020-09-27typing: fully annotate cmake.commonDaniel Mensinger2-42/+50
2020-09-27typing: fully annotate cmake.clientDaniel Mensinger1-35/+43
2020-09-27typing: add convinient option to clear the terminal to run_mypy.pyDaniel Mensinger1-0/+5
2020-09-27typing: fix indentation in run_mypy.pyDaniel Mensinger1-48/+48
2020-09-25tests/hdf5: work around some problemsDylan Baker1-5/+20
There are two cases that won't work (these are taken from fortran/9 cpp), using gfortran with a non-gcc compiler on windows, or using gfortran with apple clang. The latter is due to default search paths, which we can fix, but is out of scope for this MR.
2020-09-25dependencies/hdf5: Use the correct compilers for the machineDylan Baker3-6/+23
Instead of the default ones, this is especially important when cross compiling or when using compilers that aren't compatible with the default ones. squash! dependencies/hdf5: Use the actual system compilers
2020-09-25dependencies/hdf5: Convert to a dependency_factoryDylan Baker9-113/+168
Instead of a mega dependency that does everything, use a dependency factory for config-tool and pkg-config
2020-09-24environment: Pass defines to clang based ObjC[++] compilersDylan Baker1-1/+5
mypy noticed that we were passing [] (instead of a dict or None) to the ClangCompiler class in objc, which made me noticed that for C and C++ we set the defines, but not for ObjC and ObjC++
2020-09-24compilers/objcpp: add type annotationsDylan Baker2-14/+31
2020-09-24compilers/objc: Add type annotationsDylan Baker2-14/+28
2020-09-24compilers: Tell mypy that the compiler mixins are just thatDylan Baker16-178/+122
We do this by making the mixins inherit the Compiler class only when mypy is examining the code (using some clever inheritance shenanigans). This caught a bunch of issues, and also lets us delete a ton of code.
2020-09-24compilers: make is_cross part of the base Compiler classDylan Baker14-38/+36
Every class needs to set this, so it should be part of the base. For classes that require is_cross, the positional argument remains in their signature. For those that don't, they just allow the base class to set their value to it's default of False.
2020-09-24compilers: make sanity_check_impl a protected methodDylan Baker3-4/+4
It's an implementation detail after all
2020-09-24compilers: put name_string method in base compilerDylan Baker9-24/+4
Every language had the exact same implementation
2020-09-24run_mypy: compilers/c_function_attributes is already type safeDylan Baker1-0/+1
2020-09-24run_mypy: all of compilers/mixins is now type safeDylan Baker1-14/+1
2020-09-24compilers/mixins: make xc16 type safeDylan Baker2-2/+8
2020-09-24compilers/mixins: make visual studio type safeDylan Baker2-2/+22
2020-09-24compilers/mixins/pgi: Make type safeDylan Baker2-2/+12
2020-09-24compilers/mixins/islinker: Make type safeDylan Baker2-0/+5
2020-09-24compilers/mixins/intel: make type safeDylan Baker2-12/+23
2020-09-24compilers/mixins/intel: Use the has_func_attribute_extra_args functionDylan Baker2-1/+6
Instead of putting that extra argument in the base compiles() class
2020-09-24compilers/mixins/emscripten: make type safeDylan Baker2-4/+12
2020-09-24compilers/mixins/elbrus: make type safeDylan Baker2-1/+6
2020-09-24compilers/mixins: make compcert type safeDylan Baker2-2/+7
2020-09-24compilers/mixins/clang: Make type safeDylan Baker3-5/+25
2020-09-24compilers/mixings/gnu: make type safeDylan Baker2-11/+35
2020-09-24compilers/mixins/clike: fix mypy issuesDylan Baker7-152/+303
2020-09-24compilers/mixins/ccrx: make mypy safeDylan Baker2-1/+7