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

Unified Diff: gyp/ports.gyp

Issue 152513007: Build Skia for a bare-bones embedded Linux system. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: again Created 6 years, 10 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
Index: gyp/ports.gyp
diff --git a/gyp/ports.gyp b/gyp/ports.gyp
index a62791002a44e60c51e34412079ff33f73ea0e2a..7ecda5f35e6e68c919d483bd51be041c302e709e 100644
--- a/gyp/ports.gyp
+++ b/gyp/ports.gyp
@@ -64,16 +64,29 @@
],
}],
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
- 'link_settings': {
- 'libraries': [
- '-lfontconfig',
- '-ldl',
- ],
- },
- 'sources': [
- '../src/fonts/SkFontMgr_fontconfig.cpp',
- '../src/ports/SkFontHost_fontconfig.cpp',
- '../src/ports/SkFontConfigInterface_direct.cpp',
+ 'conditions': [
+ [ 'skia_no_fontconfig', {
+ 'link_settings': {
+ 'libraries': [
+ '-ldl',
+ ],
+ },
+ 'sources': [
+ '../src/ports/SkFontHost_linux.cpp',
+ ],
+ }, {
+ 'link_settings': {
+ 'libraries': [
+ '-lfontconfig',
+ '-ldl',
+ ],
+ },
+ 'sources': [
+ '../src/fonts/SkFontMgr_fontconfig.cpp',
+ '../src/ports/SkFontHost_fontconfig.cpp',
+ '../src/ports/SkFontConfigInterface_direct.cpp',
+ ],
+ }]
],
}],
[ 'skia_os == "nacl"', {

Powered by Google App Engine
This is Rietveld 408576698