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

Unified Diff: build/linux/BUILD.gn

Issue 2023703002: Beginning work on GN build (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Really add //build. Add dart_bootstrap rule. Created 4 years, 7 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 | « build/dir_exists.py ('k') | build/linux/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/linux/BUILD.gn
diff --git a/build/linux/BUILD.gn b/build/linux/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..c81172e427fbf77f68ca33f400b0d359e8942646
--- /dev/null
+++ b/build/linux/BUILD.gn
@@ -0,0 +1,74 @@
+# Copyright (c) 2015 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/linux/pkg_config.gni")
+
+# If brlapi isn't needed, don't require it to be installed.
+if (use_brlapi) {
+ deps = [
+ "//build/linux/libbrlapi",
+ ]
+}
+if (use_gio) {
+ pkg_config("gio_config") {
+ packages = [ "gio-2.0" ]
+
+ # glib >=2.40 deprecate g_settings_list_schemas in favor of
+ # g_settings_schema_source_list_schemas. This function is not available on
+ # earlier versions that we still need to support (specifically, 2.32), so
+ # disable the warning with the GLIB_DISABLE_DEPRECATION_WARNINGS define.
+ # TODO(mgiuca): Remove this suppression when we drop support for Ubuntu
+ # 13.10 (saucy) and earlier. Update the code to use
+ # g_settings_schema_source_list_schemas instead.
+ defines = [
+ "USE_GIO",
+ "GLIB_DISABLE_DEPRECATION_WARNINGS",
+ ]
+
+ # TODO(brettw) Theoretically I think ignore_libs should be set so that we
+ # don't link directly to GIO and use the loader generated below. But the
+ # gio target in GYP doesn't make any sense to me and appears to link
+ # directly to GIO in addition to making a loader. This this uncommented,
+ # the link in component build fails, so I think this is closer to the
+ # GYP build.
+ #ignore_libs = true # Loader generated below.
+ }
+
+ deps = [
+ "//build/linux/libgio",
+ ]
+}
+
+# Looking for libspeechd? Use //third_party/speech-dispatcher
+
+group("fontconfig") {
+ if (is_chromecast) {
+ # Chromecast platform does not provide fontconfig
+ public_deps = [
+ "//third_party/fontconfig",
+ ]
+ } else {
+ public_configs = [ "//build/config/linux:fontconfig" ]
+ }
+}
+
+if (!is_chromecast) {
+ pkg_config("freetype2_config") {
+ visibility = [ ":freetype2" ]
+ packages = [ "freetype2" ]
+ }
+}
+
+group("freetype2") {
+ if (is_chromecast) {
+ # Chromecast platform doesn't provide freetype, so use Chromium's.
+ # The version in freetype-android is unmodified from freetype2 upstream.
+ public_deps = [
+ "//third_party/freetype-android:freetype",
+ ]
+ } else {
+ public_configs = [ ":freetype2_config" ]
+ }
+}
« no previous file with comments | « build/dir_exists.py ('k') | build/linux/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698