Reland r8235 "Switch gm to use SkFlags."

This time, using #if guards for gpuCacheSize consistently.

Also fix some warnings.

BUG=https://code.google.com/p/skia/issues/detail?id=1094

Review URL: https://codereview.chromium.org/12440052

git-svn-id: http://skia.googlecode.com/svn/trunk@8254 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gyp/flags.gyp b/gyp/flags.gyp
new file mode 100644
index 0000000..712a04b
--- /dev/null
+++ b/gyp/flags.gyp
@@ -0,0 +1,29 @@
+# GYP file to build flag parser
+#
+{
+  'targets': [
+    {
+      'target_name': 'flags',
+      'type': 'static_library',
+      'sources': [
+        '../tools/SkFlags.h',
+        '../tools/SkFlags.cpp',
+      ],
+      'dependencies': [
+        'skia_base_libs.gyp:skia_base_libs',
+        'core.gyp:core',
+      ],
+      'direct_dependent_settings': {
+        'include_dirs': [
+          '../tools/',
+        ],
+      }
+    },
+  ],
+}
+
+# Local Variables:
+# tab-width:2
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=2 shiftwidth=2: