AndroidLinker::AndroidLinker(Builder &b, const Architecture &a, const AndroidNdk &ndk):
CustomizedTool(b, "LINK", a)
{
- build_info.sysroot = ndk.get_platform_sysroot();
-
set_command("gcc", true);
- set_command((ndk.get_bin_dir()/command).str());
+ if(ndk.get_root_dir().empty())
+ problems.push_back("Android NDK not found");
+ else if(ndk.get_bin_dir().empty())
+ problems.push_back("Android NDK toolchain not found");
+ else
+ set_command((ndk.get_bin_dir()/command).str());
+
+ build_info.sysroot = ndk.get_platform_sysroot();
}
Target *AndroidLinker::create_target(const vector<Target *> &sources, const string &)