# Copyright (c) 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # The dictionary here is defined for use by the "mojo_system_impl" and # "mojo_system_impl_win64" targets in mojo/mojo_edk.gyp. It's defined in this # .gypi file so the sections aren't duplicated. { 'defines': [ 'MOJO_SYSTEM_IMPL_IMPLEMENTATION', 'MOJO_SYSTEM_IMPLEMENTATION', 'MOJO_USE_SYSTEM_IMPL', ], 'sources': [ 'edk/embedder/configuration.h', 'edk/embedder/channel_info_forward.h', 'edk/embedder/channel_init.cc', 'edk/embedder/channel_init.h', 'edk/embedder/embedder.cc', 'edk/embedder/embedder.h', 'edk/embedder/embedder_internal.h', 'edk/embedder/entrypoints.cc', 'edk/embedder/platform_channel_pair.cc', 'edk/embedder/platform_channel_pair.h', 'edk/embedder/platform_channel_pair_posix.cc', 'edk/embedder/platform_channel_pair_win.cc', 'edk/embedder/platform_channel_utils_posix.cc', 'edk/embedder/platform_channel_utils_posix.h', 'edk/embedder/platform_handle.cc', 'edk/embedder/platform_handle.h', 'edk/embedder/platform_handle_utils.h', 'edk/embedder/platform_handle_utils_posix.cc', 'edk/embedder/platform_handle_utils_win.cc', 'edk/embedder/platform_handle_vector.h', 'edk/embedder/platform_shared_buffer.h', 'edk/embedder/platform_support.h', 'edk/embedder/scoped_platform_handle.h', 'edk/embedder/simple_platform_shared_buffer.cc', 'edk/embedder/simple_platform_shared_buffer.h', 'edk/embedder/simple_platform_shared_buffer_android.cc', 'edk/embedder/simple_platform_shared_buffer_posix.cc', 'edk/embedder/simple_platform_shared_buffer_win.cc', 'edk/embedder/simple_platform_support.cc', 'edk/embedder/simple_platform_support.h', 'edk/system/awakable.h', 'edk/system/awakable_list.cc', 'edk/system/awakable_list.h', 'edk/system/channel.cc', 'edk/system/channel.h', 'edk/system/channel_endpoint.cc', 'edk/system/channel_endpoint.h', 'edk/system/channel_endpoint_client.h', 'edk/system/channel_endpoint_id.cc', 'edk/system/channel_endpoint_id.h', 'edk/system/channel_info.cc', 'edk/system/channel_info.h', 'edk/system/channel_manager.cc', 'edk/system/channel_manager.h', 'edk/system/configuration.cc', 'edk/system/configuration.h', 'edk/system/core.cc', 'edk/system/core.h', 'edk/system/data_pipe.cc', 'edk/system/data_pipe.h', 'edk/system/data_pipe_consumer_dispatcher.cc', 'edk/system/data_pipe_consumer_dispatcher.h', 'edk/system/data_pipe_producer_dispatcher.cc', 'edk/system/data_pipe_producer_dispatcher.h', 'edk/system/dispatcher.cc', 'edk/system/dispatcher.h', 'edk/system/endpoint_relayer.cc', 'edk/system/endpoint_relayer.h', 'edk/system/handle_signals_state.h', 'edk/system/handle_table.cc', 'edk/system/handle_table.h', 'edk/system/incoming_endpoint.cc', 'edk/system/incoming_endpoint.h', 'edk/system/local_data_pipe.cc', 'edk/system/local_data_pipe.h', 'edk/system/local_message_pipe_endpoint.cc', 'edk/system/local_message_pipe_endpoint.h', 'edk/system/mapping_table.cc', 'edk/system/mapping_table.h', 'edk/system/memory.cc', 'edk/system/memory.h', 'edk/system/message_in_transit.cc', 'edk/system/message_in_transit.h', 'edk/system/message_in_transit_queue.cc', 'edk/system/message_in_transit_queue.h', 'edk/system/message_pipe.cc', 'edk/system/message_pipe.h', 'edk/system/message_pipe_dispatcher.cc', 'edk/system/message_pipe_dispatcher.h', 'edk/system/message_pipe_endpoint.cc', 'edk/system/message_pipe_endpoint.h', 'edk/system/options_validation.h', 'edk/system/platform_handle_dispatcher.cc', 'edk/system/platform_handle_dispatcher.h', 'edk/system/proxy_message_pipe_endpoint.cc', 'edk/system/proxy_message_pipe_endpoint.h', 'edk/system/raw_channel.cc', 'edk/system/raw_channel.h', 'edk/system/raw_channel_posix.cc', 'edk/system/raw_channel_win.cc', 'edk/system/shared_buffer_dispatcher.cc', 'edk/system/shared_buffer_dispatcher.h', 'edk/system/simple_dispatcher.cc', 'edk/system/simple_dispatcher.h', 'edk/system/transport_data.cc', 'edk/system/transport_data.h', 'edk/system/waiter.cc', 'edk/system/waiter.h', # Test-only code: # TODO(vtl): It's a little unfortunate that these end up in the same # component as non-test-only code. In the static build, this code # should hopefully be dead-stripped. 'edk/embedder/test_embedder.cc', 'edk/embedder/test_embedder.h', ], 'all_dependent_settings': { # Ensures that dependent projects import the core functions on Windows. 'defines': ['MOJO_USE_SYSTEM_IMPL'], }, 'conditions': [ ['OS=="android"', { 'dependencies': [ '<(DEPTH)/third_party/ashmem/ashmem.gyp:ashmem', ], }], ], }