author | Gustavo J. A. M. Carneiro <gjc@inescporto.pt> |
Fri, 05 Sep 2008 18:16:29 +0100 | |
changeset 3625 | 30afad8324d5 |
parent 3570 | 44b0bc6817c6 |
child 3906 | 01acc159ffb1 |
permissions | -rw-r--r-- |
1878
f947cd18f0bb
Create a new contrib module; move event-garbage-collector.{h,cc} to the contrib module.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff
changeset
|
1 |
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
f947cd18f0bb
Create a new contrib module; move event-garbage-collector.{h,cc} to the contrib module.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff
changeset
|
2 |
|
3063
a1c532e3bf18
a basic but useful Gtk+-based config-store
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2958
diff
changeset
|
3 |
def configure(conf): |
a1c532e3bf18
a basic but useful Gtk+-based config-store
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2958
diff
changeset
|
4 |
check = conf.create_pkgconfig_configurator() |
3085
dd7a6e76c739
Require gtk+ >= 2.12; closes #182
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3063
diff
changeset
|
5 |
check.name = 'gtk+-2.0 >= 2.12' |
3063
a1c532e3bf18
a basic but useful Gtk+-based config-store
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2958
diff
changeset
|
6 |
check.uselib = 'GTK_CONFIG_STORE' |
a1c532e3bf18
a basic but useful Gtk+-based config-store
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2958
diff
changeset
|
7 |
check.mandatory = False |
a1c532e3bf18
a basic but useful Gtk+-based config-store
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2958
diff
changeset
|
8 |
conf.env['ENABLE_GTK_CONFIG_STORE'] = check.run() |
3625
30afad8324d5
Add a summary of optional features at the end of the configuration stage.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3570
diff
changeset
|
9 |
conf.report_optional_feature("GtkConfigStore", "GtkConfigStore", |
30afad8324d5
Add a summary of optional features at the end of the configuration stage.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3570
diff
changeset
|
10 |
conf.env['ENABLE_GTK_CONFIG_STORE'], |
30afad8324d5
Add a summary of optional features at the end of the configuration stage.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3570
diff
changeset
|
11 |
"library 'gtk+-2.0 >= 2.12' not found") |
30afad8324d5
Add a summary of optional features at the end of the configuration stage.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3570
diff
changeset
|
12 |
|
3570
44b0bc6817c6
Stats module and example merged in.
tjkopena@cs.drexel.edu
parents:
3085
diff
changeset
|
13 |
conf.sub_config('stats') |
3063
a1c532e3bf18
a basic but useful Gtk+-based config-store
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2958
diff
changeset
|
14 |
|
1878
f947cd18f0bb
Create a new contrib module; move event-garbage-collector.{h,cc} to the contrib module.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff
changeset
|
15 |
def build(bld): |
f947cd18f0bb
Create a new contrib module; move event-garbage-collector.{h,cc} to the contrib module.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff
changeset
|
16 |
module = bld.create_ns3_module('contrib', ['simulator']) |
f947cd18f0bb
Create a new contrib module; move event-garbage-collector.{h,cc} to the contrib module.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff
changeset
|
17 |
module.source = [ |
f947cd18f0bb
Create a new contrib module; move event-garbage-collector.{h,cc} to the contrib module.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff
changeset
|
18 |
'event-garbage-collector.cc', |
1879
876026968947
Gnuplot output class for contrib module
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1878
diff
changeset
|
19 |
'gnuplot.cc', |
2266
d0e656113f71
updated doxygen
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1879
diff
changeset
|
20 |
'delay-jitter-estimation.cc', |
3063
a1c532e3bf18
a basic but useful Gtk+-based config-store
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2958
diff
changeset
|
21 |
'attribute-iterator.cc', |
2958
f6ec069d17da
ConfigStore allows you to dump and read from a file a simulation configuration
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2609
diff
changeset
|
22 |
'config-store.cc', |
1878
f947cd18f0bb
Create a new contrib module; move event-garbage-collector.{h,cc} to the contrib module.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff
changeset
|
23 |
] |
f947cd18f0bb
Create a new contrib module; move event-garbage-collector.{h,cc} to the contrib module.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff
changeset
|
24 |
|
f947cd18f0bb
Create a new contrib module; move event-garbage-collector.{h,cc} to the contrib module.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff
changeset
|
25 |
headers = bld.create_obj('ns3header') |
2609
931d59bb1303
Add a 'module' attribute to the ns3header object specifying which module each set of headers belongs to.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
2266
diff
changeset
|
26 |
headers.module = 'contrib' |
1878
f947cd18f0bb
Create a new contrib module; move event-garbage-collector.{h,cc} to the contrib module.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff
changeset
|
27 |
headers.source = [ |
f947cd18f0bb
Create a new contrib module; move event-garbage-collector.{h,cc} to the contrib module.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff
changeset
|
28 |
'event-garbage-collector.h', |
1879
876026968947
Gnuplot output class for contrib module
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1878
diff
changeset
|
29 |
'gnuplot.h', |
2266
d0e656113f71
updated doxygen
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1879
diff
changeset
|
30 |
'delay-jitter-estimation.h', |
2958
f6ec069d17da
ConfigStore allows you to dump and read from a file a simulation configuration
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2609
diff
changeset
|
31 |
'config-store.h', |
1878
f947cd18f0bb
Create a new contrib module; move event-garbage-collector.{h,cc} to the contrib module.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff
changeset
|
32 |
] |
3063
a1c532e3bf18
a basic but useful Gtk+-based config-store
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2958
diff
changeset
|
33 |
|
a1c532e3bf18
a basic but useful Gtk+-based config-store
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2958
diff
changeset
|
34 |
if bld.env()['ENABLE_GTK_CONFIG_STORE']: |
a1c532e3bf18
a basic but useful Gtk+-based config-store
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2958
diff
changeset
|
35 |
headers.source.append ('gtk-config-store.h') |
a1c532e3bf18
a basic but useful Gtk+-based config-store
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2958
diff
changeset
|
36 |
module.source.append ('gtk-config-store.cc') |
a1c532e3bf18
a basic but useful Gtk+-based config-store
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2958
diff
changeset
|
37 |
module.uselib = 'GTK_CONFIG_STORE' |