| OLD | NEW |
| 1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 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/crypto.gni") | 5 import("//build/config/crypto.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 9 | 9 |
| 10 if (enable_nacl) { | 10 if (enable_nacl) { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 "//base", | 32 "//base", |
| 33 "//base:base_static", | 33 "//base:base_static", |
| 34 "//content/public/common", | 34 "//content/public/common", |
| 35 "//crypto", | 35 "//crypto", |
| 36 "//ipc", | 36 "//ipc", |
| 37 "//native_client/src/trusted/service_runtime:sel_main_chrome", | 37 "//native_client/src/trusted/service_runtime:sel_main_chrome", |
| 38 "//ppapi/c", | 38 "//ppapi/c", |
| 39 "//ppapi/proxy:ipc", | 39 "//ppapi/proxy:ipc", |
| 40 "//ppapi/shared_impl", | 40 "//ppapi/shared_impl", |
| 41 "//third_party/mojo/src/mojo/edk/embedder", | 41 "//third_party/mojo/src/mojo/edk/embedder", |
| 42 |
| 42 # TODO(use_chrome_edk): so that EDK in third_party can choose the EDK in | 43 # TODO(use_chrome_edk): so that EDK in third_party can choose the EDK in |
| 43 # src/mojo if the command line flag is specified. It has to since we can | 44 # src/mojo if the command line flag is specified. It has to since we can |
| 44 # only have one definition of the Mojo primitives. | 45 # only have one definition of the Mojo primitives. |
| 45 "//mojo/edk/embedder", | 46 "//mojo/edk/embedder", |
| 46 ] | 47 ] |
| 47 | 48 |
| 48 if (enable_nacl_untrusted) { | 49 if (enable_nacl_untrusted) { |
| 49 data_deps = [ "//ppapi/native_client:irt" ] | 50 data_deps = [ |
| 51 "//ppapi/native_client:irt", |
| 52 ] |
| 50 } | 53 } |
| 51 if (enable_pnacl) { | 54 if (enable_pnacl) { |
| 52 data_deps += | 55 data_deps += |
| 53 [ "//ppapi/native_client/src/untrusted/pnacl_support_extension" ] | 56 [ "//ppapi/native_client/src/untrusted/pnacl_support_extension" ] |
| 54 } | 57 } |
| 55 } | 58 } |
| 56 | 59 |
| 57 source_set("nacl_browser") { | 60 source_set("nacl_browser") { |
| 58 sources = [ | 61 sources = [ |
| 59 "browser/bad_message.cc", | 62 "browser/bad_message.cc", |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 "//ipc", | 196 "//ipc", |
| 194 ] | 197 ] |
| 195 | 198 |
| 196 cflags = [ "-fPIE" ] | 199 cflags = [ "-fPIE" ] |
| 197 | 200 |
| 198 ldflags = [ "-pie" ] | 201 ldflags = [ "-pie" ] |
| 199 } | 202 } |
| 200 | 203 |
| 201 source_set("nacl_linux") { | 204 source_set("nacl_linux") { |
| 202 sources = [ | 205 sources = [ |
| 203 "//ppapi/nacl_irt/irt_manifest.h", | |
| 204 "//ppapi/nacl_irt/manifest_service.cc", | |
| 205 "//ppapi/nacl_irt/manifest_service.h", | |
| 206 "//ppapi/nacl_irt/plugin_main.cc", | |
| 207 "//ppapi/nacl_irt/plugin_main.h", | |
| 208 "//ppapi/nacl_irt/plugin_startup.cc", | |
| 209 "//ppapi/nacl_irt/plugin_startup.h", | |
| 210 "//ppapi/nacl_irt/ppapi_dispatcher.cc", | |
| 211 "//ppapi/nacl_irt/ppapi_dispatcher.h", | |
| 212 "loader/nonsfi/abi_conversion.cc", | |
| 213 "loader/nonsfi/abi_conversion.h", | |
| 214 "loader/nonsfi/elf_loader.cc", | |
| 215 "loader/nonsfi/elf_loader.h", | |
| 216 "loader/nonsfi/irt_basic.cc", | |
| 217 "loader/nonsfi/irt_clock.cc", | |
| 218 "loader/nonsfi/irt_exception_handling.cc", | |
| 219 "loader/nonsfi/irt_fdio.cc", | |
| 220 "loader/nonsfi/irt_futex.cc", | |
| 221 "loader/nonsfi/irt_icache.cc", | |
| 222 "loader/nonsfi/irt_interfaces.cc", | |
| 223 "loader/nonsfi/irt_interfaces.h", | |
| 224 "loader/nonsfi/irt_memory.cc", | |
| 225 "loader/nonsfi/irt_ppapi.cc", | |
| 226 "loader/nonsfi/irt_random.cc", | |
| 227 "loader/nonsfi/irt_resource_open.cc", | |
| 228 "loader/nonsfi/irt_thread.cc", | |
| 229 "loader/nonsfi/irt_util.h", | |
| 230 "loader/nonsfi/nonsfi_listener.cc", | |
| 231 "loader/nonsfi/nonsfi_listener.h", | |
| 232 "loader/nonsfi/nonsfi_main.cc", | |
| 233 "loader/nonsfi/nonsfi_main.h", | |
| 234 "loader/nonsfi/nonsfi_sandbox.cc", | |
| 235 "loader/nonsfi/nonsfi_sandbox.h", | |
| 236 "loader/sandbox_linux/nacl_bpf_sandbox_linux.cc", | 206 "loader/sandbox_linux/nacl_bpf_sandbox_linux.cc", |
| 237 "loader/sandbox_linux/nacl_sandbox_linux.cc", | 207 "loader/sandbox_linux/nacl_sandbox_linux.cc", |
| 238 ] | 208 ] |
| 239 | 209 |
| 240 defines = [ "IN_NACL_HELPER=1" ] | 210 defines = [ "IN_NACL_HELPER=1" ] |
| 241 | 211 |
| 242 deps = [ | 212 deps = [ |
| 243 ":nacl", | 213 ":nacl", |
| 244 ":nacl_common", | 214 ":nacl_common", |
| 245 ":nacl_switches", | 215 ":nacl_switches", |
| 246 "//base", | 216 "//base", |
| 247 "//components/tracing", | |
| 248 "//content/public/common", | 217 "//content/public/common", |
| 249 "//crypto", | 218 "//crypto", |
| 250 "//ipc", | 219 "//ipc", |
| 251 "//ppapi/c", | |
| 252 "//ppapi/proxy", | |
| 253 "//ppapi/shared_impl", | |
| 254 "//sandbox", | 220 "//sandbox", |
| 255 "//sandbox/linux:sandbox_services_headers", | 221 "//sandbox/linux:sandbox_services_headers", |
| 256 ] | 222 ] |
| 257 | 223 |
| 258 if (use_glib) { | 224 if (use_glib) { |
| 259 configs += [ "//build/config/linux:glib" ] | 225 configs += [ "//build/config/linux:glib" ] |
| 260 } | 226 } |
| 261 | 227 |
| 262 if (use_seccomp_bpf) { | 228 if (use_seccomp_bpf) { |
| 263 defines += [ "USE_SECCOMP_BPF" ] | 229 defines += [ "USE_SECCOMP_BPF" ] |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 | 278 |
| 313 if (is_linux) { | 279 if (is_linux) { |
| 314 sources += [ | 280 sources += [ |
| 315 "common/nacl_paths.cc", | 281 "common/nacl_paths.cc", |
| 316 "common/nacl_paths.h", | 282 "common/nacl_paths.h", |
| 317 ] | 283 ] |
| 318 | 284 |
| 319 defines = [ "__STDC_LIMIT_MACROS=1" ] | 285 defines = [ "__STDC_LIMIT_MACROS=1" ] |
| 320 } | 286 } |
| 321 } | 287 } |
| OLD | NEW |