diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-20 10:38:02 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-20 10:38:02 +0200 |
commit | c1981e367aafc22389ac0ab506b00e9657c8071c (patch) | |
tree | 528b0d00283411de2daf6d0e2163f72f2e741ee9 /build/bin/target.cxx | |
parent | 243da3993c138d33063f633aa3996a8a710ea396 (diff) |
Implement support for importing installed libraries
Diffstat (limited to 'build/bin/target.cxx')
-rw-r--r-- | build/bin/target.cxx | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/build/bin/target.cxx b/build/bin/target.cxx index 9dbcd83..4e48d16 100644 --- a/build/bin/target.cxx +++ b/build/bin/target.cxx @@ -106,13 +106,26 @@ namespace build return a; } + // @@ + // + // What extensions should we use? At the outset, this is platform- + // dependent. And if we consider cross-compilation, is it build or + // host-dependent? Feels like it should be host-dependent so that + // we can copy things between cross and native environments. So + // these will have to be determined based on what we are building. + // As if this is not complicated enough, the bin module doesn't + // know anything about building. So perhaps the extension should + // come from a variable that is set not by bin but by the module + // whose rule matched the target (e.g., cxx::link). + // + constexpr const char a_ext[] = "a"; const target_type liba::static_type { typeid (liba), "liba", &file::static_type, &liba_factory, - nullptr, + &target_extension_fix<a_ext>, &search_file, false }; @@ -129,13 +142,14 @@ namespace build return so; } + constexpr const char so_ext[] = "so"; const target_type libso::static_type { typeid (libso), "libso", &file::static_type, &libso_factory, - nullptr, + &target_extension_fix<so_ext>, &search_file, false }; |