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

Unified Diff: skia/skia.gyp

Issue 22435002: Android WebView: support building against system skia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update include to match skia roll Created 7 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 | « build/common.gypi ('k') | skia/skia_system.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/skia.gyp
diff --git a/skia/skia.gyp b/skia/skia.gyp
index 2f9e47a591062d058021192d6fb14ae2175d8410..d1a227557c6122c6c8a2e2b3d4ae06a1ba5f1465 100644
--- a/skia/skia.gyp
+++ b/skia/skia.gyp
@@ -4,10 +4,31 @@
{
'conditions': [
- # In component mode (shared_lib), we build all of content as a single DLL.
- # However, in the static mode, we need to build content as multiple targets
+ # In component mode (shared_lib), we build all of skia as a single DLL.
+ # However, in the static mode, we need to build skia as multiple targets
# in order to support the use case where a platform (e.g. Android) may
# already have a copy of skia as a system library.
+ ['component=="static_library" and use_system_skia==0', {
+ 'targets': [
+ {
+ 'target_name': 'skia_library',
+ 'type': 'static_library',
+ 'includes': [
+ 'skia_library.gypi',
+ 'skia_common.gypi',
+ ],
+ },
+ ],
+ }],
+ ['component=="static_library" and use_system_skia==1', {
+ 'targets': [
+ {
+ 'target_name': 'skia_library',
+ 'type': 'none',
+ 'includes': ['skia_system.gypi'],
+ },
+ ],
+ }],
['component=="static_library"', {
'targets': [
{
@@ -23,14 +44,6 @@
],
},
{
- 'target_name': 'skia_library',
- 'type': 'static_library',
- 'includes': [
- 'skia_library.gypi',
- 'skia_common.gypi',
- ],
- },
- {
'target_name': 'skia_chrome',
'type': 'static_library',
'includes': [
« no previous file with comments | « build/common.gypi ('k') | skia/skia_system.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698