Commit Graph

5165 Commits

Author SHA1 Message Date
Jon Turney 0774f319e8 Don't use --export-dynamic on Cygwin
After PR #2662, running test case common/125 shared module/ on Cygwin gets
me:

$ ninja -C _build
ninja: Entering directory `_build'
[7/7] Linking target prog.exe.
/usr/lib/gcc/x86_64-pc-cygwin/6.4.0/../../../../x86_64-pc-cygwin/bin/ld: warning: --export-dynamic is not supported for PE+ targets, did you mean --export-all-symbols?

Also, fix doc for correct version of first apperance.

Future work: Notwithstanding the hint that ld gives, these options are not
equivalent, and it's not clear we should be using it here:
--export-all-symbols is the default behaviour, and if the exports are
restricted by explicit annotations or a .def file, this option might be
overriding that...
2018-02-08 23:51:06 +02:00
Martin Dagarin a9654c8533 Fixed typo
Fixed typo in section Other install commands, typo was in extension of data file
2018-02-08 23:50:19 +02:00
Amit D aaee113ee2 Update Users.md 2018-02-08 23:49:51 +02:00
Benjamin Redelings ab37727289 Add comment. 2018-02-08 09:43:50 -05:00
Benjamin Redelings 52775ecb14 Clean up code a bit. 2018-02-08 09:31:29 -05:00
Benjamin Redelings 8596c36214 Don't give up - boost could be in search path. 2018-02-08 08:44:05 -05:00
Benjamin Redelings 80e4ac2d49 Don't give up before check for libraries - they could be in search path. 2018-02-08 08:38:17 -05:00
Benjamin Redelings 45a7d094cc Remove completed TODO notes. 2018-02-08 08:35:01 -05:00
Benjamin Redelings b762655e98 Remove unused import. 2018-02-08 08:34:50 -05:00
Benjamin Redelings 8cf9c7f268 Allow finding boost libraries on windows. 2018-02-07 22:29:28 -05:00
Benjamin Redelings 4babf035e5 Factor our sourceforge dir names, and don't crash on non-msvc. 2018-02-07 22:05:31 -05:00
Benjamin Redelings 47ced35b77 Don't crash if we are not msvc. 2018-02-07 22:04:59 -05:00
Benjamin Redelings f7862bcd92 Add note about mingw-w64 libraries. 2018-02-07 22:03:02 -05:00
Benjamin Redelings 7a233d01c7 Factor out debug tag. 2018-02-07 22:03:02 -05:00
Benjamin Redelings a47a521b50 Correctly check for cross-compilation. 2018-02-07 22:03:02 -05:00
Benjamin Redelings 632d12f281 Add the right directory to linker search path. 2018-02-07 22:03:02 -05:00
Benjamin Redelings f62a8aa413 Remove old code and debug messages since abi tags now work. 2018-02-07 22:03:02 -05:00
Henk van der Laan 0e07f1a896 Remove all files outside the source directory from the coverage report
Cuurently, a set of directories is filtered out from the output based on
the location of system includes on most common linux distro's. This
commit does away with the blacklist and implements a whitelist approach:
only the files inside the source root are shown.
2018-02-08 00:39:37 +02:00
Jon Turney 7bfcf68777 Add get_pkgconfig_variable(default:)
Also use that to squelch the warning for internal uses which handle the
variable missing case (just gnome at the moment)

A follow up to PR #2914
2018-02-08 00:35:38 +02:00
Amit D 2b0973acd9 Add wlroots to Users.md 2018-02-08 00:34:28 +02:00
Jussi Pakkanen 0cc90ae234 Add style guide documentation. 2018-02-08 00:33:44 +02:00
Jussi Pakkanen 54d7817087 User options can "yield to" a user option of the same name in superproject. Closes ##2853. 2018-02-08 00:33:44 +02:00
Benjamin Redelings c54af27cd1 Add missing dash. 2018-02-07 15:59:37 -05:00
Peter Uithoven 587aa3a8cd
Add GETTEXT_PACKAGE as project argument 2018-02-07 21:39:24 +01:00
Jussi Pakkanen 0204895143 Expose integer options to build option files. 2018-02-07 22:10:04 +02:00
Benjamin Redelings ead02636dc Try using abi-tag to get libname and globber on windows. 2018-02-07 13:40:36 -05:00
Benjamin Redelings a517c657fa Compute abi tags for windows also. 2018-02-07 13:36:23 -05:00
Benjamin Redelings 7749497923 Move log_fail() out of sub-method. 2018-02-07 13:36:23 -05:00
Aleksey Filippov 20c1cb7d02 Fix install_subdir() installation message
Print full destination path in 'Installing subdir ...' message,
including DESTDIR, consistent with other installation functions.
Use separate dst_dir and full_dst_dir variables to avoid mixing up
the order in the future and make code more readable.
Closes #3006.
2018-02-05 22:34:30 +02:00
Jussi Pakkanen 66b14e20cc
Merge pull request #3010 from sarum9in/elide_directory
Add strip_directory keyword for install_subdir() function
2018-02-05 22:34:09 +02:00
Jussi Pakkanen a288b524bc Add support for hex int literals. 2018-02-05 22:33:48 +02:00
Aleksey Filippov f5917d261c Use text keyword for directory example code blocks 2018-02-05 01:28:07 +00:00
Aleksey Filippov 65afa967d0 Add strip_directory=true example for multi-component path 2018-02-05 01:28:07 +00:00
Aleksey Filippov 79d8f2adbf Fix misprint in strip_directory example 2018-02-05 01:28:07 +00:00
Aleksey Filippov 13f91840e3 Clarify multi-component source directory behavior of install_subdir() 2018-02-05 01:28:07 +00:00
Aleksey Filippov 549f9a41e5 Rename install_subdir() option elide_directory to strip_directory 2018-02-05 01:28:07 +00:00
Aleksey Filippov 8ca3cc0c3d Add elide_directory keyword for install_subdir() function
If elide_directory=true install_subdir() installs directory contents
instead of directory itself, eliding name of the source directory.

Closes #2869.
2018-02-05 01:28:07 +00:00
Jon Turney 86ee89b400 Fix boost test on cygwin
With the headers from cygwin-devel-2.10.0-1, getpagesize() is not prototyped
unless an appropriate feature test macro is defined.

Future work: investigate if this needs to be defined by
BoostDependency.get_compile_args() or in Boost.
2018-02-05 00:00:37 +02:00
Jussi Pakkanen 4637cf4e95 Fix run target documentation. Closes #1793. 2018-02-04 19:06:02 +02:00
Robert Bragg 6f510ca695 Don't version shared libraries for Android
Android's loader doesn't handle shared library versioning so this avoids
adding a suffix to the filename or soname for Android hosts.
2018-02-04 00:49:16 +02:00
Jussi Pakkanen bfa6c8d074
Merge pull request #2938 from acfoltzer/rust-cross-merge
Add cross-compilation support for `rustc`
2018-02-04 00:44:09 +02:00
Aleksey Filippov 8fe8161014 Refactor and simplify install_subdir()
- Pass exclude_files and exclude_directories relative to src_dir,
  same as specified by user and documented in public install_subdir().
- Make do_copydir() interface similar to do_copyfile():
  install src_dir contents to dst_dir.
- Remove src_prefix/src_dir code, it adds confusion and duplicates arguments.
  Use single src_dir parameter instead.
- Make callers specify that src_dir contents should be installed
  under dst_dir/basename(src_dir) if necessary.
- Use os.path.relpath() instead of string manipulations on paths.
- Add documentation to do_copydir(): specify types and add usage example.
2018-02-04 00:43:00 +02:00
Jussi Pakkanen f25070ec08
Merge pull request #2228 from mesonbuild/icestorm
IceStorm FPGA experiment
2018-02-02 23:54:12 +02:00
Adam C. Foltzer 281294286e Fix Rust shared polyglot test case for cross-compilation
The crate-type in this case should have been `cdylib` since it's
linking via C, rather than the default `dylib` that is meant for
linking via `rustc`.
2018-02-02 11:31:47 -08:00
Jussi Pakkanen d59d371d77 Added dpdk to the list of users. 2018-02-02 20:56:09 +02:00
Jussi Pakkanen 80ac62c1a5 Added documentation to IceStorm module. 2018-02-02 20:30:14 +02:00
Jussi Pakkanen 2601cbe8a8 Created an unstable module for IceStorm projects. 2018-02-02 20:05:31 +02:00
Jussi Pakkanen 2dfd790f4f Created sample project for IceStorm FPGA development. 2018-02-02 20:04:43 +02:00
Jussi Pakkanen 0025cb03d2 Updated the video page. 2018-02-02 17:05:12 +02:00
Jussi Pakkanen 20ae08eb1b Only quote colons on build lines. Closes #2961. 2018-02-02 10:37:32 +02:00