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