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

Side by Side Diff: src/platform/cryptohome/SConstruct

Issue 553044: Use packaged libchrome and libchromeos rather than in-tree references (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/platform/cryptohome/debian/changelog » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import os 5 import os
6 import sys 6 import sys
7 7
8 env = Environment() 8 env = Environment()
9 9
10 # define generic dbus server/client bindings builders 10 # define generic dbus server/client bindings builders
11 dbus_server_builder = Builder(action = 'dbus-binding-tool --mode=glib-server --p refix=`basename $SOURCE .xml` $SOURCE > $TARGET') 11 dbus_server_builder = Builder(action = 'dbus-binding-tool --mode=glib-server --p refix=`basename $SOURCE .xml` $SOURCE > $TARGET')
12 dbus_client_builder = Builder(action = 'dbus-binding-tool --mode=glib-client --p refix=`basename $SOURCE .xml` $SOURCE > $TARGET') 12 dbus_client_builder = Builder(action = 'dbus-binding-tool --mode=glib-client --p refix=`basename $SOURCE .xml` $SOURCE > $TARGET')
13 env.Append(BUILDERS = { 'DbusServerBindings' : dbus_server_builder, 13 env.Append(BUILDERS = { 'DbusServerBindings' : dbus_server_builder,
14 'DbusClientBindings' : dbus_client_builder}) 14 'DbusClientBindings' : dbus_client_builder})
15 # setup sources 15 # setup sources
16 serverlib_sources = env.Split("""service.cc 16 serverlib_sources = env.Split("""service.cc
17 interface.cc 17 interface.cc
18 """) 18 """)
19 server_sources = env.Split("""cryptohomed.cc""") 19 server_sources = env.Split("""cryptohomed.cc""")
20 example_sources = env.Split("""example_client.cc 20 example_sources = env.Split("""example_client.cc
21 """) 21 """)
22 test_sources = env.Split("""service_unittest.cc 22 test_sources = env.Split("""service_unittest.cc
23 cryptohome_testrunner.cc 23 cryptohome_testrunner.cc
24 """) 24 """)
25 25
26 26
27 27
28 env.Append( 28 env.Append(
29 CPPPATH=[ '.', '../../common', '..', '../../third_party/chrome/files'], 29 CPPPATH=['.', '..'],
30 CPPFLAGS=['-pie', '-fstack-protector-all', '-m32', 30 CPPFLAGS=['-pie', '-fstack-protector-all', '-m32',
31 '-fno-exceptions', '-O2', '-Wall', '-Werror'], 31 '-fno-exceptions', '-O2', '-Wall', '-Werror'],
32 LINKFLAGS=['-m32' ], 32 LINKFLAGS=['-m32' ],
33 LIBS = ['base', 'chromeos', 'rt'], 33 LIBS = ['base', 'chromeos', 'rt'],
34 LIBPATH=['../../common', '../../third_party/chrome'],
35 ) 34 )
36 env.ParseConfig('pkg-config --cflags --libs gobject-2.0 dbus-1 dbus-glib-1') 35 env.ParseConfig('pkg-config --cflags --libs gobject-2.0 dbus-1 dbus-glib-1')
37 36
38 env_serverlib = env.Clone() 37 env_serverlib = env.Clone()
39 env_serverlib.DbusServerBindings('bindings/server.h', 'cryptohome.xml') 38 env_serverlib.DbusServerBindings('bindings/server.h', 'cryptohome.xml')
40 env_serverlib.SharedLibrary('cryptohome_service', serverlib_sources) 39 env_serverlib.SharedLibrary('cryptohome_service', serverlib_sources)
41 40
42 env_server = env.Clone() 41 env_server = env.Clone()
43 env_server.Append(LIBPATH = ['.'], LIBS=['cryptohome_service']) 42 env_server.Append(LIBPATH = ['.'], LIBS=['cryptohome_service'])
44 env_server.Program('cryptohomed', server_sources) 43 env_server.Program('cryptohomed', server_sources)
45 44
46 # TODO(wad) we'll probably want a separate runner for client roundtrip tests 45 # TODO(wad) we'll probably want a separate runner for client roundtrip tests
47 env_tests = env.Clone() 46 env_tests = env.Clone()
48 env_tests.Append(LIBPATH = ['.'], LIBS=['cryptohome_service', 'gtest']) 47 env_tests.Append(LIBPATH = ['.'], LIBS=['cryptohome_service', 'gtest'])
49 env_tests.Program('cryptohome_testrunner', test_sources) 48 env_tests.Program('cryptohome_testrunner', test_sources)
50 49
51 env_client = env.Clone() 50 env_client = env.Clone()
52 env_client.DbusClientBindings('bindings/client.h', 'cryptohome.xml') 51 env_client.DbusClientBindings('bindings/client.h', 'cryptohome.xml')
53 env_client.Append(LIBPATH = ['.']) 52 env_client.Append(LIBPATH = ['.'])
54 env_client.Program('example_client', example_sources) 53 env_client.Program('example_client', example_sources)
OLDNEW
« no previous file with comments | « no previous file | src/platform/cryptohome/debian/changelog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698