Commit Graph

9 Commits

Author SHA1 Message Date
Wade Berrier ad1b487285 dependency: boost: only consult environment at initial stage
... not when getting compiler and link arguments

Would be nice to have some tests, but that requires boost in a
non-standard location.
2017-06-27 11:33:10 -04:00
Nirbheek Chauhan 9308a6d923 tests: Add Boost unit tests and project tests on Windows
Boost tests are disabled on Windows for now because the detection
is actually completely broken. Once that's fixed (after the release)
we can enable it again.
2017-06-10 18:55:50 +05:30
Nirbheek Chauhan 0c83f8352d dependencies: Add a new class ExternalDependency
This class now consolidates a lot of the logic that each external
dependency was duplicating in its class definition.

All external dependencies now set:

* self.version
* self.compile_args and self.link_args
* self.is_found (if found)
* self.sources
* etc

And the abstract ExternalDependency class defines the methods that
will fetch those properties. Some classes still override that for
various reasons, but those should also be migrated to properties as
far as possible.

Next step is to consolidate and standardize the way in which we call
'configuration binaries' such as sdl2-config, llvm-config, pkg-config,
etc. Currently each class has to duplicate code involved with that
even though the format is very similar.

Currently only pkg-config supports multiple version requirements, and
some classes don't even properly check the version requirement. That
will also become easier now.
2017-06-09 20:21:01 +05:30
Adam C. Foltzer a53e44ad63 generalize the system include detection a bit
This should help when using a non-standard sysroot, common in cross-compiling
2017-06-07 20:11:34 +03:00
Adam C. Foltzer b290688ede look for static Boost libraries on *nix when requested
This was already mostly working before due to how the linker arguments were constructed, but this will now be more resilient to the case where dynamic libraries only are present.
2017-05-25 11:30:55 -07:00
Adam C. Foltzer 80fd7106e8 add support for static flag on Windows Boost dependency 2017-05-25 11:20:29 -07:00
Goncalo Carvalho 6eb75a04a1 fix lookup of boost modules when cross-compiling on osx 2017-05-20 18:57:27 +03:00
Elliott Sales de Andrade ea636fcd51 Remove unused variables. 2017-05-17 04:41:54 -04:00
Elliott Sales de Andrade d3caadb675 Split misc dependencies into their own file. 2017-05-09 18:28:05 -04:00