| OLD | NEW |
| (Empty) |
| 1 # -*- python -*- | |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 3 # Use of this source code is governed by a BSD-style license that can be | |
| 4 # 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 common_obj = env.DualObject(['utility.cc']) | |
| 34 | |
| 35 env.DualLibrary('ppapi_browser', | |
| 36 ['browser_callback.cc', | |
| 37 'browser_globals.cc', | |
| 38 'browser_ppb_audio_rpc_server.cc', | |
| 39 'browser_ppb_audio_config_rpc_server.cc', | |
| 40 'browser_ppb_core_rpc_server.cc', | |
| 41 'browser_ppb_file_io_rpc_server.cc', | |
| 42 'browser_ppb_file_ref_rpc_server.cc', | |
| 43 'browser_ppb_file_system_rpc_server.cc', | |
| 44 'browser_ppb_find_rpc_server.cc', | |
| 45 'browser_ppb_font_rpc_server.cc', | |
| 46 'browser_ppb_fullscreen_rpc_server.cc', | |
| 47 'browser_ppb_gamepad_rpc_server.cc', | |
| 48 'browser_ppb_graphics_2d_rpc_server.cc', | |
| 49 'browser_ppb_graphics_3d_rpc_server.cc', | |
| 50 'browser_ppb_host_resolver_private_rpc_server.cc', | |
| 51 'browser_ppb_image_data_rpc_server.cc', | |
| 52 'browser_ppb_input_event_rpc_server.cc', | |
| 53 'browser_ppb_instance_rpc_server.cc', | |
| 54 'browser_ppb_messaging_rpc_server.cc', | |
| 55 'browser_ppb_mouse_cursor_rpc_server.cc', | |
| 56 'browser_ppb_mouse_lock_rpc_server.cc', | |
| 57 'browser_ppb_net_address_private_rpc_server.cc', | |
| 58 'browser_ppb_network_list_private_rpc_server.cc', | |
| 59 'browser_ppb_network_monitor_private_rpc_server.cc', | |
| 60 'browser_ppb_rpc_server.cc', | |
| 61 'browser_ppb_tcp_server_socket_private_rpc_server.cc', | |
| 62 'browser_ppb_tcp_socket_private_rpc_server.cc', | |
| 63 'browser_ppb_testing_rpc_server.cc', | |
| 64 'browser_ppb_udp_socket_private_rpc_server.cc', | |
| 65 'browser_ppb_url_loader_rpc_server.cc', | |
| 66 'browser_ppb_url_request_info_rpc_server.cc', | |
| 67 'browser_ppb_url_response_info_rpc_server.cc', | |
| 68 'browser_ppb_websocket_rpc_server.cc', | |
| 69 'browser_ppb_zoom_rpc_server.cc', | |
| 70 'browser_ppp_find.cc', | |
| 71 'browser_ppp_input_event.cc', | |
| 72 'browser_ppp_instance.cc', | |
| 73 'browser_ppp_messaging.cc', | |
| 74 'browser_ppp_mouse_lock.cc', | |
| 75 'browser_ppp_printing.cc', | |
| 76 'browser_ppp_selection.cc', | |
| 77 'browser_ppp_zoom.cc', | |
| 78 'browser_ppp.cc', | |
| 79 'browser_upcall.cc', | |
| 80 'input_event_data.cc', | |
| 81 'object_serialize.cc', | |
| 82 # Autogenerated files | |
| 83 'ppb_rpc_server.cc', | |
| 84 'ppp_rpc_client.cc', | |
| 85 'upcall_server.cc', | |
| 86 'view_data.cc', | |
| 87 common_obj,]) | |
| 88 | |
| 89 | |
| 90 # The PPAPI RPCs are specified abstractly via .srpc files. | |
| 91 # Add new .srpc files to the appropriate list in run_srpcgen.py | |
| 92 # and then run that script. | |
| 93 # The .cc files are written to ./ and .h files to ./{un,}trusted/srpcgen/. | |
| 94 # The generated files must be committed when changes are made to .srpc files. | |
| 95 # | |
| 96 # run_srpcgen.py --diff_mode verifies that these files are not out of date. | |
| OLD | NEW |