root/trunk/libffado/external/dbus/SConscript

Revision 593, 1.4 kB (checked in by arnonym, 13 years ago)

Clean up the default environment even more.

This makes externalenv redundant.

Line 
1 #
2 # library
3 #
4
5 import os
6 import sys
7
8 Import( 'env' )
9 dbus_env = env.Copy()
10
11 if dbus_env.has_key('DBUS1_FLAGS'):
12     dbus_env.MergeFlags( dbus_env['DBUS1_FLAGS'] )
13
14 # add the local version of libdbus++
15 dbus_env.AppendUnique( CPPPATH=["#/external/dbus/include"] )
16 dbus_env.AppendUnique( LIBPATH=[dbus_env['build_base']+"external/dbus"])
17 dbus_env.AppendUnique( LIBS=["dbus-c++"] )
18 dbus_env.AppendUnique( CCFLAGS=["-DDBUS_API_SUBJECT_TO_CHANGE"] )
19
20 sources = [
21         'src/connection.cpp',
22         'src/debug.cpp',
23         'src/dispatcher.cpp',
24         'src/error.cpp',
25         'src/eventloop.cpp',
26         'src/interface.cpp',
27         'src/introspection.cpp',
28         'src/property.cpp',
29         'src/message.cpp',
30         'src/object.cpp',
31         'src/pendingcall.cpp',
32         'src/server.cpp',
33         'src/types.cpp'
34 ]
35
36 if dbus_env.has_key('DEBUG') and dbus_env['DEBUG']:
37         dbus_env.AppendUnique( CCFLAGS=["-DDEBUG","-g"] )
38
39 dbus_env.PrependUnique( LIBS=["expat"] )
40 libdbuspp=dbus_env.StaticLibrary('dbus-c++', sources)
41
42 #
43 # tools
44 #
45
46 tools_env = dbus_env
47
48 introspect_sources = [
49         'tools/introspect.cpp',
50 ]
51
52 xml2cpp_sources = [
53         'tools/xml.cpp','tools/xml2cpp.cpp'
54 ]
55
56 tools_env.AppendUnique( CCFLAGS=["-DDBUS_API_SUBJECT_TO_CHANGE"] )
57 tools_env.AppendUnique( CPPPATH=["#/external/dbus/include"] )
58 tools_env.PrependUnique( LIBPATH=dbus_env['build_base']+"external/dbus" )
59 tools_env.PrependUnique( LIBS="dbus-c++" )
60
61 dbusxx_introspect = tools_env.Program('dbusxx-introspect', introspect_sources)
62 dbusxx_xml2cpp = tools_env.Program('dbusxx-xml2cpp', xml2cpp_sources)
63
Note: See TracBrowser for help on using the browser.