summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorspang@chromium.org <spang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-19 20:17:16 +0000
committerspang@chromium.org <spang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-19 20:17:16 +0000
commit928362a94bbfd051c6abda4b3f8f3a9cdeaa0600 (patch)
tree67c9655ff6129d458a3776173bab8bf2f5420a23 /build
parentea9f65b6aa5e13a1ee47e33ce51d0ff03d298122 (diff)
downloadchromium_src-928362a94bbfd051c6abda4b3f8f3a9cdeaa0600.zip
chromium_src-928362a94bbfd051c6abda4b3f8f3a9cdeaa0600.tar.gz
chromium_src-928362a94bbfd051c6abda4b3f8f3a9cdeaa0600.tar.bz2
ozone: Support building without cairo
This adds a use_cairo gyp variable that removes cairo from the build. To build skia without cairo, we need the code in bitmap_platform_device_android.cc. To make all platforms build the correct files, rename bitmap_platform_device_linux to bitmap_platform_device_cairo and rename bitmap_platform_device_android to bitmap_platform_device_skia. We'll use bitmap_platform_device_skia for Android and for embedded content shell. BUG=318315, 318413 Review URL: https://codereview.chromium.org/59133008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236037 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi8
1 files changed, 7 insertions, 1 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 6f40a2c..b967fda 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -520,11 +520,13 @@
'use_glib%': 1,
}],
- # Flags to use pango.
+ # Flags to use pango and cairo.
['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or embedded==1', {
'use_pango%': 0,
+ 'use_cairo%': 0,
}, {
'use_pango%': 1,
+ 'use_cairo%': 1,
}],
# DBus usage.
@@ -853,6 +855,7 @@
'use_dbus%': '<(use_dbus)',
'use_glib%': '<(use_glib)',
'use_pango%': '<(use_pango)',
+ 'use_cairo%': '<(use_cairo)',
'use_ozone%': '<(use_ozone)',
'use_ozone_evdev%': '<(use_ozone_evdev)',
'toolkit_uses_gtk%': '<(toolkit_uses_gtk)',
@@ -2053,6 +2056,9 @@
['use_ash==1', {
'defines': ['USE_ASH=1'],
}],
+ ['use_cairo==1', {
+ 'defines': ['USE_CAIRO=1'],
+ }],
['use_cras==1', {
'defines': ['USE_CRAS=1'],
}],