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

Unified Diff: skia/skia_common.gypi

Issue 19477005: Improve Skia configuration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Android framework support. Created 7 years, 3 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: skia/skia_common.gypi
===================================================================
--- skia/skia_common.gypi (revision 225491)
+++ skia/skia_common.gypi (working copy)
@@ -5,6 +5,11 @@
# This gypi file handles the removal of platform-specific files from the
# Skia build.
{
+ 'include_dirs': [
+ '..',
+ 'config',
+ ],
+
'conditions': [
[ 'OS != "android"', {
'sources/': [
@@ -29,5 +34,40 @@
}],
],
+ 'variables': {
+ 'variables': { 'conditions': [
+ [ 'OS == "win"', {
+ 'skia_atomics_impl': 'win',
+ 'skia_mutex_impl': 'win',
+ }, { 'conditions': [
+ [ 'OS == "android" and use_system_skia == 1', {
+ 'skia_atomics_impl': 'android',
+ 'skia_mutex_impl': 'pthread',
+ }, {
+ 'skia_atomics_impl': 'sync',
+ 'skia_mutex_impl': 'pthread',
+ }],
+ ]}],
+ ]},
+ 'skia_threading_defines': [
+ 'SK_ATOMICS_PLATFORM_H="third_party/skia/src/ports/SkAtomics_<(skia_atomics_impl).h"',
+ 'SK_MUTEX_PLATFORM_H="third_party/skia/src/ports/SkMutex_<(skia_mutex_impl).h"',
+ ],
+ },
+
+ 'defines': [
+ '<@(skia_threading_defines)',
+ ],
+
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '..',
+ 'config',
+ ],
+ 'defines': [
+ '<@(skia_threading_defines)',
djsollen 2013/09/27 18:17:10 should this be in an all_dependent_settings block
bungeman-skia 2013/09/27 18:39:43 Good question with a complex answer. So, as a poli
+ ],
+ },
+
'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4748, 4800],
}

Powered by Google App Engine
This is Rietveld 408576698