OLD | NEW |
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 SOURCES=['chromeos_power.cc', 'chromeos_mount.cc', | 8 SOURCES=['chromeos_power.cc', 'chromeos_language.cc', 'chromeos_mount.cc', |
9 'chromeos_network.cc', 'marshal.cc', | 9 'chromeos_network.cc', 'marshal.cc', |
10 'version_check.cc', 'chromeos_synaptics.cc'] | 10 'version_check.cc', 'chromeos_synaptics.cc'] |
11 | 11 |
12 env = Environment( | 12 env = Environment( |
13 CPPPATH=[ '.', '..', '../../common', | 13 CPPPATH=[ '.', '..', '../../common', |
14 '../../third_party/synaptics', | 14 '../../third_party/synaptics', |
15 '../../third_party/chrome/files'], | 15 '../../third_party/chrome/files'], |
16 CCFLAGS=['-m32', '-fno-exceptions'], | 16 CCFLAGS=['-m32', '-fno-exceptions'], |
17 LINKFLAGS=['-m32' ], | 17 LINKFLAGS=['-m32' ], |
18 LIBS = ['base', 'chromeos', 'rt', 'synaptics'], | 18 LIBS = ['base', 'chromeos', 'rt', 'synaptics'], |
19 LIBPATH=['../../common', '../../third_party/synaptics', | 19 LIBPATH=['../../common', '../../third_party/synaptics', |
20 '../../third_party/chrome'], | 20 '../../third_party/chrome'], |
21 ) | 21 ) |
22 | 22 |
23 # glib and dbug environment | 23 # glib, dbus, and ibus environment |
24 env.ParseConfig('pkg-config --cflags --libs dbus-1 glib-2.0 dbus-glib-1 libpcrec
pp') | 24 env.ParseConfig('pkg-config --cflags --libs dbus-1 glib-2.0 dbus-glib-1 ibus-1.0
libpcrecpp') |
25 | 25 |
26 env.SharedLibrary('cros', SOURCES) | 26 env.SharedLibrary('cros', SOURCES) |
27 | 27 |
28 # so test | 28 # so test |
29 env_so = Environment ( | 29 env_so = Environment ( |
30 CPPPATH=[ '.', '../../common', '..', '../../third_party/chrome/files'], | 30 CPPPATH=[ '.', '../../common', '..', '../../third_party/chrome/files'], |
31 CCFLAGS=['-m32', '-fno-exceptions'], | 31 CCFLAGS=['-m32', '-fno-exceptions', '-ggdb'], |
32 LINKFLAGS=['-m32' ], | 32 LINKFLAGS=['-m32' ], |
33 LIBS = ['base', 'dl', 'rt'], | 33 LIBS = ['base', 'dl', 'rt'], |
34 LIBPATH=['../../common', '../../third_party/chrome'], | 34 LIBPATH=['../../common', '../../third_party/chrome'], |
35 ) | 35 ) |
36 env_so.ParseConfig('pkg-config --cflags --libs gobject-2.0') | 36 env_so.ParseConfig('pkg-config --cflags --libs gobject-2.0') |
37 env_so.Program('monitor_power', ['monitor_power.cc', 'load.cc']) | 37 env_so.Program('monitor_power', ['monitor_power.cc', 'load.cc']) |
| 38 env_so.Program('monitor_language', ['monitor_language.cc', 'load.cc']) |
38 env_so.Program('monitor_network', ['monitor_network.cc', 'load.cc']) | 39 env_so.Program('monitor_network', ['monitor_network.cc', 'load.cc']) |
39 env_so.Program('monitor_mount', ['monitor_mount.cc', 'load.cc']) | 40 env_so.Program('monitor_mount', ['monitor_mount.cc', 'load.cc']) |
OLD | NEW |