OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'targets': [ | |
7 { | |
8 # libheap_profiler is the library which will be preloaded in the Zygote / | |
pasko
2014/06/10 16:59:52
nit:
you could mention LD_PRELOAD here to be more
Primiano Tucci (use gerrit)
2014/06/19 12:27:17
Done.
| |
9 # target process and contains the black magic to hook malloc/mmap calls. | |
10 'target_name': 'heap_profiler', | |
11 'type': 'shared_library', | |
12 'sources': [ | |
13 'heap_profiler_hooks_android.c', | |
14 ], | |
15 'include_dirs': ['../../..'], | |
16 'dependencies': ['heap_profiler_core'], | |
17 }, | |
18 { | |
19 # heap_profiler_core contains only the tracking metadata code without any | |
20 # hooks. It is required by both the hprof library itself and the unittest. | |
21 'target_name': 'heap_profiler_core', | |
22 'type': 'static_library', | |
23 'sources': [ | |
24 'heap_profiler.c', | |
25 'heap_profiler.h', | |
26 ], | |
27 'include_dirs': ['../../..'], | |
28 }, | |
29 { | |
30 'target_name': 'heap_dump', | |
pasko
2014/06/10 16:59:52
nit:
change mentions of "hdump" in the commit mess
Primiano Tucci (use gerrit)
2014/06/19 12:27:17
Done.
pasko
2014/06/20 22:07:17
really done? I meant the commit message too :)
Primiano Tucci (use gerrit)
2014/06/23 14:00:32
OMG, sorry, I renamed everything but the commit me
| |
31 'type': 'executable', | |
32 'sources': ['heap_dump.c'], | |
33 'include_dirs': ['../../..'], | |
34 }, | |
35 { | |
36 'target_name': 'heap_profiler_unittest', | |
37 'type': '<(gtest_target_type)', | |
38 'sources': ['heap_profiler_unittest.cc'], | |
39 'dependencies': [ | |
40 'heap_profiler_core', | |
41 '../../../testing/gtest.gyp:gtest', | |
42 ], | |
43 'include_dirs': ['../../..'], | |
44 'conditions': [ | |
45 ['OS == "android"', | |
46 { | |
47 'dependencies': [ | |
48 '../../../testing/android/native_test.gyp:native_test_native_code' , | |
49 ], | |
50 } | |
51 ], | |
52 ] | |
53 }, | |
54 ], | |
55 'conditions': [ | |
56 ['OS == "android"', { | |
57 'targets': [ | |
58 { | |
59 'target_name': 'heap_profiler_unittest_apk', | |
60 'type': 'none', | |
61 'dependencies': ['heap_profiler_unittest'], | |
62 'variables': { | |
63 'test_suite_name': 'heap_profiler_unittest', | |
64 }, | |
65 'includes': [ '../../../build/apk_test.gypi' ], | |
66 }, | |
67 ], | |
68 }], | |
69 ], | |
70 } | |
OLD | NEW |