OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 Import('env') | 6 Import('env') |
7 | 7 |
8 # Underlay $SOURCE_ROOT/gpu in this directory. | 8 # Underlay $SOURCE_ROOT/gpu in this directory. |
9 Dir('.').addRepository(Dir('#/../gpu')) | 9 Dir('.').addRepository(Dir('#/../gpu')) |
10 | 10 |
11 # To enable getting the generated include files and sources and also common and | 11 # To enable getting the generated include files and sources and also common and |
12 # client GPU command buffer sources. | 12 # client GPU command buffer sources. |
13 env.Append(CPPPATH= | 13 env.Append(CPPPATH= |
14 ['${SOURCE_ROOT}/native_client/src/shared/ppapi_proxy/untrusted', | 14 ['${SOURCE_ROOT}/native_client/src/shared/ppapi_proxy/untrusted', |
15 '$SOURCE_ROOT/third_party/khronos', '$SOURCE_ROOT/gpu']) | 15 '$SOURCE_ROOT/third_party/khronos', '$SOURCE_ROOT/gpu']) |
16 | 16 |
17 env.Append(CPPDEFINES=['XP_UNIX']) | 17 env.Append(CPPDEFINES=['XP_UNIX']) |
18 env.FilterOut(CCFLAGS=['-Wswitch-enum']) | 18 env.FilterOut(CCFLAGS=['-Wswitch-enum']) |
19 env.Append(CCFLAGS=['-Wno-long-long']) | 19 env.Append(CCFLAGS=['-Wno-long-long']) |
20 | 20 |
21 command_buffer_common_srcs = [ | 21 command_buffer_common_srcs = [ |
22 'command_buffer/common/cmd_buffer_common.cc', | 22 'command_buffer/common/cmd_buffer_common.cc', |
23 'command_buffer/common/gles2_cmd_format.cc', | 23 'command_buffer/common/gles2_cmd_format.cc', |
24 'command_buffer/common/gles2_cmd_utils.cc', | 24 'command_buffer/common/gles2_cmd_utils.cc', |
25 'command_buffer/common/logging.cc', | 25 'command_buffer/common/logging.cc', |
26 ] | 26 ] |
27 | 27 |
28 command_buffer_client_srcs = [ | 28 command_buffer_client_srcs = [ |
29 'command_buffer/client/atomicops.cc', | 29 'command_buffer/client/atomicops.cc', |
| 30 'command_buffer/client/buffer_tracker.cc', |
30 'command_buffer/client/cmd_buffer_helper.cc', | 31 'command_buffer/client/cmd_buffer_helper.cc', |
31 'command_buffer/client/fenced_allocator.cc', | 32 'command_buffer/client/fenced_allocator.cc', |
32 'command_buffer/client/gles2_c_lib.cc', | 33 'command_buffer/client/gles2_c_lib.cc', |
33 'command_buffer/client/gles2_cmd_helper.cc', | 34 'command_buffer/client/gles2_cmd_helper.cc', |
34 'command_buffer/client/gles2_implementation.cc', | 35 'command_buffer/client/gles2_implementation.cc', |
35 'command_buffer/client/program_info_manager.cc', | 36 'command_buffer/client/program_info_manager.cc', |
36 'command_buffer/client/gles2_lib.cc', | 37 'command_buffer/client/gles2_lib.cc', |
37 'command_buffer/client/mapped_memory.cc', | 38 'command_buffer/client/mapped_memory.cc', |
38 'command_buffer/client/query_tracker.cc', | 39 'command_buffer/client/query_tracker.cc', |
39 'command_buffer/client/ring_buffer.cc', | 40 'command_buffer/client/ring_buffer.cc', |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 'srpc', | 121 'srpc', |
121 'gio', | 122 'gio', |
122 'platform', | 123 'platform', |
123 ]) | 124 ]) |
124 | 125 |
125 header_install = env.AddHeaderToSdk(['ppruntime.h']) | 126 header_install = env.AddHeaderToSdk(['ppruntime.h']) |
126 env.AddLibraryToSdk(libppruntime) | 127 env.AddLibraryToSdk(libppruntime) |
127 | 128 |
128 # Clients that overload main() will use ppruntime.h. | 129 # Clients that overload main() will use ppruntime.h. |
129 env.Requires(libppruntime, header_install) | 130 env.Requires(libppruntime, header_install) |
OLD | NEW |