blob: a16cd73c4c6577b14f29f1d15f7c5bba43716823 [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001# 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.orgc9cff242011-08-29 07:39:02 +000031 '../interface/data_log.h',
32 '../interface/data_log_impl.h',
niklase@google.com470e71d2011-07-07 08:21:25 +000033 '../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.orgc9cff242011-08-29 07:39:02 +000038 '../interface/scoped_ptr.h',
niklase@google.com470e71d2011-07-07 08:21:25 +000039 '../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.comb5c49ff2011-08-01 17:04:04 +000049 'condition_variable_posix.h',
niklase@google.com470e71d2011-07-07 08:21:25 +000050 '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.comb5c49ff2011-08-01 17:04:04 +000057 'critical_section_posix.h',
niklase@google.com470e71d2011-07-07 08:21:25 +000058 'critical_section_windows.h',
59 'event.cc',
ajm@google.comb5c49ff2011-08-01 17:04:04 +000060 'event_posix.h',
niklase@google.com470e71d2011-07-07 08:21:25 +000061 '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.comb5c49ff2011-08-01 17:04:04 +000067 'rw_lock_posix.h',
niklase@google.com470e71d2011-07-07 08:21:25 +000068 'rw_lock_windows.h',
69 'sort.cc',
70 'thread.cc',
ajm@google.comb5c49ff2011-08-01 17:04:04 +000071 'thread_posix.h',
niklase@google.com470e71d2011-07-07 08:21:25 +000072 'thread_windows.h',
73 'trace_impl.cc',
74 'trace_impl.h',
ajm@google.comb5c49ff2011-08-01 17:04:04 +000075 'trace_posix.h',
niklase@google.com470e71d2011-07-07 08:21:25 +000076 'trace_windows.h',
77 ],
78 'conditions': [
ajm@google.comb5c49ff2011-08-01 17:04:04 +000079 ['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.orgc9cff242011-08-29 07:39:02 +000089 ['enable_data_logging==1', {
90 'sources': [
91 'data_log.cc',
92 ],
93 },{
94 'sources': [
95 'data_log_dummy.cc',
96 ],
97 },],
niklase@google.com470e71d2011-07-07 08:21:25 +000098 ['OS=="linux"', {
99 'sources': [
niklase@google.com470e71d2011-07-07 08:21:25 +0000100 'cpu_linux.cc',
niklase@google.com470e71d2011-07-07 08:21:25 +0000101 ],
102 'link_settings': {
103 'libraries': [
104 '-lrt',
105 ],
106 },
107 }],
108 ['OS=="mac"', {
109 'sources': [
niklase@google.com470e71d2011-07-07 08:21:25 +0000110 'cpu_mac.cc',
niklase@google.com470e71d2011-07-07 08:21:25 +0000111 ],
zakkhoyt@google.com59af6f12011-08-25 20:30:25 +0000112 'link_settings': {
113 'libraries': [
114 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
115 ],
116 },
niklase@google.com470e71d2011-07-07 08:21:25 +0000117 }],
118 ['OS=="win"', {
119 'sources': [
niklase@google.com470e71d2011-07-07 08:21:25 +0000120 'condition_variable_windows.cc',
niklase@google.com470e71d2011-07-07 08:21:25 +0000121 'cpu_windows.cc',
niklase@google.com470e71d2011-07-07 08:21:25 +0000122 'critical_section_windows.cc',
niklase@google.com470e71d2011-07-07 08:21:25 +0000123 'event_windows.cc',
niklase@google.com470e71d2011-07-07 08:21:25 +0000124 'rw_lock_windows.cc',
niklase@google.com470e71d2011-07-07 08:21:25 +0000125 'thread_windows.cc',
niklase@google.com470e71d2011-07-07 08:21:25 +0000126 'trace_windows.cc',
niklase@google.com470e71d2011-07-07 08:21:25 +0000127 ],
128 'link_settings': {
129 'libraries': [
130 '-lwinmm.lib',
131 ],
132 },
133 }],
ajm@google.comb5c49ff2011-08-01 17:04:04 +0000134 ] # conditions
niklase@google.com470e71d2011-07-07 08:21:25 +0000135 },
niklase@google.com470e71d2011-07-07 08:21:25 +0000136 ], # targets
xians@google.com87062562011-08-08 12:08:15 +0000137 '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.com470e71d2011-07-07 08:21:25 +0000153}
154
155# Local Variables:
156# tab-width:2
157# indent-tabs-mode:nil
158# End:
159# vim: set expandtab tabstop=2 shiftwidth=2: