| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'targets': [ | 6 'targets': [ |
| 7 { | 7 { |
| 8 # GN: //tools/cygprofile |
| 8 'target_name': 'cygprofile', | 9 'target_name': 'cygprofile', |
| 9 'type': 'static_library', | 10 'type': 'static_library', |
| 10 'include_dirs': [ '../..', ], | 11 'include_dirs': [ '../..', ], |
| 11 'sources': [ | 12 'sources': [ |
| 12 'cygprofile.cc', | 13 'cygprofile.cc', |
| 13 'cygprofile.h', | 14 'cygprofile.h', |
| 14 ], | 15 ], |
| 15 'cflags!': [ '-finstrument-functions' ], | 16 'cflags!': [ '-finstrument-functions' ], |
| 16 'dependencies': [ | 17 'dependencies': [ |
| 17 # This adds uninstrumented symbols to the static library from base. | 18 # This adds uninstrumented symbols to the static library from base. |
| 18 # These symbols are likely *not* to be used because there are many | 19 # These symbols are likely *not* to be used because there are many |
| 19 # other duplicates in other objects/libraries. | 20 # other duplicates in other objects/libraries. |
| 20 '../../base/base.gyp:base', | 21 '../../base/base.gyp:base', |
| 21 ], | 22 ], |
| 22 }, | 23 }, |
| 23 { | 24 { |
| 25 # GN: //tools/cygprofile:cygprofile_unittests |
| 24 'target_name': 'cygprofile_unittests', | 26 'target_name': 'cygprofile_unittests', |
| 25 'type': 'executable', | 27 'type': 'executable', |
| 26 'include_dirs': [ '../..', ], | 28 'include_dirs': [ '../..', ], |
| 27 'sources': [ | 29 'sources': [ |
| 28 'cygprofile_unittest.cc', | 30 'cygprofile_unittest.cc', |
| 29 ], | 31 ], |
| 30 'cflags!': [ '-finstrument-functions' ], | 32 'cflags!': [ '-finstrument-functions' ], |
| 31 # TODO(azarchs): Fix the underlying problem (crbug/485542) | 33 # TODO(azarchs): Fix the underlying problem (crbug/485542) |
| 32 'ldflags': [ '-Wl,--no-fatal-warnings' ], | 34 'ldflags': [ '-Wl,--no-fatal-warnings' ], |
| 33 'dependencies': [ | 35 'dependencies': [ |
| 34 'cygprofile', | 36 'cygprofile', |
| 35 '../../base/base.gyp:base', | 37 '../../base/base.gyp:base', |
| 36 '../../testing/gtest.gyp:gtest', | 38 '../../testing/gtest.gyp:gtest', |
| 37 ], | 39 ], |
| 38 }, | 40 }, |
| 39 ], | 41 ], |
| 40 } | 42 } |
| OLD | NEW |