summaryrefslogtreecommitdiff
path: root/gfx/2d/moz.build
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/2d/moz.build')
-rw-r--r--gfx/2d/moz.build20
1 files changed, 19 insertions, 1 deletions
diff --git a/gfx/2d/moz.build b/gfx/2d/moz.build
index 7a80b1de2e..4f437d575a 100644
--- a/gfx/2d/moz.build
+++ b/gfx/2d/moz.build
@@ -58,7 +58,16 @@ EXPORTS.mozilla.gfx += [
EXPORTS.mozilla.gfx += ['ssse3-scaler.h']
-if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
+if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('cocoa', 'uikit'):
+ EXPORTS.mozilla.gfx += [
+ 'MacIOSurface.h',
+ ]
+ SOURCES += [
+ 'NativeFontResourceMac.cpp',
+ 'PathCG.cpp',
+ 'ScaledFontMac.cpp',
+ ]
+elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
SOURCES += [
'DrawTargetD2D1.cpp',
'ExtendInputEffectD2D1.cpp',
@@ -172,6 +181,15 @@ if CONFIG['CLANG_CXX']:
if CONFIG['GNU_CXX']:
CXXFLAGS += ['-Wno-error=shadow']
+if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
+ EXPORTS.mozilla.gfx += [
+ 'QuartzSupport.h',
+ ]
+ SOURCES += [
+ 'MacIOSurface.cpp',
+ 'QuartzSupport.mm',
+ ]
+
if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['BUILD_ARM_NEON']:
SOURCES += ['BlurNEON.cpp']
SOURCES['BlurNEON.cpp'].flags += CONFIG['NEON_FLAGS']