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

Unified Diff: SConstruct

Issue 3048029: Initial version of tpm_init, a library for taking ownership of the TPM. (Closed) Base URL: ssh://git@chromiumos-git/tpm_init.git
Patch Set: Minor fix to the error code check from TakeOwnership. Created 10 years, 5 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 | « no previous file | crypto.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: SConstruct
diff --git a/SConstruct b/SConstruct
new file mode 100644
index 0000000000000000000000000000000000000000..603beefd674adca6e57b36a826c56d463931e9d6
--- /dev/null
+++ b/SConstruct
@@ -0,0 +1,39 @@
+# Copyright (c) 2009 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
+import sys
+
+env = Environment()
+
+# setup sources
+lib_sources = env.Split("""crypto.cc
+ secure_blob.cc
+ tpm.cc
+ tpm_init.cc
+ """)
+client_sources = env.Split("""main.cc
+ """) + lib_sources
+
+env.Append(
+ CPPPATH=['.', '..'],
+ CPPFLAGS=['-pie', '-fstack-protector-all', '-fPIC',
+ '-fno-exceptions', '-O2', '-Wall', '-Werror'],
+ LIBS = ['base', 'chromeos', 'crypto', 'rt', 'pthread', 'tspi'],
+)
+for key in Split('CC CXX AR RANLIB LD NM CFLAGS CCFLAGS'):
+ value = os.environ.get(key)
+ if value != None:
+ env[key] = value
+
+# Fix issue with scons not passing some vars through the environment.
+for key in Split('PKG_CONFIG_LIBDIR PKG_CONFIG_PATH SYSROOT'):
+ if os.environ.has_key(key):
+ env['ENV'][key] = os.environ[key]
+
+env.Append(LIBPATH = ['.'])
+
+env_lib = env.Clone()
+env_lib.Library('tpm_init', lib_sources)
+
« no previous file with comments | « no previous file | crypto.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698