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

Unified Diff: src/platform/update_engine/SConstruct

Issue 1599029: update engine: 32- and 64-bit compile (Closed)
Patch Set: int32->int32_t, PRIi64, 80 cols for review Created 10 years, 8 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: src/platform/update_engine/SConstruct
diff --git a/src/platform/update_engine/SConstruct b/src/platform/update_engine/SConstruct
index 8854abcc7c682db25c2e92543e899a90a22834b7..41dc94f8796027cfc9eec8f095ecc718c9f80920 100644
--- a/src/platform/update_engine/SConstruct
+++ b/src/platform/update_engine/SConstruct
@@ -40,8 +40,23 @@ proto_builder = Builder(generator = ProtocolBufferGenerator,
suffix = '.pb.cc')
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)
+
+for key in Split('PKG_CONFIG_LIBDIR PKG_CONFIG_PATH SYSROOT'):
+ if os.environ.has_key(key):
+ env['ENV'][key] = os.environ[key]
+
+
env['CCFLAGS'] = ' '.join("""-g
-fno-exceptions
+ -fno-strict-aliasing
-Wall
-Werror
-Wclobbered
@@ -51,10 +66,13 @@ env['CCFLAGS'] = ' '.join("""-g
-Wsign-compare
-Wtype-limits
-Wuninitialized
+ -D__STDC_FORMAT_MACROS=1
-D_FILE_OFFSET_BITS=64
-I/usr/include/libxml2""".split());
+env['CCFLAGS'] += (' ' + ' '.join(env['CFLAGS']))
env['LIBS'] = Split("""base
+ bz2
curl
gflags
glib-2.0
@@ -123,7 +141,6 @@ unittest_sources = Split("""action_unittest.cc
extent_mapper_unittest.cc
extent_writer_unittest.cc
file_writer_unittest.cc
- filesystem_copier_action_unittest.cc
filesystem_iterator_unittest.cc
graph_utils_unittest.cc
http_fetcher_unittest.cc
« no previous file with comments | « no previous file | src/platform/update_engine/action_processor.cc » ('j') | src/platform/update_engine/extent_writer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698