blob: 04489417967b567337e9eb76fa4980e7aa7ccb76 [file] [log] [blame]
niklase@google.comf0779a22011-05-30 11:39:38 +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',
31 '../interface/event_wrapper.h',
32 '../interface/file_wrapper.h',
33 '../interface/list_wrapper.h',
34 '../interface/map_wrapper.h',
35 '../interface/rw_lock_wrapper.h',
36 '../interface/sort.h',
37 '../interface/thread_wrapper.h',
38 '../interface/tick_util.h',
39 '../interface/trace.h',
40 'aligned_malloc.cc',
41 'atomic32.cc',
42 'atomic32_linux.h',
43 'atomic32_mac.h',
44 'atomic32_windows.h',
45 'condition_variable.cc',
46 'condition_variable_linux.h',
47 'condition_variable_windows.h',
48 'cpu.cc',
49 'cpu_linux.h',
50 'cpu_mac.h',
51 'cpu_windows.h',
52 'cpu_features.cc',
53 'critical_section.cc',
54 'critical_section_linux.h',
55 'critical_section_windows.h',
56 'event.cc',
57 'event_linux.h',
58 'event_windows.h',
59 'file_impl.cc',
60 'file_impl.h',
61 'list_no_stl.cc',
62 'map.cc',
63 'rw_lock.cc',
64 'rw_lock_linux.h',
65 'rw_lock_windows.h',
66 'sort.cc',
67 'thread.cc',
68 'thread_linux.h',
69 'thread_windows.h',
70 'trace_impl.cc',
71 'trace_impl.h',
72 'trace_linux.h',
73 'trace_windows.h',
74 ],
75 'conditions': [
76 ['OS=="linux"', {
77 'sources': [
78 'condition_variable_linux.cc',
79 'cpu_linux.cc',
80 'critical_section_linux.cc',
81 'event_linux.cc',
82 'thread_linux.cc',
83 'trace_linux.cc',
84 'rw_lock_linux.cc',
85 ],
86 'link_settings': {
87 'libraries': [
88 '-lrt',
89 ],
90 },
91 }],
92 ['OS=="mac"', {
93 'sources': [
94 'condition_variable_linux.cc',
95 'cpu_mac.cc',
96 'critical_section_linux.cc',
97 'event_linux.cc',
98 'rw_lock_linux.cc',
99 'thread_linux.cc',
100 'trace_linux.cc',
101 ],
102 }],
103 ['OS=="win"', {
104 'sources': [
105 'atomic32_windows.h',
106 'condition_variable_windows.cc',
107 'condition_variable_windows.h',
108 'cpu_windows.cc',
109 'cpu_windows.h',
110 'critical_section_windows.cc',
111 'critical_section_windows.h',
112 'event_windows.cc',
113 'event_windows.h',
114 'rw_lock_windows.cc',
115 'rw_lock_windows.h',
116 'thread_windows.cc',
117 'thread_windows.h',
118 'trace_windows.cc',
119 'trace_windows.h',
120 ],
121 'link_settings': {
122 'libraries': [
123 '-lwinmm.lib',
124 ],
125 },
126 }],
127 ] # conditions
128 },
129 {
130 'target_name': 'system_wrappersTest',
131 'type': 'executable',
132 'dependencies': [
133 'system_wrappers'
134 ],
135 'sources': [
136 '../test/Test.cpp',
137 ],
138 },
139 ], # targets
140}
141
142# Local Variables:
143# tab-width:2
144# indent-tabs-mode:nil
145# End:
146# vim: set expandtab tabstop=2 shiftwidth=2: