Porting 177.mesa and 183.equake for fuchsia

177.mesa benchmark works. It needs input file using -meshfile arg
183.equake doesn't work right now as it expects the input file from
stdin and currently our shell doesn't support it.

Change-Id: Ie77a171caec19bf5f36b1f6e7951999d2058bb6d
diff --git a/177.mesa/BUILD.gn b/177.mesa/BUILD.gn
new file mode 100644
index 0000000..a98cf15
--- /dev/null
+++ b/177.mesa/BUILD.gn
@@ -0,0 +1,78 @@
+# Copyright 2016 The Fuchsia Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+executable("177.mesa") {
+  sources = [
+    "src/accum.c",
+    "src/alpha.c",
+    "src/alphabuf.c",
+    "src/api1.c",
+    "src/api2.c",
+    "src/attrib.c",
+    "src/bitmap.c",
+    "src/blend.c",
+    "src/clip.c",
+    "src/colortab.c",
+    "src/context.c",
+    "src/copypix.c",
+    "src/depth.c",
+    "src/dlist.c",
+    "src/drawpix.c",
+    "src/enable.c",
+    "src/eval.c",
+    "src/feedback.c",
+    "src/fog.c",
+    "src/get.c",
+    "src/hash.c",
+    "src/image.c",
+    "src/light.c",
+    "src/lines.c",
+    "src/logic.c",
+    "src/masking.c",
+    "src/matrix.c",
+    "src/mesa4.c",
+    "src/misc.c",
+    "src/mmath.c",
+    "src/osmesa.c",
+    "src/pb.c",
+    "src/pixel.c",
+    "src/pointers.c",
+    "src/points.c",
+    "src/polygon.c",
+    "src/quads.c",
+    "src/rastpos.c",
+    "src/readpix.c",
+    "src/rect.c",
+    "src/scissor.c",
+    "src/shade.c",
+    "src/span.c",
+    "src/stencil.c",
+    "src/teximage.c",
+    "src/texobj.c",
+    "src/texstate.c",
+    "src/texture.c",
+    "src/triangle.c",
+    "src/varray.c",
+    "src/vb.c",
+    "src/vbfill.c",
+    "src/vbrender.c",
+    "src/vbxform.c",
+    "src/winpos.c",
+    "src/xform.c",
+  ]
+  defines = [ "SPEC_CPU2000" ]
+  cflags_c = [
+    "-Wno-constant-conversion",
+    "-Wno-header-guard",
+    "-Wno-int-to-void-pointer-cast",
+    "-Wno-sign-compare",
+    "-Wno-sometimes-uninitialized",
+    "-Wno-tautological-compare",
+    "-Wno-unused-function",
+    "-Wno-unused-variable",
+  ]
+  data = [
+    "data/ref/input/mesa.in",
+  ]
+}
diff --git a/183.equake/BUILD.gn b/183.equake/BUILD.gn
new file mode 100644
index 0000000..271adfb
--- /dev/null
+++ b/183.equake/BUILD.gn
@@ -0,0 +1,13 @@
+# Copyright 2016 The Fuchsia Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+executable("183.equake") {
+  sources = [
+    "src/quake.c",
+  ]
+  defines = [ "SPEC_CPU2000" ]
+  data = [
+    "data/ref/input/inp.in",
+  ]
+}
diff --git a/BUILD.gn b/BUILD.gn
index 4d4d9db..a30b5ae 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -5,5 +5,7 @@
 group("speccpu2000") {
   deps = [
     "176.gcc",
+    "177.mesa",
+    "183.equake",
   ]
 }