Convert mclinker to Android.bp
See build/soong/README.md for more information.
Test: mma -j
Change-Id: Ief1cd037cfcd2abe1722f538f7c129f5099df496
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..6ecc52d
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,40 @@
+cc_defaults {
+ name: "mcld-defaults",
+ defaults: ["llvm-defaults"],
+
+ cppflags: [
+ "-Wall",
+ "-Wno-unused-parameter",
+ "-Wno-unused-private-field",
+ "-Wno-unused-const-variable",
+ "-Werror",
+
+ //To enable asserts:
+ //"-D_DEBUG",
+ //"-UNDEBUG",
+ ],
+
+ target: {
+ arm_on_x86: {
+ cflags: [
+ "-DPROVIDE_ARM_CODEGEN",
+ "-DFORCE_BUILD_ARM",
+ ],
+ },
+ arm_on_x86_64: {
+ cflags: [
+ "-DPROVIDE_ARM_CODEGEN",
+ "-DFORCE_BUILD_ARM",
+ ],
+ },
+ },
+
+ include_dirs: [
+ "frameworks/compile/mclinker/include",
+ ],
+}
+
+subdirs = [
+ "lib",
+ "tools/mcld",
+]