Nirbheek Chauhan
2b8196a1c8
tests/common/140: Add a test for PR #1738
...
The bug is only encountered with headers in the default compiler
search path, so use zlib.h since that is commonly available.
See: https://github.com/mesonbuild/meson/issues/1726
8 years ago
Nirbheek Chauhan
f14684c5cb
get_define: Add prefix before ifndef block
...
Otherwise the compiler will warn about macros being redefined.
8 years ago
Peter Hutterer
7a3be163cb
Default to project_version() in vcs_tag fallback
8 years ago
Peter Hutterer
4413122676
Check for input and output to exist in vcs_tag
...
Provide a proper error message, rather than the current
"Command cannot have '@INPUT0@', since no input files were specified"
which doesn't actually tell us where things are going wrong.
8 years ago
Peter Hutterer
4378655a39
docs: document additional args for vcs_tag
...
Supported as of 223596d7bf
8 years ago
Peter Hutterer
e982d5118e
docs: clarify that vcs_tag output can be used as source
...
"you should put in your main program" is confusing, "that can be used as
source" is slightly better.
8 years ago
Jussi Pakkanen
11968382a3
Merge pull request #1621 from dcbaker/llvm-dep
...
RFC: Add dependency for LLVM. Fixes #1611
8 years ago
Peter Hutterer
a576791064
Use American English - 'ise' -> 'ize' where applicable
8 years ago
Peter Hutterer
ca924451ac
Use American English: behaviour -> behavior
8 years ago
Chiu Yue Chun
fe85721e7e
Update FAQ.md: meson is not elementary particle
...
meson is a hadron, more specifically, hadrons that consists of a quark and a anti-quark. So, it is a composite particle rather than elementary one.
8 years ago
Dylan Baker
4bee51655b
Add dependency for LLVM. Fixes #1611
...
This adds a depdendncy wrapper for llvm-config based on the wxwidgets
dependency. IT handles libs, version, include dir, and the llvm unique
concept of components. These components are individual pieces of the
LLVM library that may or may not be available depending on the platform.
8 years ago
Dylan Baker
4334c96062
Provide a helpful message when a language is required but not included
...
This happens when building a C project with LLVM, which requires the C++
linker.
8 years ago
Dylan Baker
ad79db8f0a
Add some FIXME comments to wxwidgets dependency.
8 years ago
Dylan Baker
5f1b96a076
docs: Update SharedLibrary vs_module_defs accepts a File object
8 years ago
Jussi Pakkanen
8cb15d728b
Merge pull request #1723 from QuLogic/doc-updates
...
Minor documentation updates
8 years ago
Jussi Pakkanen
108dac5c16
Store extra_files as file objects. Helps with #1686 .
8 years ago
Elliott Sales de Andrade
f9de195d7c
doc: Replace kwarg with keyword argument.
...
This abbreviation is a Python-ism that is not really clear to those out
of the loop.
8 years ago
Elliott Sales de Andrade
40d7704cd5
doc: Use https links wherever possible.
8 years ago
Elliott Sales de Andrade
ac74b76c33
doc: Fix broken Linux binary page.
...
All the dashes were replaced by spaces.
8 years ago
Elliott Sales de Andrade
4ba298613d
doc: Don't use root-prompt in wraptool examples.
...
A `#` is the root-prompt, whereas `$` is the user-prompt.
8 years ago
Elliott Sales de Andrade
f3ad633f55
doc: Fix several minor typos.
8 years ago
Elliott Sales de Andrade
b80d40c287
doc: Capitalize things more consistently.
...
Upper or lower case depending on the official spelling, or the more
consistent usage.
8 years ago
Elliott Sales de Andrade
492e281c0e
doc: Remove duplicate design rationale page.
8 years ago
Jussi Pakkanen
8f49764896
Merge pull request #1717 from valum-framework/fix-descriptions-for-ninja-backend
...
ninjabackend: Use more consistent descriptions
8 years ago
Jussi Pakkanen
0e3aa5a348
Merge pull request #1587 from mesonbuild/tingping/msgfmt-datadir
...
i18n: Improve data_dirs support
8 years ago
Jussi Pakkanen
2bb03f19fd
Merge pull request #1725 from whot/master
...
documentation fixes
8 years ago
Jussi Pakkanen
33b79dcf25
Kill RawFile dead!
8 years ago
Peter Hutterer
276d342eba
docs: replace 'meson build' with 'meson builddir'
...
Clarifies that this is really just a directory, not a command.
https://github.com/mesonbuild/meson/issues/1560
8 years ago
Peter Hutterer
7ec6e6df20
docs: add a short description for all top pages in the Manual
8 years ago
Peter Hutterer
71f0a63fb2
docs: fix link to file a new issue
8 years ago
Peter Hutterer
ea127d5594
docs: fix missing build directory
8 years ago
Peter Hutterer
aed341f7e5
docs: fix links to the meson repos
8 years ago
Elliott Sales de Andrade
a96d79cc00
ninjabackend: Don't pluralize twice custom target cleaning description
8 years ago
Guillaume Poirier-Morency
820fc8ee24
ninjabackend: Fix implicit comment for 'C#' rule description
8 years ago
Guillaume Poirier-Morency
253201d9bf
ninjabackend: Add a set of raw names
8 years ago
Patrick Griffis
a6775233c7
docs: Document missing gnome.compile_resources() kwargs
8 years ago
Jussi Pakkanen
9d69c934d6
Expand input paths so they do not contain symlinks.
8 years ago
Dylan Baker
a8173630ea
Don't use len() to test emptiness vs not emptiness
...
Meson has a common pattern of using 'if len(foo) == 0:' or
'if len(foo) != 0:', however, this is a common anti-pattern in python.
Instead tests for emptiness/non-emptiness should be done with a simple
'if foo:' or 'if not foo:'
Consider the following:
>>> import timeit
>>> timeit.timeit('if len([]) == 0: pass')
0.10730923599840025
>>> timeit.timeit('if not []: pass')
0.030033907998586074
>>> timeit.timeit('if len(['a', 'b', 'c', 'd']) == 0: pass')
0.1154778649979562
>>> timeit.timeit("if not ['a', 'b', 'c', 'd']: pass")
0.08259823200205574
>>> timeit.timeit('if len("") == 0: pass')
0.089759664999292
>>> timeit.timeit('if not "": pass')
0.02340641999762738
>>> timeit.timeit('if len("foo") == 0: pass')
0.08848102600313723
>>> timeit.timeit('if not "foo": pass')
0.04032287199879647
And for the one additional case of 'if len(foo.strip()) == 0', which can
be replaced with 'if not foo.isspace()'
>>> timeit.timeit('if len(" ".strip()) == 0: pass')
0.15294511600222904
>>> timeit.timeit('if " ".isspace(): pass')
0.09413968399894657
>>> timeit.timeit('if len(" abc".strip()) == 0: pass')
0.2023209120015963
>>> timeit.timeit('if " abc".isspace(): pass')
0.09571301700270851
In other words, it's always a win to not use len(), when you don't
actually want to check the length.
8 years ago
Guillaume Poirier-Morency
ce2e36fd6e
ninjabackend: Fix typography for JAR and C# in descriptions
8 years ago
Guillaume Poirier-Morency
f16232856e
ninjabackend: Use 'custom targets' instead of 'CustomTarget' in description
...
The build definition is basically cleaning all the directories of all
custom targets.
8 years ago
Guillaume Poirier-Morency
91dc6a60df
ninjabackend: Don't quote descriptions
8 years ago
Guillaume Poirier-Morency
3afc44973d
ninjabackend: Use more consistent descriptions
...
Use a titlecase for arbitrary language, this was we don't have 'C' in
lowercase.
Rename 'Static linking library $out' for 'Linking static target $out.'.
Add missing punctuation.
8 years ago
Gabríel Arthúr Pétursson
ae924b01a0
docs: s/no tbe/not be/
8 years ago
John Gallagher
de762feb87
Fix typo in Generating-sources.md
...
First `custom_target` example was missing a closing `'`.
8 years ago
Corey Ashford
d6dfc94188
Update Overview.md
...
fix typo
8 years ago
Jussi Pakkanen
b65b9fe271
More strict eval.
8 years ago
Jussi Pakkanen
6d1ba44396
Merge pull request #1661 from QuLogic/test-cases
...
Test case unique-ification
8 years ago
Ernestas Kulik
1c8ac8fd6d
docs: replace occurences of set_install_script()
...
The method has been replaced with add_install_script().
Signed-off-by: Ernestas Kulik <ernestas.kulik@gmail.com>
8 years ago
Elliott Sales de Andrade
8706d7d098
Warn when directory numbers are non-unique.
8 years ago
Elliott Sales de Andrade
faf0ce96e2
Rename tests with duplicate numbers.
8 years ago