blob: 112edcd0dccce18e87246af79434a3911bb11628 [file] [log] [blame]
[email protected]b42370e2011-01-22 01:13:091# Copyright (c) 2010 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{
6 'targets': [
7 {
8 'target_name': 'ppapi_c',
9 'type': 'none',
10 'all_dependent_settings': {
11 'include_dirs': [
12 '..',
13 ],
14 },
15 'sources': [
16 'c/pp_bool.h',
17 'c/pp_completion_callback.h',
18 'c/pp_errors.h',
19 'c/pp_input_event.h',
20 'c/pp_instance.h',
21 'c/pp_macros.h',
22 'c/pp_module.h',
23 'c/pp_point.h',
24 'c/pp_rect.h',
25 'c/pp_resource.h',
26 'c/pp_size.h',
27 'c/pp_stdint.h',
28 'c/pp_time.h',
29 'c/pp_var.h',
30 'c/ppb.h',
31 'c/ppb_audio.h',
32 'c/ppb_audio_config.h',
33 'c/ppb_core.h',
34 'c/ppb_class.h',
35 'c/ppb_graphics_2d.h',
36 'c/ppb_image_data.h',
37 'c/ppb_instance.h',
38 'c/ppb_url_loader.h',
39 'c/ppb_url_request_info.h',
40 'c/ppb_url_response_info.h',
41 'c/ppb_var.h',
42 'c/ppp.h',
43 'c/ppp_instance.h',
44
45 # Dev interfaces.
46 'c/dev/pp_cursor_type_dev.h',
47 'c/dev/pp_file_info_dev.h',
48 'c/dev/pp_graphics_3d_dev.h',
49 'c/dev/pp_video_dev.h',
50 'c/dev/ppb_buffer_dev.h',
51 'c/dev/ppb_char_set_dev.h',
52 'c/dev/ppb_context_3d_dev.h',
[email protected]4d60b7f2011-01-26 06:48:2553 'c/dev/ppb_context_3d_trusted_dev.h',
[email protected]b42370e2011-01-22 01:13:0954 'c/dev/ppb_cursor_control_dev.h',
55 'c/dev/ppb_directory_reader_dev.h',
56 'c/dev/ppb_file_chooser_dev.h',
57 'c/dev/ppb_file_io_dev.h',
58 'c/dev/ppb_file_io_trusted_dev.h',
59 'c/dev/ppb_file_ref_dev.h',
60 'c/dev/ppb_file_system_dev.h',
61 'c/dev/ppb_find_dev.h',
62 'c/dev/ppb_font_dev.h',
63 'c/dev/ppb_fullscreen_dev.h',
64 'c/dev/ppb_graphics_3d_dev.h',
65 'c/dev/ppb_opengles_dev.h',
66 'c/dev/ppb_scrollbar_dev.h',
67 'c/dev/ppb_surface_3d_dev.h',
68 'c/dev/ppb_testing_dev.h',
69 'c/dev/ppb_transport_dev.h',
70 'c/dev/ppb_url_util_dev.h',
71 'c/dev/ppb_video_decoder_dev.h',
72 'c/dev/ppb_widget_dev.h',
73 'c/dev/ppb_zoom_dev.h',
74 'c/dev/ppp_cursor_control_dev.h',
75 'c/dev/ppp_find_dev.h',
76 'c/dev/ppp_graphics_3d_dev.h',
77 'c/dev/ppp_scrollbar_dev.h',
78 'c/dev/ppp_selection_dev.h',
79 'c/dev/ppp_printing_dev.h',
80 'c/dev/ppp_widget_dev.h',
81 'c/dev/ppp_zoom_dev.h',
82
83 # Private interfaces.
84 'c/private/ppb_flash.h',
[email protected]b29aa74b2011-01-31 21:41:0885 'c/private/ppb_flash_menu.h',
[email protected]b42370e2011-01-22 01:13:0986 'c/private/ppb_nacl_private.h',
87 'c/private/ppb_pdf.h',
88
89 # Deprecated interfaces.
90 'c/dev/deprecated_bool.h',
91 'c/dev/ppb_var_deprecated.h',
92 'c/dev/ppp_class_deprecated.h',
93
94 # Trusted interfaces.
95 'c/trusted/ppb_audio_trusted.h',
96 'c/trusted/ppb_image_data_trusted.h',
97 'c/trusted/ppb_url_loader_trusted.h',
98 ],
99 },
100 {
101 'target_name': 'ppapi_cpp_objects',
102 'type': 'static_library',
103 'dependencies': [
104 'ppapi_c'
105 ],
106 'include_dirs': [
107 '..',
108 ],
109 'sources': [
110 'cpp/audio.cc',
111 'cpp/audio.h',
112 'cpp/audio_config.cc',
113 'cpp/audio_config.h',
114 'cpp/common.h',
115 'cpp/completion_callback.h',
116 'cpp/core.cc',
117 'cpp/core.h',
118 'cpp/graphics_2d.cc',
119 'cpp/graphics_2d.h',
120 'cpp/image_data.cc',
121 'cpp/image_data.h',
122 'cpp/instance.cc',
123 'cpp/instance.h',
124 'cpp/logging.h',
125 'cpp/module.cc',
126 'cpp/module.h',
127 'cpp/module_impl.h',
128 'cpp/non_thread_safe_ref_count.h',
129 'cpp/paint_aggregator.cc',
130 'cpp/paint_aggregator.h',
131 'cpp/paint_manager.cc',
132 'cpp/paint_manager.h',
133 'cpp/point.h',
134 'cpp/rect.cc',
135 'cpp/rect.h',
136 'cpp/resource.cc',
137 'cpp/resource.h',
138 'cpp/size.h',
139 'cpp/url_loader.cc',
140 'cpp/url_loader.h',
141 'cpp/url_request_info.cc',
142 'cpp/url_request_info.h',
143 'cpp/url_response_info.cc',
144 'cpp/url_response_info.h',
145 'cpp/var.cc',
146 'cpp/var.h',
147
148 # Dev interfaces.
149 'cpp/dev/buffer_dev.cc',
150 'cpp/dev/buffer_dev.h',
151 'cpp/dev/context_3d_dev.cc',
152 'cpp/dev/context_3d_dev.h',
153 'cpp/dev/directory_entry_dev.cc',
154 'cpp/dev/directory_entry_dev.h',
155 'cpp/dev/directory_reader_dev.cc',
156 'cpp/dev/directory_reader_dev.h',
157 'cpp/dev/file_chooser_dev.cc',
158 'cpp/dev/file_chooser_dev.h',
159 'cpp/dev/file_io_dev.cc',
160 'cpp/dev/file_io_dev.h',
161 'cpp/dev/file_ref_dev.cc',
162 'cpp/dev/file_ref_dev.h',
163 'cpp/dev/file_system_dev.cc',
164 'cpp/dev/file_system_dev.h',
165 'cpp/dev/find_dev.cc',
166 'cpp/dev/find_dev.h',
167 'cpp/dev/font_dev.cc',
168 'cpp/dev/font_dev.h',
169 'cpp/dev/fullscreen_dev.cc',
170 'cpp/dev/fullscreen_dev.h',
171 'cpp/dev/graphics_3d_client_dev.cc',
172 'cpp/dev/graphics_3d_client_dev.h',
173 'cpp/dev/graphics_3d_dev.cc',
174 'cpp/dev/graphics_3d_dev.h',
175 'cpp/dev/printing_dev.cc',
176 'cpp/dev/printing_dev.h',
177 'cpp/dev/scrollbar_dev.cc',
178 'cpp/dev/scrollbar_dev.h',
179 'cpp/dev/selection_dev.cc',
180 'cpp/dev/selection_dev.h',
181 'cpp/dev/surface_3d_dev.cc',
182 'cpp/dev/surface_3d_dev.h',
183 'cpp/dev/transport_dev.cc',
184 'cpp/dev/transport_dev.h',
185 'cpp/dev/url_util_dev.cc',
186 'cpp/dev/url_util_dev.h',
187 'cpp/dev/video_decoder_dev.cc',
188 'cpp/dev/video_decoder_dev.h',
189 'cpp/dev/widget_client_dev.cc',
190 'cpp/dev/widget_client_dev.h',
191 'cpp/dev/widget_dev.cc',
192 'cpp/dev/widget_dev.h',
193 'cpp/dev/zoom_dev.cc',
194 'cpp/dev/zoom_dev.h',
195
196 # Deprecated interfaces.
197 'cpp/dev/scriptable_object_deprecated.h',
198 'cpp/dev/scriptable_object_deprecated.cc',
199 ],
200 'conditions': [
201 ['OS=="win"', {
202 'msvs_guid': 'AD371A1D-3459-4E2D-8E8A-881F4B83B908',
203 'msvs_settings': {
204 'VCCLCompilerTool': {
205 'AdditionalOptions': ['/we4244'], # implicit conversion, possible loss of data
206 },
207 },
208 }],
209 ['OS=="linux"', {
210 'cflags': ['-Wextra', '-pedantic'],
211 }],
212 ['OS=="mac"', {
213 'xcode_settings': {
214 'WARNING_CFLAGS': ['-Wextra', '-pedantic'],
215 },
216 }]
217 ],
218 },
219 {
220 'target_name': 'ppapi_cpp',
221 'type': 'static_library',
222 'dependencies': [
223 'ppapi_c',
224 'ppapi_cpp_objects',
225 ],
226 'include_dirs': [
227 '..',
228 ],
229 'sources': [
230 'cpp/module_embedder.h',
231 'cpp/ppp_entrypoints.cc',
232 ],
233 'conditions': [
234 ['OS=="win"', {
235 'msvs_guid': '057E7FA0-83C0-11DF-8395-0800200C9A66',
236 }],
237 ['OS=="linux"', {
238 'cflags': ['-Wextra', '-pedantic'],
239 }],
240 ['OS=="mac"', {
241 'xcode_settings': {
242 'WARNING_CFLAGS': ['-Wextra', '-pedantic'],
243 },
244 }]
245 ],
246 },
247 ],
248}