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

Unified Diff: src/platform/autox/SConstruct

Issue 551133: autox: Rename xtest to autox and package it. (Closed)
Patch Set: remove xtest from wm .gitignore Created 10 years, 11 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
« no previous file with comments | « src/platform/autox/README ('k') | src/platform/autox/autox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/autox/SConstruct
diff --git a/src/platform/autox/SConstruct b/src/platform/autox/SConstruct
new file mode 100644
index 0000000000000000000000000000000000000000..1bc6779d7f2d96006213defa2bb5d21c6879edf7
--- /dev/null
+++ b/src/platform/autox/SConstruct
@@ -0,0 +1,27 @@
+# Copyright (c) 2010 The Chromium OS 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 os
+
+env = Environment()
+for key in Split('CC CXX AR RANLIB LD NM'):
+ value = os.environ.get(key)
+ if value != None:
+ env[key] = value
+for key in Split('CFLAGS CCFLAGS CPPPATH LIBPATH'):
+ value = os.environ.get(key)
+ if value != None:
+ env[key] = Split(value)
+if not env.get('CCFLAGS'):
+ env.Append(CCFLAGS=Split('-I.. -Wall -Werror -O3'))
+
+# Fix issue with scons not passing pkg-config vars through the environment.
+for key in Split('PKG_CONFIG_LIBDIR PKG_CONFIG_PATH'):
+ if os.environ.has_key(key):
+ env['ENV'][key] = os.environ[key]
+
+env.Append(CPPPATH=['..'])
+env.Append(LIBS=Split('base chromeos rt Xtst'))
+env.ParseConfig('pkg-config --cflags --libs libpcrecpp x11')
+env.Program('autox', 'autox.cc')
« no previous file with comments | « src/platform/autox/README ('k') | src/platform/autox/autox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698