gfx/layers/moz.build

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
michael@0 2 # vim: set filetype=python:
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 EXPORTS += [
michael@0 8 'basic/BasicCanvasLayer.h',
michael@0 9 'basic/BasicImplData.h',
michael@0 10 'basic/BasicLayers.h',
michael@0 11 'basic/BasicLayersImpl.h',
michael@0 12 'basic/BasicThebesLayer.h',
michael@0 13 'client/ClientCanvasLayer.h',
michael@0 14 'client/ClientContainerLayer.h',
michael@0 15 'client/ClientLayerManager.h',
michael@0 16 'client/ClientThebesLayer.h',
michael@0 17 'client/ClientTiledThebesLayer.h',
michael@0 18 'composite/CompositableHost.h',
michael@0 19 'composite/ImageHost.h',
michael@0 20 'CopyableCanvasLayer.h',
michael@0 21 'D3D9SurfaceImage.h',
michael@0 22 'FrameMetrics.h',
michael@0 23 'GrallocImages.h',
michael@0 24 'ImageContainer.h',
michael@0 25 'ImageLayers.h',
michael@0 26 'ImageTypes.h',
michael@0 27 'ipc/CompositorChild.h',
michael@0 28 'ipc/CompositorParent.h',
michael@0 29 'ipc/ShadowLayersManager.h',
michael@0 30 'Layers.h',
michael@0 31 'LayerScope.h',
michael@0 32 'LayersLogging.h',
michael@0 33 'LayerSorter.h',
michael@0 34 'LayerTreeInvalidation.h',
michael@0 35 'opengl/Composer2D.h',
michael@0 36 'opengl/OGLShaderProgram.h',
michael@0 37 'opengl/TexturePoolOGL.h',
michael@0 38 'ReadbackLayer.h',
michael@0 39 'SharedTextureImage.h',
michael@0 40 'TiledLayerBuffer.h',
michael@0 41 ]
michael@0 42
michael@0 43 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
michael@0 44 UNIFIED_SOURCES += [
michael@0 45 'D3D9SurfaceImage.cpp',
michael@0 46 ]
michael@0 47 if CONFIG['MOZ_ENABLE_D3D9_LAYER']:
michael@0 48 EXPORTS += [
michael@0 49 'd3d9/DeviceManagerD3D9.h',
michael@0 50 'd3d9/LayerManagerD3D9.h',
michael@0 51 ]
michael@0 52 EXPORTS.mozilla.layers += [
michael@0 53 'd3d9/CompositorD3D9.h',
michael@0 54 'd3d9/TextureD3D9.h',
michael@0 55 ]
michael@0 56 UNIFIED_SOURCES += [
michael@0 57 'd3d9/CanvasLayerD3D9.cpp',
michael@0 58 'd3d9/ColorLayerD3D9.cpp',
michael@0 59 'd3d9/ContainerLayerD3D9.cpp',
michael@0 60 'd3d9/ImageLayerD3D9.cpp',
michael@0 61 'd3d9/LayerManagerD3D9.cpp',
michael@0 62 'd3d9/TextureD3D9.cpp',
michael@0 63 'd3d9/ThebesLayerD3D9.cpp',
michael@0 64 ]
michael@0 65 SOURCES += [
michael@0 66 'd3d9/CompositorD3D9.cpp',
michael@0 67 'd3d9/DeviceManagerD3D9.cpp',
michael@0 68 'd3d9/Nv3DVUtils.cpp',
michael@0 69 ]
michael@0 70 if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
michael@0 71 EXPORTS += [
michael@0 72 'd3d10/LayerManagerD3D10.h',
michael@0 73 'd3d10/ReadbackManagerD3D10.h',
michael@0 74 ]
michael@0 75 EXPORTS.mozilla.layers += [
michael@0 76 'd3d11/CompositorD3D11.h',
michael@0 77 'd3d11/TextureD3D11.h',
michael@0 78 'ipc/ShadowLayerUtilsD3D10.h',
michael@0 79 ]
michael@0 80 UNIFIED_SOURCES += [
michael@0 81 'd3d10/CanvasLayerD3D10.cpp',
michael@0 82 'd3d10/ColorLayerD3D10.cpp',
michael@0 83 'd3d10/ContainerLayerD3D10.cpp',
michael@0 84 'd3d10/ImageLayerD3D10.cpp',
michael@0 85 'd3d10/LayerManagerD3D10.cpp',
michael@0 86 'd3d10/ReadbackManagerD3D10.cpp',
michael@0 87 'd3d10/ThebesLayerD3D10.cpp',
michael@0 88 'd3d11/TextureD3D11.cpp',
michael@0 89 'ipc/ShadowLayerUtilsD3D10.cpp',
michael@0 90 ]
michael@0 91 SOURCES += [
michael@0 92 'd3d11/CompositorD3D11.cpp',
michael@0 93 ]
michael@0 94
michael@0 95 EXPORTS.gfxipc += [
michael@0 96 'ipc/ShadowLayerUtils.h',
michael@0 97 ]
michael@0 98
michael@0 99 EXPORTS.mozilla.layers += [
michael@0 100 'apz/public/GeckoContentController.h',
michael@0 101 # exporting things from apz/src is temporary until we extract a
michael@0 102 # proper interface for the code there
michael@0 103 'apz/src/APZCTreeManager.h',
michael@0 104 'apz/src/AsyncPanZoomController.h',
michael@0 105 'apz/src/Axis.h',
michael@0 106 'apz/src/GestureEventListener.h',
michael@0 107 'apz/src/TaskThrottler.h',
michael@0 108 'apz/util/ActiveElementManager.h',
michael@0 109 'apz/util/APZCCallbackHelper.h',
michael@0 110 'AtomicRefCountedWithFinalize.h',
michael@0 111 'basic/BasicCompositor.h',
michael@0 112 'basic/MacIOSurfaceTextureHostBasic.h',
michael@0 113 'basic/TextureHostBasic.h',
michael@0 114 'client/CanvasClient.h',
michael@0 115 'client/CompositableClient.h',
michael@0 116 'client/ContentClient.h',
michael@0 117 'client/ImageClient.h',
michael@0 118 'client/SimpleTextureClientPool.h',
michael@0 119 'client/SimpleTiledContentClient.h',
michael@0 120 'client/TextureClient.h',
michael@0 121 'client/TextureClientPool.h',
michael@0 122 'client/TiledContentClient.h',
michael@0 123 'composite/AsyncCompositionManager.h',
michael@0 124 'composite/CanvasLayerComposite.h',
michael@0 125 'composite/ColorLayerComposite.h',
michael@0 126 'composite/ContainerLayerComposite.h',
michael@0 127 'composite/ContentHost.h',
michael@0 128 'composite/ImageHost.h',
michael@0 129 'composite/ImageLayerComposite.h',
michael@0 130 'composite/LayerManagerComposite.h',
michael@0 131 'composite/TextureHost.h',
michael@0 132 'composite/ThebesLayerComposite.h',
michael@0 133 'Compositor.h',
michael@0 134 'CompositorTypes.h',
michael@0 135 'D3D9SurfaceImage.h',
michael@0 136 'Effects.h',
michael@0 137 'ImageDataSerializer.h',
michael@0 138 'ipc/CompositableForwarder.h',
michael@0 139 'ipc/CompositableTransactionParent.h',
michael@0 140 'ipc/CompositorChild.h',
michael@0 141 'ipc/CompositorParent.h',
michael@0 142 'ipc/FenceUtils.h',
michael@0 143 'ipc/ImageBridgeChild.h',
michael@0 144 'ipc/ImageBridgeParent.h',
michael@0 145 'ipc/ISurfaceAllocator.h',
michael@0 146 'ipc/LayerTransactionChild.h',
michael@0 147 'ipc/LayerTransactionParent.h',
michael@0 148 'ipc/ShadowLayers.h',
michael@0 149 'ipc/ShadowLayersManager.h',
michael@0 150 'ipc/SharedPlanarYCbCrImage.h',
michael@0 151 'ipc/SharedRGBImage.h',
michael@0 152 'LayersTypes.h',
michael@0 153 'opengl/CompositingRenderTargetOGL.h',
michael@0 154 'opengl/CompositorOGL.h',
michael@0 155 'opengl/GrallocTextureClient.h',
michael@0 156 'opengl/GrallocTextureHost.h',
michael@0 157 'opengl/MacIOSurfaceTextureClientOGL.h',
michael@0 158 'opengl/MacIOSurfaceTextureHostOGL.h',
michael@0 159 'opengl/TextureClientOGL.h',
michael@0 160 'opengl/TextureHostOGL.h',
michael@0 161 'RenderTrace.h',
michael@0 162 'YCbCrImageDataSerializer.h',
michael@0 163 ]
michael@0 164
michael@0 165 if CONFIG['MOZ_X11']:
michael@0 166 EXPORTS.mozilla.layers += [
michael@0 167 'basic/TextureClientX11.h',
michael@0 168 'basic/X11TextureSourceBasic.h',
michael@0 169 'composite/X11TextureHost.h',
michael@0 170 'ipc/ShadowLayerUtilsX11.h',
michael@0 171 'opengl/X11TextureSourceOGL.h',
michael@0 172 ]
michael@0 173 SOURCES += [
michael@0 174 'basic/TextureClientX11.cpp',
michael@0 175 'basic/X11TextureSourceBasic.cpp',
michael@0 176 'composite/X11TextureHost.cpp',
michael@0 177 'ipc/ShadowLayerUtilsX11.cpp',
michael@0 178 'opengl/X11TextureSourceOGL.cpp',
michael@0 179 ]
michael@0 180
michael@0 181 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
michael@0 182 EXPORTS.mozilla.layers += [
michael@0 183 'opengl/GLManager.h',
michael@0 184 ]
michael@0 185 EXPORTS += [
michael@0 186 'MacIOSurfaceImage.h',
michael@0 187 ]
michael@0 188 UNIFIED_SOURCES += [
michael@0 189 'opengl/GLManager.cpp',
michael@0 190 ]
michael@0 191 SOURCES += [
michael@0 192 'ipc/ShadowLayerUtilsMac.cpp',
michael@0 193 'MacIOSurfaceImage.cpp',
michael@0 194 ]
michael@0 195
michael@0 196 # NB: Gralloc is available on other platforms that use the android GL
michael@0 197 # libraries, but only Gonk is able to use it reliably because Gecko
michael@0 198 # has full system permissions there.
michael@0 199 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
michael@0 200 EXPORTS.mozilla.layers += [
michael@0 201 'ipc/ShadowLayerUtilsGralloc.h',
michael@0 202 ]
michael@0 203 UNIFIED_SOURCES += [
michael@0 204 'GrallocImages.cpp',
michael@0 205 'opengl/EGLImageHelpers.cpp',
michael@0 206 'opengl/GrallocTextureClient.cpp',
michael@0 207 'opengl/GrallocTextureHost.cpp',
michael@0 208 ]
michael@0 209 LOCAL_INCLUDES += ['/widget/gonk']
michael@0 210 SOURCES += [
michael@0 211 'ipc/ShadowLayerUtilsGralloc.cpp',
michael@0 212 ]
michael@0 213
michael@0 214 if CONFIG['ANDROID_VERSION'] >= '17':
michael@0 215 EXPORTS.mozilla.layers += [
michael@0 216 'ipc/FenceUtilsGonk.h',
michael@0 217 ]
michael@0 218 SOURCES += [
michael@0 219 'ipc/FenceUtilsGonk.cpp',
michael@0 220 ]
michael@0 221
michael@0 222 UNIFIED_SOURCES += [
michael@0 223 'apz/src/APZCTreeManager.cpp',
michael@0 224 'apz/src/AsyncPanZoomController.cpp',
michael@0 225 'apz/src/Axis.cpp',
michael@0 226 'apz/src/GestureEventListener.cpp',
michael@0 227 'apz/src/TaskThrottler.cpp',
michael@0 228 'apz/util/ActiveElementManager.cpp',
michael@0 229 'apz/util/APZCCallbackHelper.cpp',
michael@0 230 'basic/BasicCanvasLayer.cpp',
michael@0 231 'basic/BasicColorLayer.cpp',
michael@0 232 'basic/BasicCompositor.cpp',
michael@0 233 'basic/BasicContainerLayer.cpp',
michael@0 234 'basic/BasicImages.cpp',
michael@0 235 'basic/BasicLayerManager.cpp',
michael@0 236 'basic/BasicLayersImpl.cpp',
michael@0 237 'basic/BasicThebesLayer.cpp',
michael@0 238 'basic/TextureHostBasic.cpp',
michael@0 239 'BufferUnrotate.cpp',
michael@0 240 'client/CanvasClient.cpp',
michael@0 241 'client/ClientCanvasLayer.cpp',
michael@0 242 'client/ClientColorLayer.cpp',
michael@0 243 'client/ClientContainerLayer.cpp',
michael@0 244 'client/ClientImageLayer.cpp',
michael@0 245 'client/ClientLayerManager.cpp',
michael@0 246 'client/ClientThebesLayer.cpp',
michael@0 247 'client/ClientTiledThebesLayer.cpp',
michael@0 248 'client/CompositableClient.cpp',
michael@0 249 'client/ContentClient.cpp',
michael@0 250 'client/ImageClient.cpp',
michael@0 251 'client/SimpleTextureClientPool.cpp',
michael@0 252 'client/SimpleTiledContentClient.cpp',
michael@0 253 'client/TextureClient.cpp',
michael@0 254 'client/TextureClientPool.cpp',
michael@0 255 'client/TiledContentClient.cpp',
michael@0 256 'composite/AsyncCompositionManager.cpp',
michael@0 257 'composite/CanvasLayerComposite.cpp',
michael@0 258 'composite/ColorLayerComposite.cpp',
michael@0 259 'composite/CompositableHost.cpp',
michael@0 260 'composite/ContainerLayerComposite.cpp',
michael@0 261 'composite/ContentHost.cpp',
michael@0 262 'composite/ImageHost.cpp',
michael@0 263 'composite/ImageLayerComposite.cpp',
michael@0 264 'composite/LayerManagerComposite.cpp',
michael@0 265 'composite/TextRenderer.cpp',
michael@0 266 'composite/TextureHost.cpp',
michael@0 267 'composite/ThebesLayerComposite.cpp',
michael@0 268 'composite/TiledContentHost.cpp',
michael@0 269 'Compositor.cpp',
michael@0 270 'CopyableCanvasLayer.cpp',
michael@0 271 'Effects.cpp',
michael@0 272 'ImageDataSerializer.cpp',
michael@0 273 'ImageLayers.cpp',
michael@0 274 'ipc/CompositableTransactionParent.cpp',
michael@0 275 'ipc/CompositorChild.cpp',
michael@0 276 'ipc/CompositorParent.cpp',
michael@0 277 'ipc/ImageBridgeChild.cpp',
michael@0 278 'ipc/ImageBridgeParent.cpp',
michael@0 279 'ipc/ISurfaceAllocator.cpp',
michael@0 280 'ipc/LayerTransactionChild.cpp',
michael@0 281 'ipc/LayerTransactionParent.cpp',
michael@0 282 'ipc/ShadowLayerChild.cpp',
michael@0 283 'ipc/ShadowLayerParent.cpp',
michael@0 284 'ipc/ShadowLayers.cpp',
michael@0 285 'ipc/SharedPlanarYCbCrImage.cpp',
michael@0 286 'ipc/SharedRGBImage.cpp',
michael@0 287 'LayerScope.cpp',
michael@0 288 'LayersLogging.cpp',
michael@0 289 'LayerSorter.cpp',
michael@0 290 'LayerUtils.cpp',
michael@0 291 'opengl/CompositingRenderTargetOGL.cpp',
michael@0 292 'opengl/CompositorOGL.cpp',
michael@0 293 'opengl/OGLShaderProgram.cpp',
michael@0 294 'opengl/TextureClientOGL.cpp',
michael@0 295 'opengl/TextureHostOGL.cpp',
michael@0 296 'opengl/TexturePoolOGL.cpp',
michael@0 297 'ReadbackProcessor.cpp',
michael@0 298 'RenderTrace.cpp',
michael@0 299 'RotatedBuffer.cpp',
michael@0 300 'YCbCrImageDataSerializer.cpp',
michael@0 301 ]
michael@0 302
michael@0 303 SOURCES += [
michael@0 304 'basic/BasicImageLayer.cpp',
michael@0 305 'ImageContainer.cpp',
michael@0 306 'Layers.cpp',
michael@0 307 'LayerTreeInvalidation.cpp',
michael@0 308 ]
michael@0 309
michael@0 310 # Workaround compiler bug (Bug 795594)
michael@0 311 if CONFIG['_MSC_VER'] and CONFIG['CPU_ARCH'] == 'x86_64':
michael@0 312 for src in [
michael@0 313 'Layers.cpp',
michael@0 314 'LayerTreeInvalidation.cpp',
michael@0 315 ]:
michael@0 316 SOURCES[src].no_pgo = True
michael@0 317
michael@0 318 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
michael@0 319 SOURCES += [
michael@0 320 'basic/MacIOSurfaceTextureHostBasic.cpp',
michael@0 321 'opengl/MacIOSurfaceTextureClientOGL.cpp',
michael@0 322 'opengl/MacIOSurfaceTextureHostOGL.cpp',
michael@0 323 ]
michael@0 324
michael@0 325 IPDL_SOURCES = [
michael@0 326 'ipc/LayersMessages.ipdlh',
michael@0 327 'ipc/LayersSurfaces.ipdlh',
michael@0 328 'ipc/PCompositable.ipdl',
michael@0 329 'ipc/PCompositor.ipdl',
michael@0 330 'ipc/PGrallocBuffer.ipdl',
michael@0 331 'ipc/PImageBridge.ipdl',
michael@0 332 'ipc/PLayer.ipdl',
michael@0 333 'ipc/PLayerTransaction.ipdl',
michael@0 334 'ipc/PTexture.ipdl',
michael@0 335 ]
michael@0 336
michael@0 337 FAIL_ON_WARNINGS = True
michael@0 338
michael@0 339 MSVC_ENABLE_PGO = True
michael@0 340
michael@0 341 include('/ipc/chromium/chromium-config.mozbuild')
michael@0 342
michael@0 343 FINAL_LIBRARY = 'thebes'
michael@0 344
michael@0 345 if CONFIG['MOZ_DEBUG']:
michael@0 346 DEFINES['D3D_DEBUG_INFO'] = True
michael@0 347
michael@0 348 if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
michael@0 349 DEFINES['MOZ_ENABLE_D3D10_LAYER'] = True
michael@0 350
michael@0 351 GENERATED_FILES = [
michael@0 352 'PremultiplyTables.h',
michael@0 353 ]
michael@0 354
michael@0 355 CXXFLAGS += [
michael@0 356 '-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
michael@0 357 'frameworks/base/include/media/stagefright',
michael@0 358 'frameworks/base/include/media/stagefright/openmax',
michael@0 359 'frameworks/av/include/media/stagefright',
michael@0 360 'frameworks/native/include/media/openmax',
michael@0 361 ]
michael@0 362 ]

mercurial