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

Unified Diff: skia/BUILD.gn

Issue 239543013: Work on Mac GN build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix line endings Created 6 years, 8 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 | « net/BUILD.gn ('k') | skia/skia_gn_files.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/BUILD.gn
diff --git a/skia/BUILD.gn b/skia/BUILD.gn
index 904e8b85d1edca486fc9241098199a42e9305e06..04919bf2a45b3fb6964e4f18575e2fec6ca394f4 100644
--- a/skia/BUILD.gn
+++ b/skia/BUILD.gn
@@ -74,11 +74,19 @@ config("skia_config") {
}
}
-config("skia_dependent_config") {
-}
-
# Internal-facing config for Skia library code.
config("skia_library_config") {
+ # These include directories are only included for Skia code and are not
+ # exported to dependents. It's not clear if this is on purpose, but this
+ # matches the GYP build.
+ include_dirs = []
+ if (is_mac || is_ios) {
+ include_dirs += [ "//third_party/skia/include/utils/mac" ]
+ }
+ if (is_mac) {
+ include_dirs += [ "//third_party/skia/include/utils/ios" ]
+ }
+
defines = [
#skia_export_defines ???) TODO
@@ -250,8 +258,6 @@ component("skia") {
"//third_party/skia/src/ports/SkOSFile_posix.cpp",
"//third_party/skia/src/ports/SkTime_Unix.cpp",
"//third_party/skia/src/ports/SkTLS_pthread.cpp",
- "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp",
- "//third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp",
]
} else {
sources -= [
@@ -277,6 +283,8 @@ component("skia") {
}
if (!is_linux) {
sources -= [
+ "//third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp",
+ "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp",
"//third_party/skia/src/ports/SkFontHost_FreeType.cpp",
"//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp",
"//third_party/skia/src/ports/SkFontHost_fontconfig.cpp",
@@ -302,6 +310,13 @@ component("skia") {
]
}
+ if (is_clang) {
+ # Skia won't compile with some of the more strict clang warnings.
+ # e.g. it does:
+ # SkASSERT(!"sk_out_of_memory");
Nico 2014/07/10 20:39:31 They had fixed all these a while ago when I asked
+ configs -= [ "//build/config/clang:extra_warnings" ]
+ }
+
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
":skia_library_config",
« no previous file with comments | « net/BUILD.gn ('k') | skia/skia_gn_files.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698