Commit Graph

4618 Commits

Author SHA1 Message Date
Jussi Pakkanen a655b64989 Add an rpath entry to shared libraries that are linked from the source tree. 2017-09-30 18:21:02 +03:00
Jussi Pakkanen ac79eebc2f Moved prebuilt static library under unit tests. 2017-09-30 16:34:30 +03:00
Jussi Pakkanen b9c4fc728c Moved prebuilt object test under unittests. 2017-09-30 16:08:41 +03:00
Nirbheek Chauhan 8cc52b5d4f vs: Fix link_whole usage with the vs backend
/WHOLEARCHIVE must go to AdditionalOptions, not AdditionalDependencies
and we must add a project reference to trick msbuild/visual studio into
building a target that is built from only libraries linked in via
/WHOLEARCHIVE.
2017-09-30 04:11:22 +05:30
Nirbheek Chauhan 560f4b6fc7 vs: Fix detection of options vs libraries in link args 2017-09-30 03:58:54 +05:30
Nirbheek Chauhan b866cf0804 vs: Add a helper for adding a project reference 2017-09-30 03:57:51 +05:30
Nirbheek Chauhan 040fa07e36 tests/common/145: Move each target into its own subdir
This helps test whether /WHOLEARCHIVE and --whole-archive arguments
resolve into the right subdirectories.
2017-09-30 03:56:36 +05:30
Niklas Claesson 68275b32e8 Implement capture for generators 2017-09-29 23:29:44 +03:00
liugang c93bce7839 Don't download patch archive if already download
the behavior of download patch should
keep same as download package.
2017-09-29 21:43:28 +03:00
Jussi Pakkanen 5e47739633 Merge pull request #2378 from dcbaker/llvm-cleanups
Llvm cleanups
2017-09-29 21:41:51 +03:00
Reverend Homer fd339759f2 fix typo? 2017-09-29 20:18:32 +03:00
Jon Turney c654e58c53 Revert "Add an additional Cygwin package repo with patched ninja"
This reverts commit 92c2bb7519.

This is no longer needed, as a patched ninja is now available from the
standard Cygwin package repository, and prevents me from accidentally
breaking CI when changing things in my personal package repository.
2017-09-28 00:37:57 +03:00
Dylan Baker dda5e8cadb Allow CustomTarget's to be indexed
This allows a CustomTarget to be indexed, and the resulting indexed
value (a CustomTargetIndex type), to be used as a source in other
targets. This will confer a dependency on the original target, but only
inserts the source file returning by index the original target's
outputs. This can allow a CustomTarget that creates both a header and a
code file to have it's outputs split, for example.

Fixes #1470
2017-09-27 22:01:24 +03:00
Dylan Baker 5a8d1b6431 deps: strip 'svn' from LLVM version 2017-09-26 17:12:49 -07:00
Dylan Baker 035bee5c54 deps: demote LLVM config to instance variable
Which fixes trying to use multiple versions of LLVM, and allows
simplifying the class somewhat.
2017-09-26 13:06:22 -07:00
Dylan Baker 95ba1fcab2 deps: convert LLVM modules to a set before checking for them
This allows the logic in a meson.build file to be simplified (ie, some
dependencies can add the same module requirements) but meson will only
check for them once. Since set is inherently unordered, use sorted to
make the output deterministic.
2017-09-26 13:06:22 -07:00
Dylan Baker ce6099b704 deps: flatten module argument to LLVM dependency
So that nested lists can be passed.
2017-09-26 13:06:16 -07:00
Jussi Pakkanen dfc2b75ee2 Merge pull request #2348 from centricular/configure-file-infinite-loop
configure_file: Fix infinite loop in some cases
2017-09-26 21:46:55 +03:00
Jussi Pakkanen cf6693a4eb Linker flag for Windows GUI applications was missing on MSVC. 2017-09-26 21:46:32 +03:00
Nirbheek Chauhan 87327d414a configure_file: Fix infinite loop in some cases
We were adding built files to the list of source files to check for
regen. We were also not adding sources files to regen when `command:`
was used.

Fixes #1865
2017-09-26 18:47:00 +05:30
Leif Middelschulte 50376cca37 fixup 993a12c5: use right variable 2017-09-26 14:03:07 +02:00
Leif Middelschulte 993a12c543 avoid errornous type conversion. Compare strings instead 2017-09-26 14:01:29 +02:00
Leif Middelschulte fab15d433a fixes offline working (if desired revision is already present). 2017-09-26 13:56:58 +02:00
Leif Middelschulte aa28675ebc fixes initial checkout command independend of provided revision 2017-09-26 13:13:46 +02:00
Nirbheek Chauhan 92318c7660 docs: get_supported_arguments was added in 0.43.0
Closes https://github.com/mesonbuild/meson/issues/2371

[noci]
2017-09-26 10:00:28 +00:00
Leif Middelschulte 667d5d2d9f introduce svn wrap support 2017-09-25 22:26:42 +02:00
Jussi Pakkanen 011adc4bd2 Merge pull request #2365 from liugang/master
Improve mesonbuild/wrap/wrap.py
2017-09-25 19:43:15 +03:00
Jussi Pakkanen 876b2475dd Made man page gzip creation deterministic. Closes #2363. 2017-09-23 11:31:59 +03:00
liugang a93ac1a6a8 Improve download package
Using wrap mechanism in enterprise environment,
Some package is very large, example, sdk package from
BSP vendor.

