| 1 |
#include "SimpleCxx_HelloWorld.hpp" |
| 2 |
#include "MixedLang.hpp" |
| 3 |
#include "wsp_c/C.hpp" |
| 4 |
|
| 5 |
#include <iostream> |
| 6 |
#include <string> |
| 7 |
|
| 8 |
|
| 9 |
void appendDepsStr(std::string &depsStr, const std::string &str) |
| 10 |
{ |
| 11 |
if (depsStr.length()) { |
| 12 |
depsStr += "; "+str; |
| 13 |
} |
| 14 |
else { |
| 15 |
depsStr = str; |
| 16 |
} |
| 17 |
} |
| 18 |
|
| 19 |
|
| 20 |
int main(int argc, char *argv[]) { |
| 21 |
// Get deps down the deps graph |
| 22 |
std::string depsStr; |
| 23 |
appendDepsStr(depsStr, "WithSubpackages:"+WithSubpackages::depsC()); |
| 24 |
appendDepsStr(depsStr, "MixedLang:"+tribits_mixed::mixedLang()); |
| 25 |
appendDepsStr(depsStr, "SimpleCxx:"+SimpleCxx::deps()); |
| 26 |
// NOTE: The above all call functions from the libraries and requires that |
| 27 |
// both the header files be found at compile time and the libraries be found |
| 28 |
// at link time and runtime for this these function calls to work. |
| 29 |
|
| 30 |
std::cout << "Full Deps: " << depsStr << "\n"; |
| 31 |
|
| 32 |
return 0; |
| 33 |
} |