2014-08-01 12:48:28 -04:00
|
|
|
# Copyright 2014 The Crashpad Authors. 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': 'util',
|
|
|
|
'type': 'static_library',
|
|
|
|
'dependencies': [
|
|
|
|
'../compat/compat.gyp:compat',
|
|
|
|
'../third_party/mini_chromium/mini_chromium/base/base.gyp:base',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'..',
|
|
|
|
'<(INTERMEDIATE_DIR)',
|
|
|
|
],
|
2014-09-16 17:45:12 -04:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/ServiceManagement.framework',
|
|
|
|
],
|
|
|
|
},
|
2014-08-01 12:48:28 -04:00
|
|
|
'sources': [
|
|
|
|
'file/fd_io.cc',
|
|
|
|
'file/fd_io.h',
|
|
|
|
'file/file_writer.cc',
|
|
|
|
'file/file_writer.h',
|
|
|
|
'file/string_file_writer.cc',
|
|
|
|
'file/string_file_writer.h',
|
2014-08-28 13:47:28 -04:00
|
|
|
'mac/checked_mach_address_range.cc',
|
|
|
|
'mac/checked_mach_address_range.h',
|
2014-08-15 22:33:14 -07:00
|
|
|
'mac/mac_util.cc',
|
|
|
|
'mac/mac_util.h',
|
2014-09-04 11:45:40 -04:00
|
|
|
'mac/mach_o_image_reader.cc',
|
|
|
|
'mac/mach_o_image_reader.h',
|
2014-09-02 15:50:11 -04:00
|
|
|
'mac/mach_o_image_segment_reader.cc',
|
|
|
|
'mac/mach_o_image_segment_reader.h',
|
2014-09-05 16:53:18 -04:00
|
|
|
'mac/mach_o_image_symbol_table_reader.cc',
|
|
|
|
'mac/mach_o_image_symbol_table_reader.h',
|
2014-08-15 22:30:24 -07:00
|
|
|
'mac/service_management.cc',
|
|
|
|
'mac/service_management.h',
|
2014-08-25 17:51:09 -04:00
|
|
|
'mac/process_reader.cc',
|
|
|
|
'mac/process_reader.h',
|
2014-08-26 17:08:18 -04:00
|
|
|
'mac/process_types.cc',
|
|
|
|
'mac/process_types.h',
|
|
|
|
'mac/process_types/all.proctype',
|
|
|
|
'mac/process_types/crashreporterclient.proctype',
|
|
|
|
'mac/process_types/custom.cc',
|
|
|
|
'mac/process_types/dyld_images.proctype',
|
|
|
|
'mac/process_types/flavors.h',
|
|
|
|
'mac/process_types/internal.h',
|
|
|
|
'mac/process_types/loader.proctype',
|
|
|
|
'mac/process_types/nlist.proctype',
|
|
|
|
'mac/process_types/traits.h',
|
2014-09-16 09:48:01 -04:00
|
|
|
'mach/exc_client_variants.cc',
|
|
|
|
'mach/exc_client_variants.h',
|
2014-09-10 17:29:07 -04:00
|
|
|
'mach/exc_server_variants.cc',
|
|
|
|
'mach/exc_server_variants.h',
|
2014-09-16 17:32:35 -04:00
|
|
|
'mach/exception_behaviors.cc',
|
|
|
|
'mach/exception_behaviors.h',
|
2014-09-16 17:36:33 -04:00
|
|
|
'mach/exception_ports.cc',
|
|
|
|
'mach/exception_ports.h',
|
2014-09-16 09:48:01 -04:00
|
|
|
'mach/mach_extensions.cc',
|
2014-09-10 17:29:07 -04:00
|
|
|
'mach/mach_extensions.h',
|
2014-09-08 21:06:34 -04:00
|
|
|
'mach/mach_message_server.cc',
|
|
|
|
'mach/mach_message_server.h',
|
2014-09-16 11:00:51 -04:00
|
|
|
'mach/symbolic_constants_mach.cc',
|
|
|
|
'mach/symbolic_constants_mach.h',
|
2014-08-03 18:48:40 -04:00
|
|
|
'mach/task_memory.cc',
|
|
|
|
'mach/task_memory.h',
|
2014-08-14 09:51:26 -07:00
|
|
|
'misc/initialization_state.h',
|
|
|
|
'misc/initialization_state_dcheck.cc',
|
|
|
|
'misc/initialization_state_dcheck.h',
|
2014-08-26 16:50:08 -04:00
|
|
|
'misc/scoped_forbid_return.cc',
|
|
|
|
'misc/scoped_forbid_return.h',
|
2014-09-10 17:30:21 -04:00
|
|
|
'misc/symbolic_constants_common.h',
|
2014-08-01 14:39:55 -04:00
|
|
|
'misc/uuid.cc',
|
|
|
|
'misc/uuid.h',
|
2014-08-15 10:22:37 -07:00
|
|
|
'numeric/checked_range.h',
|
2014-08-14 16:00:44 -07:00
|
|
|
'numeric/in_range_cast.h',
|
|
|
|
'numeric/safe_assignment.h',
|
2014-08-14 09:57:19 -07:00
|
|
|
'posix/process_util.h',
|
|
|
|
'posix/process_util_mac.cc',
|
2014-09-10 17:30:21 -04:00
|
|
|
'posix/symbolic_constants_posix.cc',
|
|
|
|
'posix/symbolic_constants_posix.h',
|
2014-08-01 14:39:55 -04:00
|
|
|
'stdlib/cxx.h',
|
2014-08-03 18:53:10 -04:00
|
|
|
'stdlib/objc.h',
|
2014-08-25 17:51:09 -04:00
|
|
|
'stdlib/pointer_container.h',
|
2014-09-10 15:30:11 -04:00
|
|
|
'stdlib/string_number_conversion.cc',
|
|
|
|
'stdlib/string_number_conversion.h',
|
2014-08-01 14:39:55 -04:00
|
|
|
'stdlib/strlcpy.cc',
|
|
|
|
'stdlib/strlcpy.h',
|
2014-08-28 14:38:27 -04:00
|
|
|
'stdlib/strnlen.cc',
|
|
|
|
'stdlib/strnlen.h',
|
2014-08-01 12:48:28 -04:00
|
|
|
],
|
2014-09-05 13:27:06 -04:00
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'mig exc.defs',
|
|
|
|
'inputs': [
|
|
|
|
'mach/mig.py',
|
|
|
|
'$(SDKROOT)/usr/include/mach/exc.defs',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(INTERMEDIATE_DIR)/util/mach/excUser.c',
|
|
|
|
'<(INTERMEDIATE_DIR)/util/mach/excServer.c',
|
|
|
|
'<(INTERMEDIATE_DIR)/util/mach/exc.h',
|
|
|
|
'<(INTERMEDIATE_DIR)/util/mach/excServer.h',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'python', '<@(_inputs)', '<@(_outputs)'
|
|
|
|
],
|
|
|
|
'process_outputs_as_sources': 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'action_name': 'mig mach_exc.defs',
|
|
|
|
'inputs': [
|
|
|
|
'mach/mig.py',
|
|
|
|
'$(SDKROOT)/usr/include/mach/mach_exc.defs',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(INTERMEDIATE_DIR)/util/mach/mach_excUser.c',
|
|
|
|
'<(INTERMEDIATE_DIR)/util/mach/mach_excServer.c',
|
|
|
|
'<(INTERMEDIATE_DIR)/util/mach/mach_exc.h',
|
|
|
|
'<(INTERMEDIATE_DIR)/util/mach/mach_excServer.h',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'python', '<@(_inputs)', '<@(_outputs)'
|
|
|
|
],
|
|
|
|
'process_outputs_as_sources': 1,
|
|
|
|
},
|
|
|
|
],
|
2014-08-01 12:48:28 -04:00
|
|
|
},
|
2014-08-03 18:48:40 -04:00
|
|
|
{
|
|
|
|
'target_name': 'util_test_lib',
|
|
|
|
'type': 'static_library',
|
|
|
|
'dependencies': [
|
|
|
|
'../compat/compat.gyp:compat',
|
2014-08-20 13:58:42 -04:00
|
|
|
'../third_party/gtest/gtest.gyp:gtest',
|
2014-08-03 18:48:40 -04:00
|
|
|
'../third_party/mini_chromium/mini_chromium/base/base.gyp:base',
|
|
|
|
'util',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'..',
|
|
|
|
],
|
2014-08-20 13:58:42 -04:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'$(SDKROOT)/usr/lib/libbsm.dylib',
|
|
|
|
],
|
|
|
|
},
|
2014-08-03 18:48:40 -04:00
|
|
|
'sources': [
|
|
|
|
'test/errors.cc',
|
|
|
|
'test/errors.h',
|
2014-09-03 18:24:29 -04:00
|
|
|
'test/executable_path.h',
|
|
|
|
'test/executable_path_mac.cc',
|
2014-09-04 11:45:40 -04:00
|
|
|
'test/mac/dyld.h',
|
2014-08-03 18:48:40 -04:00
|
|
|
'test/mac/mach_errors.cc',
|
|
|
|
'test/mac/mach_errors.h',
|
2014-08-20 13:58:42 -04:00
|
|
|
'test/mac/mach_multiprocess.cc',
|
|
|
|
'test/mac/mach_multiprocess.h',
|
2014-08-26 17:10:19 -04:00
|
|
|
'test/multiprocess.cc',
|
|
|
|
'test/multiprocess.h',
|
2014-09-03 18:24:29 -04:00
|
|
|
'test/multiprocess_exec.cc',
|
|
|
|
'test/multiprocess_exec.h',
|
2014-09-02 16:21:46 -04:00
|
|
|
'test/posix/close_multiple.cc',
|
|
|
|
'test/posix/close_multiple.h',
|
2014-08-03 18:48:40 -04:00
|
|
|
],
|
|
|
|
},
|
2014-08-01 12:48:28 -04:00
|
|
|
{
|
|
|
|
'target_name': 'util_test',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
|
|
|
'util',
|
2014-08-03 18:48:40 -04:00
|
|
|
'util_test_lib',
|
2014-09-05 12:40:05 -04:00
|
|
|
'util_test_multiprocess_exec_test_child',
|
2014-08-01 12:48:28 -04:00
|
|
|
'../compat/compat.gyp:compat',
|
2014-09-10 17:29:07 -04:00
|
|
|
'../third_party/gmock/gmock.gyp:gmock',
|
2014-08-01 12:48:28 -04:00
|
|
|
'../third_party/gtest/gtest.gyp:gtest',
|
2014-08-13 15:28:59 -07:00
|
|
|
'../third_party/gtest/gtest.gyp:gtest_main',
|
2014-08-01 12:48:28 -04:00
|
|
|
'../third_party/mini_chromium/mini_chromium/base/base.gyp:base',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'..',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'file/string_file_writer_test.cc',
|
2014-08-28 13:47:28 -04:00
|
|
|
'mac/checked_mach_address_range_test.cc',
|
2014-08-15 22:33:14 -07:00
|
|
|
'mac/mac_util_test.mm',
|
2014-09-04 11:45:40 -04:00
|
|
|
'mac/mach_o_image_reader_test.cc',
|
2014-09-02 15:50:11 -04:00
|
|
|
'mac/mach_o_image_segment_reader_test.cc',
|
2014-08-25 17:51:09 -04:00
|
|
|
'mac/process_reader_test.cc',
|
2014-08-26 17:08:18 -04:00
|
|
|
'mac/process_types_test.cc',
|
2014-08-15 22:30:24 -07:00
|
|
|
'mac/service_management_test.mm',
|
2014-09-16 09:48:01 -04:00
|
|
|
'mach/exc_client_variants_test.cc',
|
2014-09-10 17:29:07 -04:00
|
|
|
'mach/exc_server_variants_test.cc',
|
2014-09-16 17:32:35 -04:00
|
|
|
'mach/exception_behaviors_test.cc',
|
2014-09-16 17:36:33 -04:00
|
|
|
'mach/exception_ports_test.cc',
|
2014-09-16 09:48:01 -04:00
|
|
|
'mach/mach_extensions_test.cc',
|
2014-09-08 21:06:34 -04:00
|
|
|
'mach/mach_message_server_test.cc',
|
2014-09-16 11:00:51 -04:00
|
|
|
'mach/symbolic_constants_mach_test.cc',
|
2014-08-03 18:48:40 -04:00
|
|
|
'mach/task_memory_test.cc',
|
2014-08-14 09:51:26 -07:00
|
|
|
'misc/initialization_state_dcheck_test.cc',
|
|
|
|
'misc/initialization_state_test.cc',
|
2014-08-26 16:50:08 -04:00
|
|
|
'misc/scoped_forbid_return_test.cc',
|
2014-08-01 14:39:55 -04:00
|
|
|
'misc/uuid_test.cc',
|
2014-08-15 10:22:37 -07:00
|
|
|
'numeric/checked_range_test.cc',
|
2014-08-14 16:00:44 -07:00
|
|
|
'numeric/in_range_cast_test.cc',
|
2014-08-14 09:57:19 -07:00
|
|
|
'posix/process_util_test.cc',
|
2014-09-10 17:30:21 -04:00
|
|
|
'posix/symbolic_constants_posix_test.cc',
|
2014-09-10 15:30:11 -04:00
|
|
|
'stdlib/string_number_conversion_test.cc',
|
2014-08-01 14:39:55 -04:00
|
|
|
'stdlib/strlcpy_test.cc',
|
2014-08-28 14:38:27 -04:00
|
|
|
'stdlib/strnlen_test.cc',
|
2014-09-03 18:24:29 -04:00
|
|
|
'test/executable_path_test.cc',
|
2014-08-20 13:58:42 -04:00
|
|
|
'test/mac/mach_multiprocess_test.cc',
|
2014-09-03 18:24:29 -04:00
|
|
|
'test/multiprocess_exec_test.cc',
|
2014-08-26 17:10:19 -04:00
|
|
|
'test/multiprocess_test.cc',
|
2014-08-01 12:48:28 -04:00
|
|
|
],
|
|
|
|
},
|
2014-09-03 18:24:29 -04:00
|
|
|
{
|
|
|
|
'target_name': 'util_test_multiprocess_exec_test_child',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'test/multiprocess_exec_test_child.cc',
|
|
|
|
],
|
|
|
|
},
|
2014-08-01 12:48:28 -04:00
|
|
|
],
|
|
|
|
}
|