Moved the compiler source files into directories based on their project and added a compiler.gypi to generate the compiler projects.
diff --git a/src/compiler.gypi b/src/compiler.gypi
new file mode 100644
index 0000000..ff0743a
--- /dev/null
+++ b/src/compiler.gypi
@@ -0,0 +1,44 @@
+# Copyright (c) 2013 The ANGLE Project Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'targets':
+ [
+ {
+ 'target_name': 'preprocessor',
+ 'type': 'static_library',
+ 'include_dirs': [ ],
+ 'sources': [ '<!@(python enumerate_files.py compiler/preprocessor -types *.cpp *.h)' ],
+ 'msvs_disabled_warnings': [ 4267 ],
+ },
+
+ {
+ 'target_name': 'translator',
+ 'type': 'static_library',
+ 'dependencies': [ 'preprocessor' ],
+ 'include_dirs':
+ [
+ '.',
+ '../include',
+ ],
+ 'defines':
+ [
+ 'COMPILER_IMPLEMENTATION',
+ ],
+ 'sources': [ '<!@(python enumerate_files.py compiler/translator third_party/compiler common -types *.cpp *.h *.y *.l )', ],
+ 'conditions':
+ [
+ ['OS=="win"',
+ {
+ 'msvs_disabled_warnings': [ 4267 ],
+ 'sources/': [ [ 'exclude', 'compiler/translator/ossource_posix.cpp' ], ],
+ },
+ { # else: posix
+ 'sources/': [ [ 'exclude', 'compiler/translator/ossource_win.cpp' ], ],
+ }
+ ],
+ ],
+ },
+ ],
+}