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 source_set("app") { 6 sources = [ 7 "android/app_jni_registrar.cc", 8 "android/app_jni_registrar.h", 9 "android/child_process_service.cc", 10 "android/child_process_service.h", 11 "android/content_main.cc", 12 "android/content_main.h", 13 "android/library_loader_hooks.cc", 14 "content_main.cc", 15 "content_main_runner.cc", 16 "mojo/mojo_init.cc", 17 "mojo/mojo_init.h", 18 "startup_helper_win.cc", 19 ] 20 21 configs += [ "//content:content_implementation" ] 22 23 deps = [ 24 "//base", 25 "//base:i18n", 26 # This is needed by app/content_main_runner.cc 27 # TODO(brettw) this shouldn't be here, only final executables should be 28 # picking the allocator. 29 "//base/allocator", 30 "//content:export", 31 "//crypto", 32 "//ui/base", 33 "//ui/gfx", 34 "//ui/gfx/geometry", 35 ] 36 37 if (is_win) { 38 deps += [ "//sandbox" ] 39 } else if (is_android) { 40 sources -= [ "content_main.cc" ] 41 deps += [ 42 "//content:content_jni_headers", 43 "//skia", 44 "//third_party/android_tools:cpu_features" 45 ] 46 } 47 48 if (is_ios) { 49 sources -= [ 50 "content_main.cc", 51 "mojo/mojo_init.cc", 52 "mojo/mojo_init.h", 53 ] 54 } else { 55 deps += [ 56 "//mojo/environment:chromium", 57 "//mojo/public/interfaces/service_provider:service_provider", 58 "//mojo/service_manager", 59 "//mojo/system", 60 ] 61 } 62 } 63