Initial import of libmojo r405848

This brings libmojo in sync with libchrome.

Bug: 27569341
Test: mma -j32 libmojo
Change-Id: Ia7cb877e46dd3f86f18888b5d8d80bef5468b266
diff --git a/mojo/BUILD.gn b/mojo/BUILD.gn
new file mode 100644
index 0000000..2dac654
--- /dev/null
+++ b/mojo/BUILD.gn
@@ -0,0 +1,47 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/ui.gni")
+
+group("mojo") {
+  # Meta-target, don't link into production code.
+  testonly = true
+  deps = [
+    ":tests",
+    "//mojo/common",
+  ]
+
+  if (!(is_linux && current_cpu == "x86")) {
+    # TODO(GYP): Figure out if this needs to be supported. Right now
+    # it won't work on x86 official builds because it needs stuff in the
+    # sysroot that doesn't exist.
+    deps += [ "//mojo/public" ]
+  }
+
+  if (is_android) {
+    deps += [ "//mojo/android" ]
+  }
+
+  deps += [ "//services/shell:all" ]
+}
+
+group("tests") {
+  testonly = true
+  deps = [
+    "//ipc:ipc_tests",
+    "//mojo/common:mojo_common_unittests",
+    "//mojo/converters/blink:blink_converters_unittests",
+    "//mojo/edk/js/test:js_integration_tests",
+    "//mojo/edk/js/test:js_unittests",
+    "//mojo/edk/system:mojo_message_pipe_perftests",
+    "//mojo/edk/system:mojo_system_unittests",
+    "//mojo/edk/test:mojo_public_bindings_perftests",
+    "//mojo/edk/test:mojo_public_bindings_unittests",
+    "//mojo/edk/test:mojo_public_system_perftests",
+    "//mojo/edk/test:mojo_public_system_unittests",
+    "//services/shell/public/cpp/tests:mojo_public_application_unittests",
+    "//services/shell/runner/host:mojo_runner_host_unittests",
+    "//services/shell/tests",
+  ]
+}