Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(756)

Unified Diff: o3d/build/gyp_o3d

Issue 206006: Force inclusion of build/common.gypi for all chromium gyp files. (Closed)
Patch Set: 2nd round of feedback Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: o3d/build/gyp_o3d
diff --git a/o3d/build/gyp_o3d b/o3d/build/gyp_o3d
new file mode 100644
index 0000000000000000000000000000000000000000..2603b29e092c15d83e966885cd2dfbd460f24763
--- /dev/null
+++ b/o3d/build/gyp_o3d
@@ -0,0 +1,24 @@
+#!/usr/bin/python
+
+# This script is wrapper for O3D when compiling independently of chromium.
+# Like in chromium, the gyp_chromium.gypi include is forced in.
+
+import glob
+import os
+import shlex
+import sys
+
+try:
+ import gyp
+except ImportError, e:
+ sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), '../../tools/gyp/pylib'))
+ import gyp
+
+if __name__ == '__main__':
+ args = sys.argv[1:]
+
+ # Always include gyp_chromium.gypi
+ args += ['-I', os.path.join(os.path.dirname(sys.argv[0]),'../../build/gyp_chromium.gypi')]
+
+ # Off we go...
+ sys.exit(gyp.main(args))
« o3d/DEPS_gyp ('K') | « o3d/build/common.gypi ('k') | printing/printing.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698