| 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('env') | |
| 7 | |
| 8 # Underlay $SOURCE_ROOT/gpu in this directory. | |
| 9 Dir('.').addRepository(Dir('#/../gpu')) | |
| 10 | |
| 11 # To enable getting the generated include files and sources and also common and | |
| 12 # client GPU command buffer sources. | |
| 13 env.Append(CPPPATH= | |
| 14 ['${SOURCE_ROOT}/native_client/src/shared/ppapi_proxy/untrusted', | |
| 15 '$SOURCE_ROOT/third_party/khronos', '$SOURCE_ROOT/gpu']) | |
| 16 | |
| 17 env.Append(CPPDEFINES=['XP_UNIX']) | |
| 18 env.FilterOut(CCFLAGS=['-Wswitch-enum']) | |
| 19 env.Append(CCFLAGS=['-Wno-long-long']) | |
| 20 | |
| 21 command_buffer_common_srcs = [ | |
| 22 'command_buffer/common/cmd_buffer_common.cc', | |
| 23 'command_buffer/common/debug_marker_manager.cc', | |
| 24 'command_buffer/common/gles2_cmd_format.cc', | |
| 25 'command_buffer/common/gles2_cmd_utils.cc', | |
| 26 'command_buffer/common/logging.cc', | |
| 27 ] | |
| 28 | |
| 29 command_buffer_client_srcs = [ | |
| 30 'command_buffer/client/atomicops.cc', | |
| 31 'command_buffer/client/cmd_buffer_helper.cc', | |
| 32 'command_buffer/client/fenced_allocator.cc', | |
| 33 'command_buffer/client/gles2_c_lib.cc', | |
| 34 'command_buffer/client/gles2_cmd_helper.cc', | |
| 35 'command_buffer/client/gles2_implementation.cc', | |
| 36 'command_buffer/client/program_info_manager.cc', | |
| 37 'command_buffer/client/gles2_lib.cc', | |
| 38 'command_buffer/client/mapped_memory.cc', | |
| 39 'command_buffer/client/query_tracker.cc', | |
| 40 'command_buffer/client/ring_buffer.cc', | |
| 41 'command_buffer/client/share_group.cc', | |
| 42 'command_buffer/client/transfer_buffer.cc', | |
| 43 'command_buffer/common/id_allocator.cc', | |
| 44 ] | |
| 45 | |
| 46 command_buffer_srcs = command_buffer_common_srcs + command_buffer_client_srcs; | |
| 47 | |
| 48 libppruntime = env.NaClSdkLibrary( | |
| 49 'libppruntime', | |
| 50 ['command_buffer_nacl.cc', | |
| 51 'input_event_data.cc', | |
| 52 'object_serialize.cc', | |
| 53 'plugin_callback.cc', | |
| 54 'plugin_globals.cc', | |
| 55 'plugin_instance_data.cc', | |
| 56 'plugin_main.cc', | |
| 57 'plugin_opengles.cc', | |
| 58 'plugin_ppb.cc', | |
| 59 'plugin_ppb_audio.cc', | |
| 60 'plugin_ppb_audio_config.cc', | |
| 61 'plugin_ppb_buffer.cc', | |
| 62 'plugin_ppb_core.cc', | |
| 63 'plugin_ppb_file_io.cc', | |
| 64 'plugin_ppb_file_system.cc', | |
| 65 'plugin_ppb_file_ref.cc', | |
| 66 'plugin_ppb_find.cc', | |
| 67 'plugin_ppb_font.cc', | |
| 68 'plugin_ppb_fullscreen.cc', | |
| 69 'plugin_ppb_gamepad.cc', | |
| 70 'plugin_ppb_graphics_2d.cc', | |
| 71 'plugin_ppb_graphics_3d.cc', | |
| 72 'plugin_ppb_host_resolver_private.cc', | |
| 73 'plugin_ppb_image_data.cc', | |
| 74 'plugin_ppb_input_event.cc', | |
| 75 'plugin_ppb_instance.cc', | |
| 76 'plugin_ppb_memory.cc', | |
| 77 'plugin_ppb_messaging.cc', | |
| 78 'plugin_ppb_mouse_cursor.cc', | |
| 79 'plugin_ppb_mouse_lock.cc', | |
| 80 'plugin_ppb_net_address_private.cc', | |
| 81 'plugin_ppb_network_list_private.cc', | |
| 82 'plugin_ppb_network_monitor_private.cc', | |
| 83 'plugin_ppb_tcp_server_socket_private.cc', | |
| 84 'plugin_ppb_tcp_socket_private.cc', | |
| 85 'plugin_ppb_testing.cc', | |
| 86 'plugin_ppb_udp_socket_private.cc', | |
| 87 'plugin_ppb_url_loader.cc', | |
| 88 'plugin_ppb_url_request_info.cc', | |
| 89 'plugin_ppb_url_response_info.cc', | |
| 90 'plugin_ppb_var.cc', | |
| 91 'plugin_ppb_view.cc', | |
| 92 'plugin_ppb_websocket.cc', | |
| 93 'plugin_ppb_zoom.cc', | |
| 94 'plugin_ppp_find_rpc_server.cc', | |
| 95 'plugin_ppp_input_event_rpc_server.cc', | |
| 96 'plugin_ppp_instance_rpc_server.cc', | |
| 97 'plugin_ppp_messaging_rpc_server.cc', | |
| 98 'plugin_ppp_mouse_lock_rpc_server.cc', | |
| 99 'plugin_ppp_printing_rpc_server.cc', | |
| 100 'plugin_ppp_selection_rpc_server.cc', | |
| 101 'plugin_ppp_zoom_rpc_server.cc', | |
| 102 'plugin_ppp_rpc_server.cc', | |
| 103 'plugin_resource.cc', | |
| 104 'plugin_resource_tracker.cc', | |
| 105 'plugin_upcall.cc', | |
| 106 'ppp_instance_combined.cc', | |
| 107 'proxy_var.cc', | |
| 108 'proxy_var_cache.cc', | |
| 109 'utility.cc', | |
| 110 'view_data.cc', | |
| 111 # Autogenerated files | |
| 112 'ppp_rpc_server.cc', | |
| 113 'ppb_rpc_client.cc', | |
| 114 'upcall_client.cc'] + command_buffer_srcs, | |
| 115 LIBS=['pthread', | |
| 116 'srpc', | |
| 117 'gio', | |
| 118 'platform', | |
| 119 ]) | |
| 120 | |
| 121 header_install = env.AddHeaderToSdk(['ppruntime.h']) | |
| 122 env.AddLibraryToSdk(libppruntime) | |
| 123 | |
| 124 # Clients that overload main() will use ppruntime.h. | |
| 125 env.Requires(libppruntime, header_install) | |
| OLD | NEW |