| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 # GYP: //tools/cygprofile/cygprofile.gyp:cygprofile | |
| 6 static_library("cygprofile") { | 5 static_library("cygprofile") { |
| 7 sources = [ | 6 sources = [ |
| 8 "cygprofile.cc", | 7 "cygprofile.cc", |
| 9 "cygprofile.h", | 8 "cygprofile.h", |
| 10 ] | 9 ] |
| 11 | 10 |
| 12 configs -= [ "//build/config/android:default_cygprofile_instrumentation" ] | 11 configs -= [ "//build/config/android:default_cygprofile_instrumentation" ] |
| 13 configs += [ "//build/config/android:no_cygprofile_instrumentation" ] | 12 configs += [ "//build/config/android:no_cygprofile_instrumentation" ] |
| 14 | 13 |
| 15 deps = [ | 14 deps = [ |
| 16 # This adds uninstrumented symbols to the static library from base. | 15 # This adds uninstrumented symbols to the static library from base. |
| 17 # These symbols are likely *not* to be used because there are many other | 16 # These symbols are likely *not* to be used because there are many other |
| 18 # duplicates in other objects/libraries. | 17 # duplicates in other objects/libraries. |
| 19 "//base", | 18 "//base", |
| 20 ] | 19 ] |
| 21 } | 20 } |
| 22 | 21 |
| 23 # GYP: //tools/cygprofile/cygprofile.gyp:cygprofile_unittests | |
| 24 executable("cygprofile_unittests") { | 22 executable("cygprofile_unittests") { |
| 25 testonly = true | 23 testonly = true |
| 26 | 24 |
| 27 sources = [ | 25 sources = [ |
| 28 "cygprofile_unittest.cc", | 26 "cygprofile_unittest.cc", |
| 29 ] | 27 ] |
| 30 | 28 |
| 31 configs -= [ "//build/config/android:default_cygprofile_instrumentation" ] | 29 configs -= [ "//build/config/android:default_cygprofile_instrumentation" ] |
| 32 configs += [ "//build/config/android:no_cygprofile_instrumentation" ] | 30 configs += [ "//build/config/android:no_cygprofile_instrumentation" ] |
| 33 | 31 |
| 34 deps = [ | 32 deps = [ |
| 35 ":cygprofile", | 33 ":cygprofile", |
| 36 "//base", | 34 "//base", |
| 37 "//testing/gtest", | 35 "//testing/gtest", |
| 38 ] | 36 ] |
| 39 } | 37 } |
| OLD | NEW |