Jussi Pakkanen
17bfbb99e5
Condense test dirs.
2018-07-31 19:22:24 +03:00
Jussi Pakkanen
2bc0f56b21
Write full directory name in files so script will change them.
2018-07-31 19:17:49 +03:00
Jussi Pakkanen
10a07ebf70
Add script to condense test directory names.
2018-07-31 19:17:49 +03:00
Tanu Kaskinen
a5d0a501fd
[skip ci] Typo fix in Build-options.md: "option" -> "description"
2018-07-31 19:12:18 +03:00
Jussi Pakkanen
b293f7bd2c
Replace long obsolete find_dep with dependency in docs. [skip ci]
2018-07-29 23:53:24 +03:00
TingPing
bd21987685
gnome: Fix building gir with asan again
...
asan must be first in ldflags and this order was lost in cb36add970
So this is the most simple solution of just putting it first in internal_ldflags
See https://github.com/mesonbuild/meson/issues/2117#issuecomment-408560838
2018-07-29 21:04:04 +03:00
Christoph Reiter
6b9fdfe67b
python.find_installation: only try to find python with the py launcher if it isn't in PATH
...
Meson tries to find the interpreter path through the "py" launcher on Windows in all
cases which breaks if meson is run under MSYS2 and an official CPython is installed as well.
MSYS2 Python doesn't install a py launcher which results in meson finding the system one instead
even though python2/python3 is in PATH.
Always check if the interpreter name is in PATH before falling back to checking the py launcher.
2018-07-27 18:10:13 +03:00
Rafael Ávila de Espíndola
941d2c273a
Move test from common to unit.
...
When I initially added the test the intention was to use it from
run_unittests.py only, but I placed it in the wrong directory.
2018-07-27 06:36:04 -07:00
Jussi Pakkanen
8c735069b3
Merge pull request #3898 from mesonbuild/vsinstall
...
Add install target to VS
2018-07-27 14:38:50 +03:00
Xavier Claessens
e7dcf5cf16
Warn for future keyword ( #3908 )
2018-07-27 14:31:54 +03:00
Rafael Ávila de Espíndola
c7360dd426
Make the rpath order deterministic. ( #3932 )
2018-07-25 19:40:54 +03:00
Xavier Claessens
10a1a39961
Merge pull request #3943 from xclaesse/auto-feature-default
...
UserFeatureOption: Default to 'auto' when no value specified
2018-07-25 11:14:35 -04:00
Nirbheek Chauhan
0ea21d7aea
Add a feature-new entry for UserFeatureOption
...
Since we can't detect it in meson_options.txt, detect it when the
option is used.
2018-07-25 08:02:49 -07:00
Xavier Claessens
5f9fda4acc
UserFeatureOption: Default to 'auto' when no value specified
...
Closes #3938 .
2018-07-25 09:55:16 -04:00
Igor Gnatenko
1515fca2d9
rpm: pass --auto-features=enabled [skip ci]
...
We really want to be explicit.
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2018-07-25 12:52:59 +02:00
Igor Gnatenko
88d1b8f9e7
rpm: use %{shrink…} [skip ci]
...
Make logs look better!
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2018-07-25 12:52:59 +02:00
Igor Gnatenko
99070beec4
rpm: use %set_build_flags [skip ci]
...
It has better name and should do the trick.
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2018-07-25 12:52:59 +02:00
Nirbheek Chauhan
9e8566a277
Print a useful error when a compiler is not found in the cross file
2018-07-24 18:54:52 -07:00
Rafael Ávila de Espíndola
1a27714f97
Make the dependency order deterministic. ( #3927 )
...
We were using sets to store the dependencies. Just switch to
OrderedSet.
Fixes #3922 .
2018-07-22 22:24:42 -07:00
Jussi Pakkanen
7bb5f82736
Added install target to VS. Closes #3841 .
2018-07-22 16:05:09 +03:00
Khem Raj
6fafbad6d5
mesonbuild: Recognise risc-v architecture
...
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-07-21 22:02:25 +03:00
Jussi Pakkanen
306fa07f62
Merge pull request #3893 from FFY00/master
...
Add dlang module (dub support)
2018-07-21 02:46:11 +03:00
Jussi Pakkanen
f67630d26c
Removed extra parentheses. [skip ci]
2018-07-20 18:40:58 +03:00
Rafael Ávila de Espíndola
aee9f58939
Handle transitive links to 'threads' dependencies. ( #3895 )
...
Meson already had code to propagate link dependencies from static
libraries to programs that use those static libraries.
Unfortunately, it was not handling the special cases of 'threads' and
'openmp' dependencies.
2018-07-19 01:24:59 +03:00
Jussi Pakkanen
f390a0a2f3
Merge pull request #3814 from behlec/configure-file-output
...
Check if calls to configure_file write to the same output file.
2018-07-19 01:17:34 +03:00
Jussi Pakkanen
b4c635a2e8
Remove long deprecated command scripts.
2018-07-19 01:15:17 +03:00
FFY00
0173b2457d
docs: fix dlang module documentation
2018-07-17 23:46:13 +01:00
Jussi Pakkanen
808d229c37
Moved install data file generation to base class.
2018-07-17 13:04:07 +03:00
FFY00
e39b6be670
dlang module: fix DubDependency - new compiler api
2018-07-16 15:32:42 +01:00
FFY00
6727af4e61
dlang module: allow all configuration types when generating dub.json
2018-07-16 12:39:29 +01:00
Christoph Behle
efba193872
Ignore vim *.swp files [skip ci]
2018-07-16 00:38:52 +03:00
Thomas Hindoe Paaboel Andersen
e2c36457c5
Avoid concatenating two options in list
...
'c++17' and 'gnu++98' were concatenated due to a missing comma
2018-07-13 20:00:50 +03:00
♫ Christian Krause ♫
c3e68189cd
docs: adds a non-docker travis example ( #3883 ) [skip ci]
2018-07-13 07:16:03 -07:00
Nirbheek Chauhan
43f7a75060
gnome.gdbus_codegen: Handle XML docbook in subdirs
...
Closes https://github.com/mesonbuild/meson/issues/3870
2018-07-11 22:47:12 +03:00
Daniel Schulte
6de9ebb10f
Add Arduino ESP8266 sample project to Users.md
2018-07-11 22:25:26 +03:00
TingPing
544164b151
docs: Minor clarifications of gnome.compile_resources
...
This was causing confusion for a user about the fact any directory can be passed
2018-07-11 15:36:24 +02:00
Alberto Sartori
8bee30367e
Implement get_link_whole_for() for IntelCompiler ( #3863 )
...
closes #3862
2018-07-10 13:23:51 -07:00
Nirbheek Chauhan
47c68a5993
find_library: Validate and sort globbed shared library files
...
We need to pick the library with the highest version, which is what
the OpenBSD linker also does.
https://github.com/mesonbuild/meson/issues/3570#issuecomment-403638752
2018-07-10 12:42:52 -07:00
Jussi Pakkanen
09ad29ec56
Fix directory verification. Closes #3857 .
2018-07-09 23:14:59 +02:00
Nirbheek Chauhan
8cfb8fd02c
Fix searching of shared libraries on OpenBSD ( #3851 )
...
* get_library_naming: Use templates instead of suffix/prefix pairs
This commit does not change functionality, and merely sets the
groundwork for a more flexibly naming implementation.
* find_library: Fix manual searching on OpenBSD
On OpenBSD, shared libraries are called libfoo.so.X.Y where X is the
major version and Y is the minor version. We were assuming that it's
libfoo.so and not finding shared libraries at all while doing manual
searching, which meant we'd link statically instead.
See: https://www.openbsd.org/faq/ports/specialtopics.html#SharedLibs
Now we use file globbing to do searching, and pick the first one
that's a real file.
Closes https://github.com/mesonbuild/meson/issues/3844
* find_library: Fix priority of library search in OpenBSD
Also add unit tests for the library naming function so that it's
absolutely clear what the priority list of naming is.
Testing is done with mocking on Linux to ensure that local testing
is easy
2018-07-09 09:45:02 -07:00
Christoph Behle
0f15d7982c
Fix regexp for warning
2018-07-09 17:05:57 +02:00
gadic
28a2e658f8
docs: sources changed into sourcelist ( #3855 ) [skip ci]
2018-07-09 07:09:54 -07:00
Nirbheek Chauhan
78f1ef85fd
Add missing method on external library object: type_name() ( #3845 )
...
For some reason this was missing, but it should've always existed
since cc.find_library() returns an object that is internally an
ExternalDependency instance.
2018-07-08 10:58:07 -07:00
Christoph Behle
2428b388db
Document options for meson
...
Document what waring_level 1,2,3 means.
Test if markdown files are in sitemap
Add Builtin-options.md to sitemap.txt
Builtin-options.md:
Fix tables in Builtin-options.md
Add documentation for warning options
Added more options to doc
General documentation:
Add link to Builtin-options
Remove obsolete file
Testing:
Add function test_markdown_files_in_sitemap.
Checks if each markdown file is contained in sitemap.txt
2018-07-08 10:56:37 -07:00
Christoph Behle
430506f814
Use mlog.bold to add quotes
2018-07-08 19:46:36 +02:00
Christoph Behle
dffa7f3564
Add tests for warnings in configure_file()
...
Add tests to run_unittests.py to assert warnings are printed and not
printed where appropriate.
2018-07-08 18:19:17 +02:00
Christoph Behle
2f494d2ccf
Simplified and cleaned up warning.
2018-07-08 18:19:17 +02:00
Christoph Behle
9cf38700d8
Add release snippet
2018-07-07 21:20:23 +02:00
Christoph Behle
2d5e1e24a1
Consider subdir for output files.
...
Files will only clash if in the same subdir.
Print the subdir in the warning.
2018-07-07 21:20:23 +02:00
Christoph Behle
620c0b07a9
Track line numbers for configure_file.
...
Track line numbers of calls. Warning reports now the line number of the
first and the current write to the same file.
2018-07-07 21:20:23 +02:00