niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 1 | # Copyright (c) 2009 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 | # TODO: Rename files to use *_linux.cpp etc. names, to automatically include relevant files. Remove conditions section. |
| 6 | |
| 7 | { |
| 8 | 'includes': [ |
| 9 | '../../common_settings.gypi', # Common settings |
| 10 | ], |
| 11 | 'targets': [ |
| 12 | { |
| 13 | 'target_name': 'system_wrappers', |
| 14 | 'type': '<(library)', |
| 15 | 'include_dirs': [ |
| 16 | 'spreadsortlib', |
| 17 | '../interface', |
| 18 | ], |
| 19 | 'direct_dependent_settings': { |
| 20 | 'include_dirs': [ |
| 21 | '../interface', |
| 22 | ], |
| 23 | }, |
| 24 | 'sources': [ |
| 25 | '../interface/aligned_malloc.h', |
| 26 | '../interface/atomic32_wrapper.h', |
| 27 | '../interface/condition_variable_wrapper.h', |
| 28 | '../interface/cpu_wrapper.h', |
| 29 | '../interface/cpu_features_wrapper.h', |
| 30 | '../interface/critical_section_wrapper.h', |
stefan@webrtc.org | c9cff24 | 2011-08-29 07:39:02 +0000 | [diff] [blame^] | 31 | '../interface/data_log.h', |
| 32 | '../interface/data_log_impl.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 33 | '../interface/event_wrapper.h', |
| 34 | '../interface/file_wrapper.h', |
| 35 | '../interface/list_wrapper.h', |
| 36 | '../interface/map_wrapper.h', |
| 37 | '../interface/rw_lock_wrapper.h', |
stefan@webrtc.org | c9cff24 | 2011-08-29 07:39:02 +0000 | [diff] [blame^] | 38 | '../interface/scoped_ptr.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 39 | '../interface/sort.h', |
| 40 | '../interface/thread_wrapper.h', |
| 41 | '../interface/tick_util.h', |
| 42 | '../interface/trace.h', |
| 43 | 'aligned_malloc.cc', |
| 44 | 'atomic32.cc', |
| 45 | 'atomic32_linux.h', |
| 46 | 'atomic32_mac.h', |
| 47 | 'atomic32_windows.h', |
| 48 | 'condition_variable.cc', |
ajm@google.com | b5c49ff | 2011-08-01 17:04:04 +0000 | [diff] [blame] | 49 | 'condition_variable_posix.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 50 | 'condition_variable_windows.h', |
| 51 | 'cpu.cc', |
| 52 | 'cpu_linux.h', |
| 53 | 'cpu_mac.h', |
| 54 | 'cpu_windows.h', |
| 55 | 'cpu_features.cc', |
| 56 | 'critical_section.cc', |
ajm@google.com | b5c49ff | 2011-08-01 17:04:04 +0000 | [diff] [blame] | 57 | 'critical_section_posix.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 58 | 'critical_section_windows.h', |
| 59 | 'event.cc', |
ajm@google.com | b5c49ff | 2011-08-01 17:04:04 +0000 | [diff] [blame] | 60 | 'event_posix.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 61 | 'event_windows.h', |
| 62 | 'file_impl.cc', |
| 63 | 'file_impl.h', |
| 64 | 'list_no_stl.cc', |
| 65 | 'map.cc', |
| 66 | 'rw_lock.cc', |
ajm@google.com | b5c49ff | 2011-08-01 17:04:04 +0000 | [diff] [blame] | 67 | 'rw_lock_posix.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 68 | 'rw_lock_windows.h', |
| 69 | 'sort.cc', |
| 70 | 'thread.cc', |
ajm@google.com | b5c49ff | 2011-08-01 17:04:04 +0000 | [diff] [blame] | 71 | 'thread_posix.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 72 | 'thread_windows.h', |
| 73 | 'trace_impl.cc', |
| 74 | 'trace_impl.h', |
ajm@google.com | b5c49ff | 2011-08-01 17:04:04 +0000 | [diff] [blame] | 75 | 'trace_posix.h', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 76 | 'trace_windows.h', |
| 77 | ], |
| 78 | 'conditions': [ |
ajm@google.com | b5c49ff | 2011-08-01 17:04:04 +0000 | [diff] [blame] | 79 | ['os_posix==1', { |
| 80 | 'sources': [ |
| 81 | 'condition_variable_posix.cc', |
| 82 | 'critical_section_posix.cc', |
| 83 | 'event_posix.cc', |
| 84 | 'rw_lock_posix.cc', |
| 85 | 'thread_posix.cc', |
| 86 | 'trace_posix.cc', |
| 87 | ], |
| 88 | }], |
stefan@webrtc.org | c9cff24 | 2011-08-29 07:39:02 +0000 | [diff] [blame^] | 89 | ['enable_data_logging==1', { |
| 90 | 'sources': [ |
| 91 | 'data_log.cc', |
| 92 | ], |
| 93 | },{ |
| 94 | 'sources': [ |
| 95 | 'data_log_dummy.cc', |
| 96 | ], |
| 97 | },], |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 98 | ['OS=="linux"', { |
| 99 | 'sources': [ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 100 | 'cpu_linux.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 101 | ], |
| 102 | 'link_settings': { |
| 103 | 'libraries': [ |
| 104 | '-lrt', |
| 105 | ], |
| 106 | }, |
| 107 | }], |
| 108 | ['OS=="mac"', { |
| 109 | 'sources': [ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 110 | 'cpu_mac.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 111 | ], |
zakkhoyt@google.com | 59af6f1 | 2011-08-25 20:30:25 +0000 | [diff] [blame] | 112 | 'link_settings': { |
| 113 | 'libraries': [ |
| 114 | '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework', |
| 115 | ], |
| 116 | }, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 117 | }], |
| 118 | ['OS=="win"', { |
| 119 | 'sources': [ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 120 | 'condition_variable_windows.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 121 | 'cpu_windows.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 122 | 'critical_section_windows.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 123 | 'event_windows.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 124 | 'rw_lock_windows.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 125 | 'thread_windows.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 126 | 'trace_windows.cc', |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 127 | ], |
| 128 | 'link_settings': { |
| 129 | 'libraries': [ |
| 130 | '-lwinmm.lib', |
| 131 | ], |
| 132 | }, |
| 133 | }], |
ajm@google.com | b5c49ff | 2011-08-01 17:04:04 +0000 | [diff] [blame] | 134 | ] # conditions |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 135 | }, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 136 | ], # targets |
xians@google.com | 8706256 | 2011-08-08 12:08:15 +0000 | [diff] [blame] | 137 | 'conditions': [ |
| 138 | ['build_with_chromium==0', { |
| 139 | 'targets': [ |
| 140 | { |
| 141 | 'target_name': 'system_wrappersTest', |
| 142 | 'type': 'executable', |
| 143 | 'dependencies': [ |
| 144 | 'system_wrappers' |
| 145 | ], |
| 146 | 'sources': [ |
| 147 | '../test/Test.cpp', |
| 148 | ], |
| 149 | }, |
| 150 | ], # targets |
| 151 | }], # build_with_chromium |
| 152 | ], # conditions |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 153 | } |
| 154 | |
| 155 | # Local Variables: |
| 156 | # tab-width:2 |
| 157 | # indent-tabs-mode:nil |
| 158 | # End: |
| 159 | # vim: set expandtab tabstop=2 shiftwidth=2: |