blob: 0cb83015a428cc6fb5731ffbdc0e16239f410a5e [file] [log] [blame]
# Copyright 2012 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.
{
'variables': {
'chromium_code': 1,
},
'targets': [
{
'target_name': 'profile_lib',
'type': 'static_library',
'sources': [
'return_thunk_factory.cc',
'return_thunk_factory.h',
'symbol_map.cc',
'symbol_map.h',
],
},
{
'target_name': 'profile_client',
'type': 'loadable_module',
'includes': ['../agent.gypi'],
'sources': [
'profiler.cc',
'profiler.def',
'profiler.h',
'profiler.rc',
],
'dependencies': [
'profile_lib',
'<(src)/syzygy/agent/common/common.gyp:agent_common_lib',
'<(src)/syzygy/common/common.gyp:common_lib',
'<(src)/syzygy/common/common.gyp:syzygy_version',
'<(src)/syzygy/core/core.gyp:core_lib',
'<(src)/syzygy/trace/rpc/rpc.gyp:call_trace_rpc_lib',
'<(src)/syzygy/trace/client/client.gyp:rpc_client_lib',
],
},
{
'target_name': 'profile_unittests',
'type': 'executable',
'sources': [
'profiler_unittest.cc',
'profiler_unittests_main.cc',
'return_thunk_factory_unittest.cc',
'symbol_map_unittest.cc',
],
'dependencies': [
'profile_client',
'profile_lib',
'<(src)/base/base.gyp:base',
'<(src)/syzygy/core/core.gyp:core_unittest_utils',
'<(src)/syzygy/agent/common/common.gyp:agent_common_lib',
'<(src)/syzygy/trace/parse/parse.gyp:parse_lib',
'<(src)/syzygy/trace/parse/parse.gyp:parse_unittest_utils',
'<(src)/syzygy/trace/common/common.gyp:trace_unittest_utils',
'<(src)/syzygy/trace/service/service.gyp:call_trace_service_exe',
'<(src)/syzygy/pe/pe.gyp:pe_lib',
'<(src)/syzygy/pe/pe.gyp:pe_unittest_utils',
'<(src)/testing/gtest.gyp:gtest',
'<(src)/testing/gmock.gyp:gmock',
],
},
],
}