| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
| 7 | 7 |
| 8 if (enable_nacl) { | 8 if (enable_nacl) { |
| 9 # This is separate so it can be used by ../broker:nacl64. | 9 # This is separate so it can be used by ../broker:nacl64. |
| 10 static_library("minimal") { | 10 static_library("minimal") { |
| 11 sources = [ | 11 sources = [ |
| 12 "nacl_cmd_line.cc", | 12 "nacl_cmd_line.cc", |
| 13 "nacl_cmd_line.h", | 13 "nacl_cmd_line.h", |
| 14 "nacl_constants.cc", | 14 "nacl_constants.cc", |
| 15 "nacl_constants.h", | 15 "nacl_constants.h", |
| 16 "nacl_messages.cc", | 16 "nacl_messages.cc", |
| 17 "nacl_messages.h", | 17 "nacl_messages.h", |
| 18 "nacl_process_type.h", | 18 "nacl_process_type.h", |
| 19 "nacl_sandbox_type.h", | 19 "nacl_sandbox_type.h", |
| 20 "nacl_service.cc", | 20 "nacl_service.cc", |
| 21 "nacl_service.h", | 21 "nacl_service.h", |
| 22 "nacl_types.cc", | 22 "nacl_types.cc", |
| 23 "nacl_types.h", | 23 "nacl_types.h", |
| 24 "nacl_types_param_traits.cc", | 24 "nacl_types_param_traits.cc", |
| 25 "nacl_types_param_traits.h", | 25 "nacl_types_param_traits.h", |
| 26 "pnacl_types.cc", |
| 27 "pnacl_types.h", |
| 26 ] | 28 ] |
| 27 | 29 |
| 28 public_deps = [ | 30 public_deps = [ |
| 29 ":minimal_content_dummy", | 31 ":minimal_content_dummy", |
| 30 ":switches", | 32 ":switches", |
| 31 ] | 33 ] |
| 32 | 34 |
| 33 deps = [ | 35 deps = [ |
| 34 ":nacl_error_code", | 36 ":nacl_error_code", |
| 35 "//base", | 37 "//base", |
| 36 "//base:base_static", | 38 "//base:base_static", |
| 37 "//content/public/common:service_names", | 39 "//content/public/common:service_names", |
| 38 "//ipc", | 40 "//ipc", |
| 39 "//ipc:mojom", | 41 "//ipc:mojom", |
| 40 "//mojo/edk/system", | 42 "//mojo/edk/system", |
| 41 "//services/service_manager/public/cpp", | 43 "//services/service_manager/public/cpp", |
| 44 "//url/ipc:url_ipc", |
| 42 ] | 45 ] |
| 43 } | 46 } |
| 44 | 47 |
| 45 # This exists just to make 'gn check' happy with :minimal. It can't | 48 # This exists just to make 'gn check' happy with :minimal. It can't |
| 46 # depend on //content/public/common or anything like that, because that | 49 # depend on //content/public/common or anything like that, because that |
| 47 # would bring in lots more than counts as "minimal" (stuff that should | 50 # would bring in lots more than counts as "minimal" (stuff that should |
| 48 # not be in the nacl64.exe build). | 51 # not be in the nacl64.exe build). |
| 49 source_set("minimal_content_dummy") { | 52 source_set("minimal_content_dummy") { |
| 50 check_includes = false | 53 check_includes = false |
| 51 sources = [ | 54 sources = [ |
| 52 "//content/public/common/content_descriptors.h", | 55 "//content/public/common/content_descriptors.h", |
| 53 "//content/public/common/content_switches.h", | 56 "//content/public/common/content_switches.h", |
| 54 "//content/public/common/mojo_channel_switches.h", | 57 "//content/public/common/mojo_channel_switches.h", |
| 55 "//content/public/common/process_type.h", | 58 "//content/public/common/process_type.h", |
| 56 "//content/public/common/sandbox_type.h", | 59 "//content/public/common/sandbox_type.h", |
| 57 ] | 60 ] |
| 58 | 61 |
| 59 # Deps required by the above headers. | 62 # Deps required by the above headers. |
| 60 deps = [ | 63 deps = [ |
| 61 "//media:media_features", | 64 "//media:media_features", |
| 62 ] | 65 ] |
| 63 } | 66 } |
| 64 | 67 |
| 65 static_library("common") { | 68 static_library("common") { |
| 66 sources = [ | 69 sources = [ |
| 67 "nacl_host_messages.cc", | |
| 68 "nacl_host_messages.h", | |
| 69 "nacl_nonsfi_util.cc", | 70 "nacl_nonsfi_util.cc", |
| 70 "nacl_nonsfi_util.h", | 71 "nacl_nonsfi_util.h", |
| 71 "pnacl_types.cc", | |
| 72 "pnacl_types.h", | |
| 73 ] | 72 ] |
| 74 | 73 |
| 75 public_deps = [ | 74 public_deps = [ |
| 76 ":minimal", | 75 ":minimal", |
| 77 ":mojo_bindings", | 76 ":mojo_bindings", |
| 78 ":switches", | 77 ":switches", |
| 79 ] | 78 ] |
| 80 | 79 |
| 81 deps = [ | 80 deps = [ |
| 82 "//base", | 81 "//base", |
| (...skipping 26 matching lines...) Expand all Loading... |
| 109 source_set("nacl_error_code") { | 108 source_set("nacl_error_code") { |
| 110 sources = [ | 109 sources = [ |
| 111 "//native_client/src/trusted/service_runtime/nacl_error_code.h", | 110 "//native_client/src/trusted/service_runtime/nacl_error_code.h", |
| 112 ] | 111 ] |
| 113 } | 112 } |
| 114 | 113 |
| 115 mojom("mojo_bindings") { | 114 mojom("mojo_bindings") { |
| 116 sources = [ | 115 sources = [ |
| 117 "nacl.mojom", | 116 "nacl.mojom", |
| 118 ] | 117 ] |
| 118 public_deps = [ |
| 119 "//mojo/common:common_custom_types", |
| 120 "//url/mojo:url_mojom_gurl", |
| 121 ] |
| 119 } | 122 } |
| 120 } | 123 } |
| 121 | 124 |
| 122 # Depending on this allows targets to unconditionally include | 125 # Depending on this allows targets to unconditionally include |
| 123 # nacl_process_type.h without testing whether nacl is enabled. | 126 # nacl_process_type.h without testing whether nacl is enabled. |
| 124 source_set("process_type") { | 127 source_set("process_type") { |
| 125 public = [ | 128 public = [ |
| 126 "nacl_process_type.h", | 129 "nacl_process_type.h", |
| 127 ] | 130 ] |
| 128 | 131 |
| 129 deps = [ | 132 deps = [ |
| 130 "//content/public/common", | 133 "//content/public/common", |
| 131 ] | 134 ] |
| 132 } | 135 } |
| 133 | 136 |
| 134 static_library("switches") { | 137 static_library("switches") { |
| 135 sources = [ | 138 sources = [ |
| 136 "nacl_switches.cc", | 139 "nacl_switches.cc", |
| 137 "nacl_switches.h", | 140 "nacl_switches.h", |
| 138 ] | 141 ] |
| 139 } | 142 } |
| OLD | NEW |