|
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
|
2 # vim: set filetype=python: |
|
3 # This Source Code Form is subject to the terms of the Mozilla Public |
|
4 # License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
6 |
|
7 if not CONFIG['MOZ_PROFILE_GENERATE']: |
|
8 PROGRAM = 'spacetrace' |
|
9 SOURCES += [ |
|
10 'formdata.c', |
|
11 'spacecategory.c', |
|
12 'spacetrace.c', |
|
13 ] |
|
14 |
|
15 bin_suffix = CONFIG['BIN_SUFFIX'] |
|
16 |
|
17 |
|
18 simple_c_sources = [ |
|
19 'leakstats', |
|
20 'tmstats', |
|
21 ] |
|
22 |
|
23 SOURCES += [ |
|
24 '%s.c' % s for s in simple_c_sources |
|
25 ] |
|
26 SOURCES += [ |
|
27 'tmreader.c', |
|
28 ] |
|
29 |
|
30 SIMPLE_PROGRAMS += simple_c_sources |
|
31 |
|
32 simple_cpp_sources = [ |
|
33 'bloatblame', |
|
34 'leaksoup', |
|
35 ] |
|
36 |
|
37 SOURCES += [ |
|
38 '%s.cpp' % s for s in simple_cpp_sources |
|
39 ] |
|
40 |
|
41 SIMPLE_PROGRAMS += simple_cpp_sources |
|
42 |
|
43 RESOURCE_FILES += [ |
|
44 'spacetrace.css' |
|
45 ] |