Home | History | Annotate | Download | only in system
      1 # Copyright 2014 The Chromium Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 config("system_config") {
      6   defines = [
      7     # Ensures that dependent projects import the core functions on Windows.
      8     "MOJO_USE_SYSTEM_IMPL",
      9   ]
     10 }
     11 
     12 component("system") {
     13   output_name = "mojo_system_impl"
     14 
     15   sources = [
     16     # Should there be a separate "embedder" target?
     17     "../embedder/embedder.cc",
     18     "../embedder/embedder.h",
     19     "../embedder/platform_channel_pair.cc",
     20     "../embedder/platform_channel_pair.h",
     21     "../embedder/platform_channel_pair_posix.cc",
     22     "../embedder/platform_channel_pair_win.cc",
     23     "../embedder/platform_channel_utils_posix.cc",
     24     "../embedder/platform_channel_utils_posix.h",
     25     "../embedder/platform_handle.cc",
     26     "../embedder/platform_handle.h",
     27     "../embedder/platform_handle_utils.h",
     28     "../embedder/platform_handle_utils_posix.cc",
     29     "../embedder/platform_handle_utils_win.cc",
     30     "../embedder/platform_handle_vector.h",
     31     "../embedder/scoped_platform_handle.h",
     32     "channel.cc",
     33     "channel.h",
     34     "constants.h",
     35     "core.cc",
     36     "core.h",
     37     "data_pipe.cc",
     38     "data_pipe.h",
     39     "data_pipe_consumer_dispatcher.cc",
     40     "data_pipe_consumer_dispatcher.h",
     41     "data_pipe_producer_dispatcher.cc",
     42     "data_pipe_producer_dispatcher.h",
     43     "dispatcher.cc",
     44     "dispatcher.h",
     45     "entrypoints.cc",
     46     "handle_signals_state.h",
     47     "handle_table.cc",
     48     "handle_table.h",
     49     "local_data_pipe.cc",
     50     "local_data_pipe.h",
     51     "local_message_pipe_endpoint.cc",
     52     "local_message_pipe_endpoint.h",
     53     "mapping_table.cc",
     54     "mapping_table.h",
     55     "memory.cc",
     56     "memory.h",
     57     "message_in_transit.cc",
     58     "message_in_transit.h",
     59     "message_in_transit_queue.cc",
     60     "message_in_transit_queue.h",
     61     "message_pipe.cc",
     62     "message_pipe.h",
     63     "message_pipe_dispatcher.cc",
     64     "message_pipe_dispatcher.h",
     65     "message_pipe_endpoint.cc",
     66     "message_pipe_endpoint.h",
     67     "options_validation.h",
     68     "platform_handle_dispatcher.cc",
     69     "platform_handle_dispatcher.h",
     70     "proxy_message_pipe_endpoint.cc",
     71     "proxy_message_pipe_endpoint.h",
     72     "raw_channel.cc",
     73     "raw_channel.h",
     74     "raw_channel_posix.cc",
     75     "raw_channel_win.cc",
     76     "raw_shared_buffer.cc",
     77     "raw_shared_buffer.h",
     78     "raw_shared_buffer_posix.cc",
     79     "raw_shared_buffer_win.cc",
     80     "shared_buffer_dispatcher.cc",
     81     "shared_buffer_dispatcher.h",
     82     "simple_dispatcher.cc",
     83     "simple_dispatcher.h",
     84     "transport_data.cc",
     85     "transport_data.h",
     86     "waiter.cc",
     87     "waiter.h",
     88     "waiter_list.cc",
     89     "waiter_list.h",
     90     # Test-only code:
     91     # TODO(vtl): It's a little unfortunate that these end up in the same
     92     # component as non-test-only code. In the static build, this code should
     93     # hopefully be dead-stripped.
     94     "../embedder/test_embedder.cc",
     95     "../embedder/test_embedder.h",
     96   ]
     97 
     98   defines = [
     99     "MOJO_SYSTEM_IMPL_IMPLEMENTATION",
    100     "MOJO_SYSTEM_IMPLEMENTATION",
    101   ]
    102 
    103   all_dependent_configs = [ ":system_config" ]
    104 
    105   deps = [
    106     "//base",
    107     "//base/third_party/dynamic_annotations",
    108   ]
    109 }
    110