| 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 "//mojo/edk/system", | 41 "//mojo/edk/system", |
| 40 "//services/service_manager/public/cpp", | 42 "//services/service_manager/public/cpp", |
| 43 "//url/ipc:url_ipc", |
| 41 ] | 44 ] |
| 42 } | 45 } |
| 43 | 46 |
| 44 # This exists just to make 'gn check' happy with :minimal. It can't | 47 # This exists just to make 'gn check' happy with :minimal. It can't |
| 45 # depend on //content/public/common or anything like that, because that | 48 # depend on //content/public/common or anything like that, because that |
| 46 # would bring in lots more than counts as "minimal" (stuff that should | 49 # would bring in lots more than counts as "minimal" (stuff that should |
| 47 # not be in the nacl64.exe build). | 50 # not be in the nacl64.exe build). |
| 48 source_set("minimal_content_dummy") { | 51 source_set("minimal_content_dummy") { |
| 49 check_includes = false | 52 check_includes = false |
| 50 sources = [ | 53 sources = [ |
| 51 "//content/public/common/content_descriptors.h", | 54 "//content/public/common/content_descriptors.h", |
| 52 "//content/public/common/content_switches.h", | 55 "//content/public/common/content_switches.h", |
| 53 "//content/public/common/mojo_channel_switches.h", | 56 "//content/public/common/mojo_channel_switches.h", |
| 54 "//content/public/common/process_type.h", | 57 "//content/public/common/process_type.h", |
| 55 "//content/public/common/sandbox_type.h", | 58 "//content/public/common/sandbox_type.h", |
| 56 ] | 59 ] |
| 57 | 60 |
| 58 # Deps required by the above headers. | 61 # Deps required by the above headers. |
| 59 deps = [ | 62 deps = [ |
| 60 "//media:media_features", | 63 "//media:media_features", |
| 61 ] | 64 ] |
| 62 } | 65 } |
| 63 | 66 |
| 64 static_library("common") { | 67 static_library("common") { |
| 65 sources = [ | 68 sources = [ |
| 66 "nacl_host_messages.cc", | |
| 67 "nacl_host_messages.h", | |
| 68 "nacl_nonsfi_util.cc", | 69 "nacl_nonsfi_util.cc", |
| 69 "nacl_nonsfi_util.h", | 70 "nacl_nonsfi_util.h", |
| 70 "pnacl_types.cc", | |
| 71 "pnacl_types.h", | |
| 72 ] | 71 ] |
| 73 | 72 |
| 74 public_deps = [ | 73 public_deps = [ |
| 75 ":minimal", | 74 ":minimal", |
| 76 ":mojo_bindings", | 75 ":mojo_bindings", |
| 77 ":switches", | 76 ":switches", |
| 78 ] | 77 ] |
| 79 | 78 |
| 80 deps = [ | 79 deps = [ |
| 81 "//base", | 80 "//base", |
| (...skipping 26 matching lines...) Expand all Loading... |
| 108 source_set("nacl_error_code") { | 107 source_set("nacl_error_code") { |
| 109 sources = [ | 108 sources = [ |
| 110 "//native_client/src/trusted/service_runtime/nacl_error_code.h", | 109 "//native_client/src/trusted/service_runtime/nacl_error_code.h", |
| 111 ] | 110 ] |
| 112 } | 111 } |
| 113 | 112 |
| 114 mojom("mojo_bindings") { | 113 mojom("mojo_bindings") { |
| 115 sources = [ | 114 sources = [ |
| 116 "nacl.mojom", | 115 "nacl.mojom", |
| 117 ] | 116 ] |
| 117 public_deps = [ |
| 118 "//mojo/common:common_custom_types", |
| 119 "//url/mojo:url_mojom_gurl", |
| 120 ] |
| 118 } | 121 } |
| 119 } | 122 } |
| 120 | 123 |
| 121 # Depending on this allows targets to unconditionally include | 124 # Depending on this allows targets to unconditionally include |
| 122 # nacl_process_type.h without testing whether nacl is enabled. | 125 # nacl_process_type.h without testing whether nacl is enabled. |
| 123 source_set("process_type") { | 126 source_set("process_type") { |
| 124 public = [ | 127 public = [ |
| 125 "nacl_process_type.h", | 128 "nacl_process_type.h", |
| 126 ] | 129 ] |
| 127 | 130 |
| 128 deps = [ | 131 deps = [ |
| 129 "//content/public/common", | 132 "//content/public/common", |
| 130 ] | 133 ] |
| 131 } | 134 } |
| 132 | 135 |
| 133 static_library("switches") { | 136 static_library("switches") { |
| 134 sources = [ | 137 sources = [ |
| 135 "nacl_switches.cc", | 138 "nacl_switches.cc", |
| 136 "nacl_switches.h", | 139 "nacl_switches.h", |
| 137 ] | 140 ] |
| 138 } | 141 } |
| OLD | NEW |