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

Unified Diff: src/platform/update_engine/SConstruct

Issue 2044001: AU: Minor fixes to get it to do full update on real device (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: fixes for review Created 10 years, 7 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 | src/platform/update_engine/action.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/update_engine/SConstruct
diff --git a/src/platform/update_engine/SConstruct b/src/platform/update_engine/SConstruct
index dc05e37276af4ba93c4cb7d6678e00b241a079fa..5adf16b4f883b2c5fa80f7a16e63077953c3c10c 100644
--- a/src/platform/update_engine/SConstruct
+++ b/src/platform/update_engine/SConstruct
@@ -94,21 +94,21 @@ for key in Split('PKG_CONFIG_LIBDIR PKG_CONFIG_PATH SYSROOT'):
env['ENV'][key] = os.environ[key]
- # -Wclobbered
- # -Wempty-body
- # -Wignored-qualifiers
- # -Wtype-limits
env['CCFLAGS'] = ' '.join("""-g
-fno-exceptions
-fno-strict-aliasing
-Wall
-Wclobbered
+ -Wclobbered
+ -Wempty-body
-Wempty-body
-Werror
-Wignored-qualifiers
+ -Wignored-qualifiers
-Wmissing-field-initializers
-Wsign-compare
-Wtype-limits
+ -Wtype-limits
-Wuninitialized
-D__STDC_FORMAT_MACROS=1
-D_FILE_OFFSET_BITS=64
@@ -120,7 +120,6 @@ env['LIBS'] = Split("""base
curl
gflags
glib-2.0
- gtest
gthread-2.0
libpcrecpp
protobuf
@@ -216,16 +215,22 @@ client_main = ['update_engine_client.cc']
delta_generator_main = ['generate_delta_main.cc']
-env.Program('update_engine', sources + main)
-unittest_cmd = env.Program('update_engine_unittests',
- sources + unittest_sources + unittest_main)
-client_cmd = env.Program('update_engine_client', sources + client_main);
+update_engine_core = env.Library('update_engine_core', sources)
+env.Prepend(LIBS=[update_engine_core])
-Clean(unittest_cmd, Glob('*.gcda') + Glob('*.gcno') + Glob('*.gcov') +
- Split('html app.info'))
+env.Program('update_engine', main)
+
+client_cmd = env.Program('update_engine_client', client_main);
delta_generator_cmd = env.Program('delta_generator',
- sources + delta_generator_main)
+ delta_generator_main)
http_server_cmd = env.Program('test_http_server', 'test_http_server.cc')
+
+unittest_env = env.Clone()
+unittest_env.Append(LIBS=['gtest'])
+unittest_cmd = unittest_env.Program('update_engine_unittests',
+ unittest_sources + unittest_main)
+Clean(unittest_cmd, Glob('*.gcda') + Glob('*.gcno') + Glob('*.gcov') +
+ Split('html app.info'))
« no previous file with comments | « no previous file | src/platform/update_engine/action.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698