Commit f5607906 authored by brettw@chromium.org's avatar brettw@chromium.org

Add apps to the GN build.

Remove duplicate reference of content_switches which causes link errors.

Add dependency on theme_resources from apps (it includes the generated file).

R=miket@chromium.org

Review URL: https://codereview.chromium.org/496763002

Cr-Commit-Position: refs/heads/master@{#291150}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291150 0039d316-1c4b-4281-b951-d872f2087c98
parent 36c762be
...@@ -16,8 +16,7 @@ group("root") { ...@@ -16,8 +16,7 @@ group("root") {
# currently written but not hooked up to the build yet. They may need to be # currently written but not hooked up to the build yet. They may need to be
# completed or possibly just tested and then re-enabled. # completed or possibly just tested and then re-enabled.
deps = [ deps = [
# This is a temporary test of the not-yet-complete NaCl cross-compilation. "//apps",
#"//base(//build/toolchain/nacl:x86_newlib)",
"//ash", "//ash",
"//cc", "//cc",
"//cc/blink", "//cc/blink",
...@@ -163,6 +162,7 @@ group("root") { ...@@ -163,6 +162,7 @@ group("root") {
] ]
deps -= [ deps -= [
"//apps", # Needs testing.
"//cc/blink", # Blocked on blink "//cc/blink", # Blocked on blink
"//chrome/browser", # Blocked on content. "//chrome/browser", # Blocked on content.
"//chrome/browser/devtools", # Blocked on content. "//chrome/browser/devtools", # Blocked on content.
......
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/features.gni")
import("//build/config/ui.gni")
static_library("apps") {
sources = [
"app_lifetime_monitor.cc",
"app_lifetime_monitor.h",
"app_lifetime_monitor_factory.cc",
"app_lifetime_monitor_factory.h",
"app_load_service.cc",
"app_load_service.h",
"app_load_service_factory.cc",
"app_load_service_factory.h",
"app_restore_service.cc",
"app_restore_service.h",
"app_restore_service_factory.cc",
"app_restore_service_factory.h",
"app_window.cc",
"app_window.h",
"app_window_contents.cc",
"app_window_contents.h",
"app_window_registry.cc",
"app_window_registry.h",
"browser_context_keyed_service_factories.cc",
"browser_context_keyed_service_factories.h",
"custom_launcher_page_contents.cc",
"custom_launcher_page_contents.h",
"launcher.cc",
"launcher.h",
"metrics_names.h",
"pref_names.cc",
"pref_names.h",
"prefs.cc",
"prefs.h",
"saved_files_service.cc",
"saved_files_service.h",
"saved_files_service_factory.cc",
"saved_files_service_factory.h",
"switches.cc",
"switches.h",
"ui/apps_client.cc",
"ui/apps_client.h",
"ui/web_contents_sizer.h",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
deps = [
"//chrome/app/theme:theme_resources",
"//chrome/browser/extensions",
"//chrome/common/extensions/api:api",
"//skia",
]
if (is_chromeos) {
#deps += [ "browser_chromeos" ] TODO(GYP)
}
if (!enable_extensions) {
# When extensions are disabled, only the sizer file below is included.
deps -= [ "//chrome/browser/extensions" ]
sources = []
}
# This needs to run after the extensions check above since we always want
# this file in the project.
if (is_mac) {
sources += [ "ui/web_contents_sizer.mm" ]
} else {
sources += [ "ui/web_contents_sizer.cc" ]
}
if (toolkit_views) {
sources += [
"ui/views/app_window_frame_view.cc",
"ui/views/app_window_frame_view.h",
"ui/views/native_app_window_views.cc",
"ui/views/native_app_window_views.h",
]
deps += [
"//ui/strings",
"//ui/views",
]
}
if (is_win) {
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
cflags = [ "/wd4267" ]
}
}
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
{ {
'targets': [ 'targets': [
{ {
# GN version: //apps
'target_name': 'apps', 'target_name': 'apps',
'type': 'static_library', 'type': 'static_library',
'variables': { 'enable_wexit_time_destructors': 1, }, 'variables': { 'enable_wexit_time_destructors': 1, },
...@@ -15,6 +16,7 @@ ...@@ -15,6 +16,7 @@
# browser, then we can clean up these dependencies. # browser, then we can clean up these dependencies.
'dependencies': [ 'dependencies': [
'browser_extensions', 'browser_extensions',
'chrome_resources.gyp:theme_resources',
'common/extensions/api/api.gyp:chrome_api', 'common/extensions/api/api.gyp:chrome_api',
'../skia/skia.gyp:skia', '../skia/skia.gyp:skia',
], ],
...@@ -23,6 +25,7 @@ ...@@ -23,6 +25,7 @@
'<(grit_out_dir)', '<(grit_out_dir)',
], ],
'sources': [ 'sources': [
# Note: file list duplicated in GN build.
'app_lifetime_monitor.cc', 'app_lifetime_monitor.cc',
'app_lifetime_monitor.h', 'app_lifetime_monitor.h',
'app_lifetime_monitor_factory.cc', 'app_lifetime_monitor_factory.cc',
......
...@@ -15,7 +15,6 @@ source_set("chrome") { ...@@ -15,7 +15,6 @@ source_set("chrome") {
# removing unused files. # removing unused files.
sources = [ sources = [
"app/chrome_exe_resource.h", "app/chrome_exe_resource.h",
"//content/public/common/content_switches.cc",
] ]
deps = [] deps = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment