Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(900)

Unified Diff: chrome/BUILD.gn

Issue 489223002: Add chrome, installer_util targets to GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/BUILD.gn » ('j') | chrome/version.gni » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/BUILD.gn
diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn
index 421b42f668d9856d83b9d7d42e59d3d4f30f7c5b..04d37bb9d6240a1fe44e7f8861b9d7dfd84b1fd7 100644
--- a/chrome/BUILD.gn
+++ b/chrome/BUILD.gn
@@ -4,6 +4,87 @@
import("//build/config/features.gni")
import("//build/config/ui.gni")
+import("//chrome/version.gni")
+
+# TODO(GYP) for Windows need to the the reorder-imports step which probably
+# means adding another target and renaming this to chrome_initial like in GYP.
+#executable("chrome") { # TODO(GYP) enable once this links.
+source_set("chrome") {
+ # Because the sources list varies so significantly per-platform, generally
+ # each platform lists its own files rather than relying on filtering or
+ # removing unused files.
+ sources = [
+ "app/chrome_exe_resource.h",
+ "//content/public/common/content_switches.cc",
+ ]
+ deps = []
+
+ # TODO(GYP) mac_bundle_resources, xcode_settings
+
+ # TODO(GYP) order_profiling, order_text_section
+
+ if (is_win) {
+ sources += [
+ "app/chrome_exe_main_win.cc",
+ "app/client_util.cc",
+ "app/client_util.h",
+ "app/signature_validator_win.cc",
+ "app/signature_validator_win.h",
+ "//content/app/startup_helper_win.cc",
+ ]
+ deps += [ "//ui/gfx" ]
+ } else if (use_aura) {
+ # Non-Windows aura entrypoint.
+ sources += [ "app/chrome_exe_main_aura.cc" ]
+ }
+
+ if (is_linux) {
+ # TODO(GYP) manpage action
+
+ sources += [
+ "app/chrome_dll_resource.h",
+ "app/chrome_main.cc",
+ "app/chrome_main_delegate.cc",
+ "app/chrome_main_delegate.h",
+ ]
+
+ deps += [
+ # On Linux, link the dependencies (libraries) that make up actual
+ # Chromium functionality directly into the executable.
+ ":browser_dependencies",
+ ":child_dependencies",
+
+ "//base/allocator",
+ # Needed to use the master_preferences functions
+ "//chrome/installer/util",
+ "//content/app:both",
+ ]
+
+ # Needed for chrome_main.cc initialization of libraries.
+ configs += [ "//build/config/linux:pangocairo" ]
+
+ # TODO(GYP) ['profiling==0 and linux_disable_pie==0', {
+ # 'ldflags': [
+ # '-pie',
+ # ],
+ #}],
+
+ if (use_x11) {
+ configs += [
+ "//build/config/linux:x11",
+ "//build/config/linux:xext",
+ ]
+ }
+ }
+
+ if (is_mac) {
+ sources += [
+ "app/chrome_exe_main_mac.cc",
+ ]
+ }
+ # TODO(GYP) is_mac
+
+}
shared_library("main_dll") {
configs += [ "//build/config/compiler:wexit_time_destructors" ]
@@ -128,6 +209,18 @@ group("child_dependencies") {
}
}
+if (is_win) {
+ # TODO(brettw) this duplicates "//chrome/common:version" which applies to
+ # Linux.
+ process_version("version_header") {
+ visibility = ":*"
+ source = "version.h.in"
+ # TODO(brettw) this should move to $target_gen_dir/version.h and
+ # source files including it should reference it via "chrome/version.h"
+ output = "$root_gen_dir/version.h"
+ }
+}
+
# GYP version: chrome/chrome_resources.gyp:chrome_resources
group("resources") {
deps = [
« no previous file with comments | « no previous file | chrome/browser/BUILD.gn » ('j') | chrome/version.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698