so:
- open file in the output directory with a temporary name
- download a chunk, update hash calculation, write chunk to file
- when finished close file and check the hash
- if hash is incorrect, delete temp file and raise error
- if hash is correct, atomically rename temp file to final file

fix issue: #2358
2017-09-23 16:01:11 +08:00
liugang de259b6690 Fix unpack patch archive fail
fix shutil.unpack_archive() failure when the
destination files already exists and is read-only.

Example: all files in opensource package live555
is `-r--r--r--`, if some file in patch archive try to
patch original files of live555, shutil.unpack_archive
will raise `[Errno 13] Permission denied`
2017-09-23 15:59:43 +08:00
liugang 7060b15773 fix patch archive never download on some case
Fix issue #2359
2017-09-23 13:53:27 +08:00
Jussi Pakkanen bea6b1a6f6 Merge pull request #2187 from centricular/fix-pcap-dependency
Fix pcap dependency, str.strip() now takes an argument, add cc.get_return_value()
2017-09-22 22:04:18 +03:00
Jussi Pakkanen be0aa7fd74 Merge pull request #2357 from LukeShu/flake8
Bring into compliance with flake8
2017-09-22 21:33:34 +03:00
Jussi Pakkanen 2ab4b397a8 Merge pull request #2350 from tintou/master
Add 'install' keyword to the gettext macro
2017-09-22 21:30:08 +03:00
Johan Bjäreholt 102c1d09fe Replaced references to 'mesontest'
'mesontest' is deprecated and is now 'meson test'

Replaced all references to 'mesontest' with 'meson test' and added a note of the change in the bottom of the page
2017-09-22 21:29:20 +03:00
Johan Bjäreholt e129cf7278 Replaced references to 'mesonconf'
mesonconf is deprecated and all references of it has been replaced with 'meson configure'
2017-09-22 21:29:20 +03:00
Nirbheek Chauhan 177283d203 pcap dependency: Frameworks for libpcap do not exist
The only ways to get it are via Homebrew or Macports, which install
pkg-config files and/or pcap-config
2017-09-22 19:11:57 +05:30
Corentin Noël 34c6cccde2 Update i18n markdown page to add the new install parameter 2017-09-22 01:08:10 +02:00
Dylan Baker d070100c8c link_whole should be considered a source for targets
Currently sources, generated sources, or objects are considered to be
sources for a target, but link_whole should also fulfill the sources
requirement.

Fixes #2180
2017-09-21 12:10:59 -07:00
Luke Shumaker 68d4c1e559 flake8: disable E731: do not assign a lambda expression, use a def
It has too many false positives.  It was complaining about things like

    if this:
         fn = some_func
    else:
         fn = lambda x: ...

Where obviously, "fn" can't be a def, and it would be silly to introduce
some other name to use as the def, just to assign it to fn.
2017-09-21 13:41:09 -04:00
Luke Shumaker 4dbbb4884c flake8: Clean up complained-about unused imports
This also adds a "# noqa: F401" comment on an unused "import lzma",
which we are using it in a try/except block that is being used to
check if the lzma module is importable; of course it is unused.

v2: This turned out to be a little tricky.

    mesonbuild/modules/__init__.py had the "unused" import:

        from ..interpreterbase import permittedKwargs, noKwargs

    However, that meant that the various modules could do things like:

        from . import noKwargs # "." is "mesonbuild.modules"

    Which breaks when you remove __init__.py's "unused" import.  I
    could have tagged that import with "# noqa: F401", but instead I
    chose to have each of the module import directly from
    "..interpreterbase" instead of ".".
2017-09-21 13:41:03 -04:00
Jussi Pakkanen 2f6702839e Merge pull request #2340 from NickeZ/generator-fix
Add @PLAINNAME@ and @BASENAME@ to arguments argument for Generator
2017-09-21 20:02:21 +03:00
Jussi Pakkanen b6821dc590 Merge pull request #2352 from LukeShu/minor-fixups
Minor fixups
2017-09-21 19:55:00 +03:00
Jussi Pakkanen 2cbd917cf6 Merge pull request #2326 from dcbaker/use-link-compilers
Consider compilers used in static_library parents
2017-09-21 19:53:45 +03:00
Luke Shumaker bb25260f00 flake8: Perform suggested whitespace/formatting changes
This only touches newlines, spaces, and (occaisionally) commas.  Anything
else is left for another commit.
2017-09-21 11:59:03 -04:00
Nirbheek Chauhan 751d59d952 Update Reference-manual.md
Add notes about not using full_path() unless absolutely necessary.
2017-09-20 21:05:50 +00:00
Corentin Noël 3e6c3ea10c Change ternary to another argument 2017-09-20 20:34:20 +02:00
Corentin Noël 6a2926870c Add 'install' keyword to the gettext macro 2017-09-20 20:17:59 +02:00
Luke Shumaker e7d5b9dd8e fix file permissions on a couple of files 2017-09-20 14:02:57 -04:00
Luke Shumaker 3f446a79ec ghwt: Add a comment at the top briefly explaining what it is 2017-09-20 14:02:57 -04:00