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 / |
| 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': 'hdump', |
| 31 'type': 'executable', |
| 32 'sources': ['hdump.c'], |
| 33 }, |
| 34 { |
| 35 'target_name': 'heap_profiler_unittest', |
| 36 'type': '<(gtest_target_type)', |
| 37 'sources': ['heap_profiler_unittest.cc'], |
| 38 'dependencies': [ |
| 39 'heap_profiler_core', |
| 40 '../../../testing/gtest.gyp:gtest', |
| 41 ], |
| 42 'include_dirs': ['../../..'], |
| 43 'conditions': [ |
| 44 ['OS == "android"', |
| 45 { |
| 46 'dependencies': [ |
| 47 '../../../testing/android/native_test.gyp:native_test_native_code'
, |
| 48 ], |
| 49 } |
| 50 ], |
| 51 ] |
| 52 }, |
| 53 ], |
| 54 'conditions': [ |
| 55 ['OS == "android"', { |
| 56 'targets': [ |
| 57 { |
| 58 'target_name': 'heap_profiler_unittest_apk', |
| 59 'type': 'none', |
| 60 'dependencies': ['heap_profiler_unittest'], |
| 61 'variables': { |
| 62 'test_suite_name': 'heap_profiler_unittest', |
| 63 }, |
| 64 'includes': [ '../../../build/apk_test.gypi' ], |
| 65 }, |
| 66 ], |
| 67 }], |
| 68 ], |
| 69 } |
OLD | NEW |