blob: 02c62dfb31c5a4abbd220ad2c11dc762be260d63 [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': [
# Cobalt-specific support for dealing with Chromium's tracing system.
{
'target_name': 'trace_event',
'type': 'static_library',
'sources': [
'event_parser.cc',
'event_parser.h',
'json_file_outputter.cc',
'json_file_outputter.h',
'scoped_event_parser_trace.cc',
'scoped_event_parser_trace.h',
'scoped_trace_to_file.cc',
'scoped_trace_to_file.h',
'switches.cc',
'switches.h',
],
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
],
},
{
'target_name': 'trace_event_test',
'type': '<(gtest_target_type)',
'sources': [
'event_parser_test.cc',
],
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/cobalt/base/base.gyp:base',
'<(DEPTH)/cobalt/test/test.gyp:run_all_unittests',
'<(DEPTH)/testing/gmock.gyp:gmock',
'<(DEPTH)/testing/gtest.gyp:gtest',
'trace_event',
],
},
{
'target_name': 'trace_event_test_deploy',
'type': 'none',
'dependencies': [
'trace_event_test',
],
'variables': {
'executable_name': 'trace_event_test',
},
'includes': [ '<(DEPTH)/starboard/build/deploy.gypi' ],
},
{
# Benchmarking library. Depend on this if you would like to define
# benchmarks in your project.
'target_name': 'benchmark',
'type': 'static_library',
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
'trace_event',
],
'sources': [
'benchmark.cc',
],
},
{
# Depending on this will automatically give your target a main() that
# will execute all visible benchmarks.
'target_name': 'run_all_benchmarks',
'type': 'static_library',
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/cobalt/base/base.gyp:base',
'benchmark',
],
'sources': [
'benchmark_runner.cc',
],
},
{
# Sample benchmark project.
'target_name': 'sample_benchmark',
'type': '<(final_executable_type)',
'sources': [
'sample_benchmark.cc',
],
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
'run_all_benchmarks',
],
},
{
'target_name': 'sample_benchmark_deploy',
'type': 'none',
'dependencies': [
'sample_benchmark',
],
'variables': {
'executable_name': 'sample_benchmark',
},
'includes': [ '<(DEPTH)/starboard/build/deploy.gypi' ],
},
],
}