Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/build.scons

Issue 7740013: Cloning a bunch of stuff from the native_client repository at r6528 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # -*- python -*-
2 # Copyright 2011 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can
4 # be found in the LICENSE file.
5
6 import os
7
8 Import('env')
9
10 # To get generated include files.
11 env.Append(CPPPATH=
12 ['${SOURCE_ROOT}/native_client/src/shared/ppapi_proxy/trusted'])
13
14 if env.Bit('linux'):
15 env.Append(
16 CCFLAGS=['-fPIC', '-Wno-long-long',],
17 # Catch unresolved symbols in libraries.
18 LINKFLAGS=['-Wl,-z,defs'],
19 )
20
21 if env.Bit('mac'):
22 env.Append(
23 CCFLAGS=['-Wno-long-long'],
24 CPPDEFINES = [ ['TARGET_API_MAC_CARBON', '1'], 'USE_SYSTEM_CONSOLE', ],
25 FRAMEWORKS = ['Carbon'],
26 )
27
28 if env.Bit('windows'):
29 env.Append(
30 CPPDEFINES = ['WIN32', '_WINDOWS'],
31 )
32
33
34 # The PPAPI RPCs are specified abstractly via .srpc files.
35 # Once a .srpc file is added to the TrustedSrpc rules below, the low-level
36 # server/client proxies and stubs can be generated automatically using
37 # scons --mode=opt-linux/mac/win srpcgen
38 # scons --mode=dbg-linux/mac/win sprcgen
39 # The .cc files are written to ./ and .h files - to ./trusted/srpcgen/.
40 # The generated files must be committed when changes are made to .srpc files.
41
42 env.TrustedSrpc(is_client=True,
43 srpc_files=['completion_callback.srpc',
44 'ppp.srpc',
45 'ppp_audio.srpc',
46 'ppp_find.srpc',
47 'ppp_input_event.srpc',
48 'ppp_instance.srpc',
49 'ppp_messaging.srpc',
50 'ppp_printing.srpc',
51 'ppp_scrollbar.srpc',
52 'ppp_selection.srpc',
53 'ppp_widget.srpc',
54 'ppp_zoom.srpc',
55 ],
56 name='PppRpcs',
57 h_file='ppp_rpc.h',
58 cc_file='ppp_rpc_client.cc',
59 guard='GEN_PPAPI_PROXY_PPP_RPC_H_')
60
61 env.TrustedSrpc(is_client=False,
62 srpc_files=['nacl_file.srpc',
63 'ppb.srpc',
64 'ppb_audio.srpc',
65 'ppb_audio_config.srpc',
66 'ppb_core.srpc',
67 'ppb_cursor_control.srpc',
68 'ppb_file_io.srpc',
69 'ppb_file_ref.srpc',
70 'ppb_file_system.srpc',
71 'ppb_find.srpc',
72 'ppb_font.srpc',
73 'ppb_graphics_2d.srpc',
74 'ppb_graphics_3d.srpc',
75 'ppb_image_data.srpc',
76 'ppb_input_event.srpc',
77 'ppb_instance.srpc',
78 'ppb_messaging.srpc',
79 'ppb_pdf.srpc',
80 'ppb_scrollbar.srpc',
81 'ppb_testing.srpc',
82 'ppb_url_loader.srpc',
83 'ppb_url_request_info.srpc',
84 'ppb_url_response_info.srpc',
85 'ppb_widget.srpc',
86 'ppb_zoom.srpc',
87 ],
88 name='PpbRpcs',
89 h_file='ppb_rpc.h',
90 cc_file='ppb_rpc_server.cc',
91 guard='GEN_PPAPI_PROXY_PPB_RPC_H_')
92
93 env.TrustedSrpc(is_client=False,
94 srpc_files=['upcall.srpc'],
95 name='PpbUpcalls',
96 h_file='upcall.h',
97 cc_file='upcall_server.cc',
98 guard='GEN_PPAPI_PROXY_UPCALL_H_')
99
100
101 common_obj = env.DualObject(['utility.cc'])
102
103 env.DualLibrary('ppapi_browser',
104 ['browser_callback.cc',
105 'browser_globals.cc',
106 'browser_nacl_file_rpc_server.cc',
107 'browser_ppb_audio_rpc_server.cc',
108 'browser_ppb_audio_config_rpc_server.cc',
109 'browser_ppb_core_rpc_server.cc',
110 'browser_ppb_cursor_control_rpc_server.cc',
111 'browser_ppb_file_io_rpc_server.cc',
112 'browser_ppb_file_ref_rpc_server.cc',
113 'browser_ppb_file_system_rpc_server.cc',
114 'browser_ppb_find_rpc_server.cc',
115 'browser_ppb_font_rpc_server.cc',
116 'browser_ppb_graphics_2d_rpc_server.cc',
117 'browser_ppb_graphics_3d_rpc_server.cc',
118 'browser_ppb_image_data_rpc_server.cc',
119 'browser_ppb_input_event_rpc_server.cc',
120 'browser_ppb_instance_rpc_server.cc',
121 'browser_ppb_messaging_rpc_server.cc',
122 'browser_ppb_pdf_rpc_server.cc',
123 'browser_ppb_rpc_server.cc',
124 'browser_ppb_scrollbar_rpc_server.cc',
125 'browser_ppb_testing_rpc_server.cc',
126 'browser_ppb_url_loader_rpc_server.cc',
127 'browser_ppb_url_request_info_rpc_server.cc',
128 'browser_ppb_url_response_info_rpc_server.cc',
129 'browser_ppb_widget_rpc_server.cc',
130 'browser_ppb_zoom_rpc_server.cc',
131 'browser_ppp_find.cc',
132 'browser_ppp_input_event.cc',
133 'browser_ppp_instance.cc',
134 'browser_ppp_messaging.cc',
135 'browser_ppp_printing.cc',
136 'browser_ppp_scrollbar.cc',
137 'browser_ppp_selection.cc',
138 'browser_ppp_widget.cc',
139 'browser_ppp_zoom.cc',
140 'browser_ppp.cc',
141 'browser_upcall.cc',
142 'input_event_data.cc',
143 'object_serialize.cc',
144 # Autogenerated files
145 'ppb_rpc_server.cc',
146 'ppp_rpc_client.cc',
147 'upcall_server.cc',
148 common_obj,])
149
150 # Do a recursive diff of all files found in the first source directory against
151 # all the checked in versions of the files
152 node = env.CommandTest(
153 'srpc_diff.out',
154 command=['${PYTHON}', '${SOURCE_ROOT}/native_client/tools/diff.py', '-arv',
155 '${TARGET_ROOT}/srpcgen/src',
156 '${SOURCE_ROOT}/native_client/src'])
157
158 # Add a dependency on the 'srpcdif' alias for the previous command
159 env.Depends(node, Alias('srpcdif'))
160
161 # Create an alias for the command and add it to the standard small test.
162 # This test verifies that the checked in SRPC generated files are
163 # actually up to date. We ignore ARM which generates false negatives.
164 # This is okay, since all try/builds should reproduce the same result
165 # this is a check on what is in source control, and generated files are
166 # platform independent.
167 if not env.Bit('target_arm'):
168 env.AddNodeToTestSuite(node, ['small_tests'], 'run_srpcgen_test')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698