gfx/qcms/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/qcms/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,65 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +EXPORTS += [
    1.11 +    'qcms.h',
    1.12 +    'qcmstypes.h',
    1.13 +]
    1.14 +
    1.15 +SOURCES += [
    1.16 +    'chain.c',
    1.17 +    'iccread.c',
    1.18 +    'matrix.c',
    1.19 +    'transform.c',
    1.20 +    'transform_util.c',
    1.21 +]
    1.22 +
    1.23 +MSVC_ENABLE_PGO = True
    1.24 +
    1.25 +FINAL_LIBRARY = 'gkmedias'
    1.26 +
    1.27 +if CONFIG['GNU_CC']:
    1.28 +    CFLAGS += ['-Wno-missing-field-initializers']
    1.29 +
    1.30 +use_sse1 = False
    1.31 +use_sse2 = False
    1.32 +use_altivec = False
    1.33 +if '86' in CONFIG['OS_TEST']:
    1.34 +    use_sse2 = True
    1.35 +    if CONFIG['_MSC_VER']:
    1.36 +        if CONFIG['OS_ARCH'] != 'WINNT' or CONFIG['OS_TEST'] != 'x86_64':
    1.37 +            use_sse1 = True
    1.38 +    else:
    1.39 +        use_sse1 = True
    1.40 +elif 'ppc' in CONFIG['CPU_ARCH']:
    1.41 +    if CONFIG['GNU_CC']:
    1.42 +        use_altivec = True
    1.43 +
    1.44 +if use_sse1:
    1.45 +    SOURCES += ['transform-sse1.c']
    1.46 +    SOURCES['transform-sse1.c'].flags += CONFIG['SSE_FLAGS']
    1.47 +    if CONFIG['SOLARIS_SUNPRO_CC']:
    1.48 +        if '64' in CONFIG['OS_TEST']:
    1.49 +            # Sun Studio doesn't work correctly for x86 intristics
    1.50 +            # with -m64 and without optimization.
    1.51 +            SOURCES['transform-sse1.c'].flags += ['-xO4']
    1.52 +        else:
    1.53 +            SOURCES['transform-sse1.c'].flags += ['-xarch=sse']
    1.54 +
    1.55 +if use_sse2:
    1.56 +    SOURCES += ['transform-sse2.c']
    1.57 +    SOURCES['transform-sse2.c'].flags += CONFIG['SSE2_FLAGS']
    1.58 +    if CONFIG['SOLARIS_SUNPRO_CC']:
    1.59 +        if '64' in CONFIG['OS_TEST']:
    1.60 +            # Sun Studio doesn't work correctly for x86 intristics
    1.61 +            # with -m64 and without optimization.
    1.62 +            SOURCES['transform-sse2.c'].flags += ['-xO4']
    1.63 +        else:
    1.64 +            SOURCES['transform-sse2.c'].flags += ['-xarch=sse2']
    1.65 +
    1.66 +if use_altivec:
    1.67 +    SOURCES += ['transform-altivec.c']
    1.68 +    SOURCES['transform-altivec.c'].flags += ['-maltivec']

mercurial