OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'variables': { | 6 'variables': { |
7 }, | 7 }, |
8 'targets': [ | 8 'targets': [ |
9 { | 9 { |
10 'target_name': 'cygprofile', | 10 'target_name': 'cygprofile', |
11 'type': 'static_library', | 11 'type': 'static_library', |
12 'include_dirs': [ '../..', ], | 12 'include_dirs': [ '../..', ], |
| 13 'conditions': [ |
| 14 [ 'OS == "android"', { |
| 15 'sources': [ |
| 16 'cygprofile_android.h', |
| 17 'cygprofile_android.cc', |
| 18 ], |
| 19 }, |
| 20 { # OS != "android" |
| 21 'sources': [ |
| 22 'cygprofile.cc', |
| 23 ], |
| 24 'cflags!': [ '-finstrument-functions' ], |
| 25 'cflags': [ '-std=c++0x' ], # for unordered_set |
| 26 }], |
| 27 ], |
| 28 }, |
| 29 { |
| 30 'target_name': 'cygprofile_android_test', |
| 31 'type': 'executable', |
| 32 'dependencies': [ |
| 33 './cygprofile.gyp:cygprofile', |
| 34 ], |
13 'sources': [ | 35 'sources': [ |
14 'cygprofile.cc', | 36 'cygprofile_android_unittest.cc', |
15 ], | 37 ], |
16 'cflags!': [ '-finstrument-functions' ], | |
17 'cflags': [ '-std=c++0x' ], # for unordered_set | |
18 }, | 38 }, |
19 ], | 39 ], |
20 } | 40 } |
OLD | NEW |