1# Copyright 2015 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("//components/nacl/features.gni") 6 7assert(enable_nacl) 8 9static_library("browser") { 10 sources = [ 11 "bad_message.cc", 12 "bad_message.h", 13 "nacl_browser.cc", 14 "nacl_browser.h", 15 "nacl_file_host.cc", 16 "nacl_file_host.h", 17 "nacl_host_message_filter.cc", 18 "nacl_host_message_filter.h", 19 "nacl_process_host.cc", 20 "nacl_process_host.h", 21 "nacl_validation_cache.cc", 22 "nacl_validation_cache.h", 23 "pnacl_host.cc", 24 "pnacl_host.h", 25 "pnacl_translation_cache.cc", 26 "pnacl_translation_cache.h", 27 ] 28 29 deps = [ 30 "//base", 31 "//build:chromeos_buildflags", 32 "//components/nacl/common", 33 "//components/nacl/common:buildflags", 34 "//components/url_formatter", 35 "//content/public/browser", 36 "//content/public/common", 37 "//net", 38 "//ppapi/host", 39 "//ppapi/proxy:ipc", 40 "//ppapi/shared_impl", 41 ] 42 43 public_deps = [ 44 "//ipc", 45 "//services/service_manager/public/mojom", 46 ] 47 48 data_deps = [] 49 50 if (is_linux || is_chromeos) { 51 sources += [ 52 "../zygote/nacl_fork_delegate_linux.cc", 53 "../zygote/nacl_fork_delegate_linux.h", 54 ] 55 56 deps += [ 57 "//sandbox/linux:sandbox_services", 58 "//sandbox/linux:suid_sandbox_client", 59 ] 60 61 if (target_cpu != "arm64") { 62 deps += [ "//components/nacl/loader:nacl_helper_integration" ] 63 } else { 64 deps += [ "//components/nacl/loader:nacl_helper" ] 65 } 66 } 67} 68 69source_set("unit_tests") { 70 testonly = true 71 sources = [ 72 "nacl_file_host_unittest.cc", 73 "nacl_validation_cache_unittest.cc", 74 "pnacl_host_unittest.cc", 75 "pnacl_translation_cache_unittest.cc", 76 "test_nacl_browser_delegate.cc", 77 "test_nacl_browser_delegate.h", 78 ] 79 80 deps = [ 81 ":browser", 82 "//base", 83 "//components/nacl/common", 84 "//content/test:test_support", 85 "//net:test_support", 86 ] 87 88 if (is_linux || is_chromeos) { 89 sources += [ "../zygote/nacl_fork_delegate_linux_unittest.cc" ] 90 } 91} 92