blob: 855c800e6cae2f7732c16c7559d1362a5611e226 [file] [log] [blame]
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
{
'targets': [
{
'target_name': 'nb',
'type': 'static_library',
'variables': {
'includes_starboard': 1,
},
'sources': [
'allocator.h',
'allocator_decorator.cc',
'allocator_decorator.h',
'analytics/memory_tracker.cc',
'analytics/memory_tracker.h',
'analytics/memory_tracker_impl.cc',
'analytics/memory_tracker_impl.h',
'analytics/memory_tracker_helpers.cc',
'analytics/memory_tracker_helpers.h',
'atomic.h',
'fixed_no_free_allocator.cc',
'fixed_no_free_allocator.h',
'hash.cc',
'hash.h',
'memory_pool.cc',
'memory_pool.h',
'memory_scope.cc',
'memory_scope.h',
'move.h',
'pointer_arithmetic.h',
'rect.h',
'ref_counted.cc',
'ref_counted.h',
'reuse_allocator.cc',
'reuse_allocator.h',
'scoped_ptr.h',
'thread_collision_warner.cc',
'thread_collision_warner.h',
'thread_local_object.h',
],
'dependencies': [
'<(DEPTH)/starboard/starboard.gyp:starboard',
],
'conditions': [
['target_arch == "ps4"', {
'sources': [
'kernel_contiguous_allocator_ps4.cc',
'kernel_contiguous_allocator_ps4.h',
'kernel_no_free_allocator_ps4.cc',
'kernel_no_free_allocator_ps4.h',
],
}],
],
},
{
'target_name': 'nb_test',
'type': '<(gtest_target_type)',
'sources': [
'analytics/memory_tracker_helpers_test.cc',
'analytics/memory_tracker_impl_test.cc',
'analytics/memory_tracker_test.cc',
'atomic_test.cc',
'fixed_no_free_allocator_test.cc',
'memory_scope_test.cc',
'reuse_allocator_test.cc',
'run_all_unittests.cc',
'test_thread.h',
'thread_local_object_test.cc',
],
'dependencies': [
'nb',
'<(DEPTH)/testing/gmock.gyp:gmock',
'<(DEPTH)/testing/gtest.gyp:gtest',
],
},
{
'target_name': 'nb_test_deploy',
'type': 'none',
'dependencies': [
'nb_test',
],
'variables': {
'executable_name': 'nb_test',
},
'includes': [ '../starboard/build/deploy.gypi' ],
},
{
'target_name': 'reuse_allocator_benchmark',
'type': '<(gtest_target_type)',
'sources': [
'reuse_allocator_benchmark.cc',
],
'dependencies': [
'nb',
],
'actions': [
{
'action_name': 'reuse_allocator_benchmark_copy_test_data',
'variables': {
'input_files': [
'<(DEPTH)/nb/testdata/',
],
'output_dir': 'nb/testdata',
},
'includes': ['../starboard/build/copy_test_data.gypi'],
}
],
},
{
'target_name': 'reuse_allocator_benchmark_deploy',
'type': 'none',
'dependencies': [
'reuse_allocator_benchmark',
],
'variables': {
'executable_name': 'reuse_allocator_benchmark',
},
},
],
}