X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fandroidcxxcompiler.cpp;fp=source%2Fandroidcxxcompiler.cpp;h=0000000000000000000000000000000000000000;hb=a4f02f02d4682c7f504e46ff2ce8f93035fd36dd;hp=41f06ed4fe823f51ed9242c24487a05f2eeaf3d0;hpb=cea2680b64eb10790f3b88a97bd0a4ed29d8a3b0;p=builder.git diff --git a/source/androidcxxcompiler.cpp b/source/androidcxxcompiler.cpp deleted file mode 100644 index 41f06ed..0000000 --- a/source/androidcxxcompiler.cpp +++ /dev/null @@ -1,40 +0,0 @@ -#include -#include -#include "androidcxxcompiler.h" -#include "androidtools.h" -#include "architecture.h" -#include "builder.h" - -using namespace std; -using namespace Msp; - -AndroidCxxCompiler::AndroidCxxCompiler(Builder &b, const Architecture &a, const AndroidNdk &n): - GnuCxxCompiler(b, a, n.get_platform_sysroot()), - ndk(n) -{ - set_command((ndk.get_bin_dir()/command).str()); - build_info.incpath.insert(build_info.incpath.end(), system_path.begin(), system_path.end()); - build_info.libs.push_back("gnustl_static"); -} - -void AndroidCxxCompiler::do_prepare() -{ - GnuCxxCompiler::do_prepare(); - if(executable) - { - FS::Path libstdcxx_path = ndk.get_root_dir()/"sources"/"cxx-stl"/"gnu-libstdc++"/version; - - FS::Path public_dir = libstdcxx_path/"include"; - system_path.push_back(public_dir); - build_info.incpath.push_back(public_dir); - - FS::Path arch_path = libstdcxx_path/"libs"; - builder.get_logger().log("files", format("Traversing %s", arch_path.str())); - string arch_dir = architecture->best_match(list_files(arch_path)); - if(!arch_dir.empty()) - { - build_info.incpath.push_back(libstdcxx_path/"libs"/arch_dir/"include"); - build_info.libpath.push_back(libstdcxx_path/"libs"/arch_dir); - } - } -}