| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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("//build/config/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//build/config/win/console_app.gni") | 8 import("//build/config/win/console_app.gni") |
| 9 import("//build/config/win/manifest.gni") | 9 import("//build/config/win/manifest.gni") |
| 10 import("//media/media_options.gni") | 10 import("//media/media_options.gni") |
| 11 import("//tools/grit/repack.gni") | 11 import("//tools/grit/repack.gni") |
| 12 import("//tools/grit/grit_rule.gni") | 12 import("//tools/grit/grit_rule.gni") |
| 13 if (is_android) { | 13 if (is_android) { |
| 14 import("//build/config/android/config.gni") | 14 import("//build/config/android/config.gni") |
| 15 } else if (is_mac) { |
| 16 import("//build/config/mac/rules.gni") |
| 15 } | 17 } |
| 16 | 18 |
| 17 declare_args() { | 19 declare_args() { |
| 18 content_shell_product_name = "Content Shell" | 20 content_shell_product_name = "Content Shell" |
| 19 content_shell_version = "99.77.34.5" | 21 content_shell_version = "99.77.34.5" |
| 20 } | 22 } |
| 21 | 23 |
| 22 config("content_shell_lib_warnings") { | 24 config("content_shell_lib_warnings") { |
| 23 if (is_clang) { | 25 if (is_clang) { |
| 24 # TODO(thakis): Remove this once http://crbug.com/383820 is figured out | 26 # TODO(thakis): Remove this once http://crbug.com/383820 is figured out |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 "//build/config/sanitizers:deps", | 506 "//build/config/sanitizers:deps", |
| 505 "//components/crash/content/tools:crash_service", | 507 "//components/crash/content/tools:crash_service", |
| 506 ] | 508 ] |
| 507 | 509 |
| 508 configs -= [ "//build/config/win:console" ] | 510 configs -= [ "//build/config/win:console" ] |
| 509 configs += [ "//build/config/win:windowed" ] | 511 configs += [ "//build/config/win:windowed" ] |
| 510 } | 512 } |
| 511 } | 513 } |
| 512 | 514 |
| 513 if (is_mac) { | 515 if (is_mac) { |
| 514 # TODO(GYP) this should be a bundle. Lots of other stuff in this target. | 516 mac_framework("$content_shell_product_name Framework") { |
| 515 # GYP version: content/content_shell.gypi:content_shell_framework | |
| 516 shared_library("framework") { | |
| 517 testonly = true | 517 testonly = true |
| 518 | 518 |
| 519 # TODO(GYP) bug 546894: Fix GN and toolchains to handle spaces here. | |
| 520 #output_name = "$content_shell_product_name Framework" | |
| 521 output_name = "content_shell_framework" # Temporary one with no spaces. | |
| 522 | |
| 523 sources = [ | 519 sources = [ |
| 524 "app/shell_content_main.cc", | 520 "app/shell_content_main.cc", |
| 525 "app/shell_content_main.h", | 521 "app/shell_content_main.h", |
| 526 ] | 522 ] |
| 527 | 523 |
| 528 deps = [ | 524 deps = [ |
| 529 ":content_shell_lib", | 525 ":content_shell_lib", |
| 530 ] | 526 ] |
| 527 |
| 528 info_plist = "app/framework-Info.plist" |
| 531 } | 529 } |
| 532 } | 530 } |
| OLD | NEW |