widget/gonk/nativewindow/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/widget/gonk/nativewindow/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,78 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# Copyright 2013 Mozilla Foundation and Mozilla contributors
     1.7 +#
     1.8 +# Licensed under the Apache License, Version 2.0 (the "License");
     1.9 +# you may not use this file except in compliance with the License.
    1.10 +# You may obtain a copy of the License at
    1.11 +#
    1.12 +#     http://www.apache.org/licenses/LICENSE-2.0
    1.13 +#
    1.14 +# Unless required by applicable law or agreed to in writing, software
    1.15 +# distributed under the License is distributed on an "AS IS" BASIS,
    1.16 +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    1.17 +# See the License for the specific language governing permissions and
    1.18 +# limitations under the License.
    1.19 +
    1.20 +EXPORTS += [
    1.21 +    'GonkBufferQueue.h',
    1.22 +    'GonkNativeWindow.h',
    1.23 +    'GonkNativeWindowClient.h',
    1.24 +]
    1.25 +
    1.26 +if CONFIG['ANDROID_VERSION'] == '19':
    1.27 +    EXPORTS += [
    1.28 +        'GonkBufferQueueKK.h',
    1.29 +        'GonkConsumerBaseKK.h',
    1.30 +        'GonkNativeWindowClientKK.h',
    1.31 +        'GonkNativeWindowKK.h',
    1.32 +        'IGonkGraphicBufferConsumer.h',
    1.33 +    ]
    1.34 +elif CONFIG['ANDROID_VERSION'] in ('17', '18'):
    1.35 +    EXPORTS += [
    1.36 +        'GonkBufferQueueJB.h',
    1.37 +        'GonkConsumerBaseJB.h',
    1.38 +        'GonkNativeWindowClientJB.h',
    1.39 +        'GonkNativeWindowJB.h',
    1.40 +    ]
    1.41 +elif CONFIG['ANDROID_VERSION'] == '15':
    1.42 +    EXPORTS += [
    1.43 +        'GonkNativeWindowClientICS.h',
    1.44 +        'GonkNativeWindowICS.h',
    1.45 +    ]
    1.46 +
    1.47 +if CONFIG['MOZ_B2G_CAMERA'] or CONFIG['MOZ_OMX_DECODER'] or CONFIG['MOZ_WEBRTC']:
    1.48 +    if CONFIG['ANDROID_VERSION'] == '19':
    1.49 +        SOURCES += [
    1.50 +            'GonkBufferQueueKK.cpp',
    1.51 +            'GonkConsumerBaseKK.cpp',
    1.52 +            'GonkNativeWindowClientKK.cpp',
    1.53 +            'GonkNativeWindowKK.cpp',
    1.54 +            'IGonkGraphicBufferConsumer.cpp',
    1.55 +        ]
    1.56 +    elif CONFIG['ANDROID_VERSION'] in ('17', '18'):
    1.57 +        SOURCES += [
    1.58 +            'GonkBufferQueueJB.cpp',
    1.59 +            'GonkConsumerBaseJB.cpp',
    1.60 +            'GonkNativeWindowClientJB.cpp',
    1.61 +            'GonkNativeWindowJB.cpp',
    1.62 +        ]
    1.63 +    elif CONFIG['ANDROID_VERSION'] == '15':
    1.64 +        SOURCES += [
    1.65 +            'GonkNativeWindowClientICS.cpp',
    1.66 +            'GonkNativeWindowICS.cpp',
    1.67 +        ]
    1.68 +
    1.69 +if CONFIG['MOZ_B2G_CAMERA'] or CONFIG['MOZ_OMX_DECODER']:
    1.70 +    if CONFIG['ANDROID_VERSION'] >= '18':
    1.71 +        SOURCES += [
    1.72 +            'FakeSurfaceComposer.cpp',
    1.73 +        ]
    1.74 +
    1.75 +FAIL_ON_WARNINGS = True
    1.76 +
    1.77 +include('/ipc/chromium/chromium-config.mozbuild')
    1.78 +
    1.79 +FINAL_LIBRARY = 'xul'
    1.80 +
    1.81 +DISABLE_STL_WRAPPING = True

mercurial