summaryrefslogtreecommitdiff
path: root/skia
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2013-08-14 11:51:42 +0100
committerBen Murdoch <benm@google.com>2013-08-14 11:51:42 +0100
commitc2db58bd994c04d98e4ee2cd7565b71548655fe3 (patch)
treeb37b6fa44ddba0dbeffd3ec22334f6fa0e57751b /skia
parentfc9d5208680b35b576f64623b0e38c14bc0e97dd (diff)
downloadchromium_org-c2db58bd994c04d98e4ee2cd7565b71548655fe3.tar.gz
Merge from Chromium at DEPS revision r217147
This commit was generated by merge_to_master.py. Change-Id: Ifa927da4997e49ab95edfc5def5ee5615a76b1be
Diffstat (limited to 'skia')
-rw-r--r--skia/skia.gyp33
-rw-r--r--skia/skia_chrome.target.darwin-arm.mk2
-rw-r--r--skia/skia_chrome.target.darwin-mips.mk2
-rw-r--r--skia/skia_chrome.target.darwin-x86.mk2
-rw-r--r--skia/skia_chrome.target.linux-arm.mk2
-rw-r--r--skia/skia_chrome.target.linux-mips.mk2
-rw-r--r--skia/skia_chrome.target.linux-x86.mk2
-rw-r--r--skia/skia_library.gypi2
-rw-r--r--skia/skia_library.target.darwin-arm.mk2
-rw-r--r--skia/skia_library.target.darwin-mips.mk2
-rw-r--r--skia/skia_library.target.darwin-x86.mk2
-rw-r--r--skia/skia_library.target.linux-arm.mk2
-rw-r--r--skia/skia_library.target.linux-mips.mk2
-rw-r--r--skia/skia_library.target.linux-x86.mk2
-rw-r--r--skia/skia_system.gypi24
15 files changed, 47 insertions, 36 deletions
diff --git a/skia/skia.gyp b/skia/skia.gyp
index 2f9e47a591..d1a227557c 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': [
diff --git a/skia/skia_chrome.target.darwin-arm.mk b/skia/skia_chrome.target.darwin-arm.mk
index 6d86040839..12da9d6529 100644
--- a/skia/skia_chrome.target.darwin-arm.mk
+++ b/skia/skia_chrome.target.darwin-arm.mk
@@ -123,7 +123,6 @@ LOCAL_C_INCLUDES_Debug := \
$(LOCAL_PATH)/third_party/skia/include/effects \
$(LOCAL_PATH)/third_party/skia/include/pdf \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/include/lazy \
$(LOCAL_PATH)/third_party/skia/include/pathops \
$(LOCAL_PATH)/third_party/skia/include/pipe \
@@ -225,7 +224,6 @@ LOCAL_C_INCLUDES_Release := \
$(LOCAL_PATH)/third_party/skia/include/effects \
$(LOCAL_PATH)/third_party/skia/include/pdf \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/include/lazy \
$(LOCAL_PATH)/third_party/skia/include/pathops \
$(LOCAL_PATH)/third_party/skia/include/pipe \
diff --git a/skia/skia_chrome.target.darwin-mips.mk b/skia/skia_chrome.target.darwin-mips.mk
index 3e2989cca4..355d00ba0d 100644
--- a/skia/skia_chrome.target.darwin-mips.mk
+++ b/skia/skia_chrome.target.darwin-mips.mk
@@ -123,7 +123,6 @@ LOCAL_C_INCLUDES_Debug := \
$(LOCAL_PATH)/third_party/skia/include/effects \
$(LOCAL_PATH)/third_party/skia/include/pdf \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/include/lazy \
$(LOCAL_PATH)/third_party/skia/include/pathops \
$(LOCAL_PATH)/third_party/skia/include/pipe \
@@ -225,7 +224,6 @@ LOCAL_C_INCLUDES_Release := \
$(LOCAL_PATH)/third_party/skia/include/effects \
$(LOCAL_PATH)/third_party/skia/include/pdf \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/include/lazy \
$(LOCAL_PATH)/third_party/skia/include/pathops \
$(LOCAL_PATH)/third_party/skia/include/pipe \
diff --git a/skia/skia_chrome.target.darwin-x86.mk b/skia/skia_chrome.target.darwin-x86.mk
index d55ec3bafe..f40fb324a5 100644
--- a/skia/skia_chrome.target.darwin-x86.mk
+++ b/skia/skia_chrome.target.darwin-x86.mk
@@ -125,7 +125,6 @@ LOCAL_C_INCLUDES_Debug := \
$(LOCAL_PATH)/third_party/skia/include/effects \
$(LOCAL_PATH)/third_party/skia/include/pdf \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/include/lazy \
$(LOCAL_PATH)/third_party/skia/include/pathops \
$(LOCAL_PATH)/third_party/skia/include/pipe \
@@ -230,7 +229,6 @@ LOCAL_C_INCLUDES_Release := \
$(LOCAL_PATH)/third_party/skia/include/effects \
$(LOCAL_PATH)/third_party/skia/include/pdf \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/include/lazy \
$(LOCAL_PATH)/third_party/skia/include/pathops \
$(LOCAL_PATH)/third_party/skia/include/pipe \
diff --git a/skia/skia_chrome.target.linux-arm.mk b/skia/skia_chrome.target.linux-arm.mk
index 6d86040839..12da9d6529 100644
--- a/skia/skia_chrome.target.linux-arm.mk
+++ b/skia/skia_chrome.target.linux-arm.mk
@@ -123,7 +123,6 @@ LOCAL_C_INCLUDES_Debug := \
$(LOCAL_PATH)/third_party/skia/include/effects \
$(LOCAL_PATH)/third_party/skia/include/pdf \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/include/lazy \
$(LOCAL_PATH)/third_party/skia/include/pathops \
$(LOCAL_PATH)/third_party/skia/include/pipe \
@@ -225,7 +224,6 @@ LOCAL_C_INCLUDES_Release := \
$(LOCAL_PATH)/third_party/skia/include/effects \
$(LOCAL_PATH)/third_party/skia/include/pdf \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/include/lazy \
$(LOCAL_PATH)/third_party/skia/include/pathops \
$(LOCAL_PATH)/third_party/skia/include/pipe \
diff --git a/skia/skia_chrome.target.linux-mips.mk b/skia/skia_chrome.target.linux-mips.mk
index 3e2989cca4..355d00ba0d 100644
--- a/skia/skia_chrome.target.linux-mips.mk
+++ b/skia/skia_chrome.target.linux-mips.mk
@@ -123,7 +123,6 @@ LOCAL_C_INCLUDES_Debug := \
$(LOCAL_PATH)/third_party/skia/include/effects \
$(LOCAL_PATH)/third_party/skia/include/pdf \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/include/lazy \
$(LOCAL_PATH)/third_party/skia/include/pathops \
$(LOCAL_PATH)/third_party/skia/include/pipe \
@@ -225,7 +224,6 @@ LOCAL_C_INCLUDES_Release := \
$(LOCAL_PATH)/third_party/skia/include/effects \
$(LOCAL_PATH)/third_party/skia/include/pdf \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/include/lazy \
$(LOCAL_PATH)/third_party/skia/include/pathops \
$(LOCAL_PATH)/third_party/skia/include/pipe \
diff --git a/skia/skia_chrome.target.linux-x86.mk b/skia/skia_chrome.target.linux-x86.mk
index d55ec3bafe..f40fb324a5 100644
--- a/skia/skia_chrome.target.linux-x86.mk
+++ b/skia/skia_chrome.target.linux-x86.mk
@@ -125,7 +125,6 @@ LOCAL_C_INCLUDES_Debug := \
$(LOCAL_PATH)/third_party/skia/include/effects \
$(LOCAL_PATH)/third_party/skia/include/pdf \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/include/lazy \
$(LOCAL_PATH)/third_party/skia/include/pathops \
$(LOCAL_PATH)/third_party/skia/include/pipe \
@@ -230,7 +229,6 @@ LOCAL_C_INCLUDES_Release := \
$(LOCAL_PATH)/third_party/skia/include/effects \
$(LOCAL_PATH)/third_party/skia/include/pdf \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/include/lazy \
$(LOCAL_PATH)/third_party/skia/include/pathops \
$(LOCAL_PATH)/third_party/skia/include/pipe \
diff --git a/skia/skia_library.gypi b/skia/skia_library.gypi
index 6d3f1c5f3d..2900553361 100644
--- a/skia/skia_library.gypi
+++ b/skia/skia_library.gypi
@@ -199,7 +199,6 @@
],
'include_dirs': [
'../third_party/skia/include/gpu',
- '../third_party/skia/include/gpu/gl',
'../third_party/skia/src/gpu',
],
}],
@@ -460,7 +459,6 @@
'../third_party/skia/include/effects',
'../third_party/skia/include/pdf',
'../third_party/skia/include/gpu',
- '../third_party/skia/include/gpu/gl',
'../third_party/skia/include/lazy',
'../third_party/skia/include/pathops',
'../third_party/skia/include/pipe',
diff --git a/skia/skia_library.target.darwin-arm.mk b/skia/skia_library.target.darwin-arm.mk
index 86d43ccb8c..3f0321b26d 100644
--- a/skia/skia_library.target.darwin-arm.mk
+++ b/skia/skia_library.target.darwin-arm.mk
@@ -466,7 +466,6 @@ LOCAL_C_INCLUDES_Debug := \
$(LOCAL_PATH)/third_party/skia/src/utils \
$(LOCAL_PATH)/third_party/skia/src/lazy \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/src/gpu \
$(LOCAL_PATH)/third_party/expat/files/lib \
$(LOCAL_PATH)/third_party/zlib \
@@ -589,7 +588,6 @@ LOCAL_C_INCLUDES_Release := \
$(LOCAL_PATH)/third_party/skia/src/utils \
$(LOCAL_PATH)/third_party/skia/src/lazy \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/src/gpu \
$(LOCAL_PATH)/third_party/expat/files/lib \
$(LOCAL_PATH)/third_party/zlib \
diff --git a/skia/skia_library.target.darwin-mips.mk b/skia/skia_library.target.darwin-mips.mk
index 8365e9c729..dbbd847c94 100644
--- a/skia/skia_library.target.darwin-mips.mk
+++ b/skia/skia_library.target.darwin-mips.mk
@@ -464,7 +464,6 @@ LOCAL_C_INCLUDES_Debug := \
$(LOCAL_PATH)/third_party/skia/src/utils \
$(LOCAL_PATH)/third_party/skia/src/lazy \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/src/gpu \
$(LOCAL_PATH)/third_party/expat/files/lib \
$(LOCAL_PATH)/third_party/zlib \
@@ -586,7 +585,6 @@ LOCAL_C_INCLUDES_Release := \
$(LOCAL_PATH)/third_party/skia/src/utils \
$(LOCAL_PATH)/third_party/skia/src/lazy \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/src/gpu \
$(LOCAL_PATH)/third_party/expat/files/lib \
$(LOCAL_PATH)/third_party/zlib \
diff --git a/skia/skia_library.target.darwin-x86.mk b/skia/skia_library.target.darwin-x86.mk
index 22fbdae606..8ce6ff279a 100644
--- a/skia/skia_library.target.darwin-x86.mk
+++ b/skia/skia_library.target.darwin-x86.mk
@@ -467,7 +467,6 @@ LOCAL_C_INCLUDES_Debug := \
$(LOCAL_PATH)/third_party/skia/src/utils \
$(LOCAL_PATH)/third_party/skia/src/lazy \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/src/gpu \
$(LOCAL_PATH)/third_party/expat/files/lib \
$(LOCAL_PATH)/third_party/zlib \
@@ -592,7 +591,6 @@ LOCAL_C_INCLUDES_Release := \
$(LOCAL_PATH)/third_party/skia/src/utils \
$(LOCAL_PATH)/third_party/skia/src/lazy \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/src/gpu \
$(LOCAL_PATH)/third_party/expat/files/lib \
$(LOCAL_PATH)/third_party/zlib \
diff --git a/skia/skia_library.target.linux-arm.mk b/skia/skia_library.target.linux-arm.mk
index 86d43ccb8c..3f0321b26d 100644
--- a/skia/skia_library.target.linux-arm.mk
+++ b/skia/skia_library.target.linux-arm.mk
@@ -466,7 +466,6 @@ LOCAL_C_INCLUDES_Debug := \
$(LOCAL_PATH)/third_party/skia/src/utils \
$(LOCAL_PATH)/third_party/skia/src/lazy \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/src/gpu \
$(LOCAL_PATH)/third_party/expat/files/lib \
$(LOCAL_PATH)/third_party/zlib \
@@ -589,7 +588,6 @@ LOCAL_C_INCLUDES_Release := \
$(LOCAL_PATH)/third_party/skia/src/utils \
$(LOCAL_PATH)/third_party/skia/src/lazy \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/src/gpu \
$(LOCAL_PATH)/third_party/expat/files/lib \
$(LOCAL_PATH)/third_party/zlib \
diff --git a/skia/skia_library.target.linux-mips.mk b/skia/skia_library.target.linux-mips.mk
index 8365e9c729..dbbd847c94 100644
--- a/skia/skia_library.target.linux-mips.mk
+++ b/skia/skia_library.target.linux-mips.mk
@@ -464,7 +464,6 @@ LOCAL_C_INCLUDES_Debug := \
$(LOCAL_PATH)/third_party/skia/src/utils \
$(LOCAL_PATH)/third_party/skia/src/lazy \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/src/gpu \
$(LOCAL_PATH)/third_party/expat/files/lib \
$(LOCAL_PATH)/third_party/zlib \
@@ -586,7 +585,6 @@ LOCAL_C_INCLUDES_Release := \
$(LOCAL_PATH)/third_party/skia/src/utils \
$(LOCAL_PATH)/third_party/skia/src/lazy \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/src/gpu \
$(LOCAL_PATH)/third_party/expat/files/lib \
$(LOCAL_PATH)/third_party/zlib \
diff --git a/skia/skia_library.target.linux-x86.mk b/skia/skia_library.target.linux-x86.mk
index 22fbdae606..8ce6ff279a 100644
--- a/skia/skia_library.target.linux-x86.mk
+++ b/skia/skia_library.target.linux-x86.mk
@@ -467,7 +467,6 @@ LOCAL_C_INCLUDES_Debug := \
$(LOCAL_PATH)/third_party/skia/src/utils \
$(LOCAL_PATH)/third_party/skia/src/lazy \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/src/gpu \
$(LOCAL_PATH)/third_party/expat/files/lib \
$(LOCAL_PATH)/third_party/zlib \
@@ -592,7 +591,6 @@ LOCAL_C_INCLUDES_Release := \
$(LOCAL_PATH)/third_party/skia/src/utils \
$(LOCAL_PATH)/third_party/skia/src/lazy \
$(LOCAL_PATH)/third_party/skia/include/gpu \
- $(LOCAL_PATH)/third_party/skia/include/gpu/gl \
$(LOCAL_PATH)/third_party/skia/src/gpu \
$(LOCAL_PATH)/third_party/expat/files/lib \
$(LOCAL_PATH)/third_party/zlib \
diff --git a/skia/skia_system.gypi b/skia/skia_system.gypi
new file mode 100644
index 0000000000..b05623c050
--- /dev/null
+++ b/skia/skia_system.gypi
@@ -0,0 +1,24 @@
+# Copyright 2013 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.
+
+
+# This gypi file contains the shim header generation and other settings to use
+# the system version of skia on Android.
+{
+ 'direct_dependent_settings': {
+ # This makes the Android build system set the include path appropriately.
+ 'libraries': [ '-lskia' ],
+ },
+ 'link_settings': {
+ # This actually causes the final binary to be linked against skia.
+ 'libraries': [ '-lskia' ],
+ },
+ 'variables': {
+ 'headers_root_path': '../third_party/skia/include',
+ },
+ 'includes': [
+ '../third_party/skia/gyp/public_headers.gypi',
+ '../build/shim_headers.gypi',
+ ],
+}