2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:22 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
DIRS += ['simd']
|
2013-03-19 22:47:00 +04:00
|
|
|
|
|
|
|
MODULE = 'jpeg'
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'jconfig.h',
|
|
|
|
'jerror.h',
|
|
|
|
'jinclude.h',
|
|
|
|
'jmorecfg.h',
|
|
|
|
'jpegint.h',
|
|
|
|
'jpeglib.h',
|
|
|
|
]
|
|
|
|
|
2013-05-22 23:08:51 +04:00
|
|
|
if CONFIG['LIBJPEG_TURBO_X64_ASM']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-05-22 23:08:51 +04:00
|
|
|
'simd/jccolss2-64.asm',
|
|
|
|
'simd/jcgrass2-64.asm',
|
|
|
|
'simd/jcqnts2f-64.asm',
|
|
|
|
'simd/jcqnts2i-64.asm',
|
|
|
|
'simd/jcsamss2-64.asm',
|
|
|
|
'simd/jdcolss2-64.asm',
|
|
|
|
'simd/jdmerss2-64.asm',
|
|
|
|
'simd/jdsamss2-64.asm',
|
|
|
|
'simd/jfss2fst-64.asm',
|
|
|
|
'simd/jfss2int-64.asm',
|
|
|
|
'simd/jfsseflt-64.asm',
|
|
|
|
'simd/jiss2flt-64.asm',
|
|
|
|
'simd/jiss2fst-64.asm',
|
|
|
|
'simd/jiss2int-64.asm',
|
|
|
|
'simd/jiss2red-64.asm',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['LIBJPEG_TURBO_X86_ASM']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-05-22 23:08:51 +04:00
|
|
|
'simd/jccolmmx.asm',
|
|
|
|
'simd/jccolss2.asm',
|
|
|
|
'simd/jcgrammx.asm',
|
|
|
|
'simd/jcgrass2.asm',
|
|
|
|
'simd/jcqnt3dn.asm',
|
|
|
|
'simd/jcqntmmx.asm',
|
|
|
|
'simd/jcqnts2f.asm',
|
|
|
|
'simd/jcqnts2i.asm',
|
|
|
|
'simd/jcqntsse.asm',
|
|
|
|
'simd/jcsammmx.asm',
|
|
|
|
'simd/jcsamss2.asm',
|
|
|
|
'simd/jdcolmmx.asm',
|
|
|
|
'simd/jdcolss2.asm',
|
|
|
|
'simd/jdmermmx.asm',
|
|
|
|
'simd/jdmerss2.asm',
|
|
|
|
'simd/jdsammmx.asm',
|
|
|
|
'simd/jdsamss2.asm',
|
|
|
|
'simd/jf3dnflt.asm',
|
|
|
|
'simd/jfmmxfst.asm',
|
|
|
|
'simd/jfmmxint.asm',
|
|
|
|
'simd/jfss2fst.asm',
|
|
|
|
'simd/jfss2int.asm',
|
|
|
|
'simd/jfsseflt.asm',
|
|
|
|
'simd/ji3dnflt.asm',
|
|
|
|
'simd/jimmxfst.asm',
|
|
|
|
'simd/jimmxint.asm',
|
|
|
|
'simd/jimmxred.asm',
|
|
|
|
'simd/jiss2flt.asm',
|
|
|
|
'simd/jiss2fst.asm',
|
|
|
|
'simd/jiss2int.asm',
|
|
|
|
'simd/jiss2red.asm',
|
|
|
|
'simd/jisseflt.asm',
|
|
|
|
'simd/jsimdcpu.asm',
|
|
|
|
]
|
2013-06-04 19:08:44 +04:00
|
|
|
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-06-04 19:08:44 +04:00
|
|
|
'jcomapi.c',
|
|
|
|
'jdapimin.c',
|
|
|
|
'jdapistd.c',
|
|
|
|
'jdatadst.c',
|
|
|
|
'jdatasrc.c',
|
|
|
|
'jdcoefct.c',
|
|
|
|
'jdcolor.c',
|
|
|
|
'jddctmgr.c',
|
|
|
|
'jdhuff.c',
|
|
|
|
'jdinput.c',
|
|
|
|
'jdmainct.c',
|
|
|
|
'jdmarker.c',
|
|
|
|
'jdmaster.c',
|
|
|
|
'jdmerge.c',
|
|
|
|
'jdphuff.c',
|
|
|
|
'jdpostct.c',
|
|
|
|
'jdsample.c',
|
|
|
|
'jdtrans.c',
|
|
|
|
'jerror.c',
|
|
|
|
'jfdctflt.c',
|
|
|
|
'jfdctfst.c',
|
|
|
|
'jfdctint.c',
|
|
|
|
'jidctflt.c',
|
|
|
|
'jidctfst.c',
|
|
|
|
'jidctint.c',
|
|
|
|
'jidctred.c',
|
|
|
|
'jmemmgr.c',
|
|
|
|
'jmemnobs.c',
|
|
|
|
'jquant1.c',
|
|
|
|
'jquant2.c',
|
|
|
|
'jutils.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
# These files enable support for writing JPEGs
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-06-04 19:08:44 +04:00
|
|
|
'jcapimin.c',
|
|
|
|
'jcapistd.c',
|
|
|
|
'jccoefct.c',
|
|
|
|
'jccolor.c',
|
|
|
|
'jcdctmgr.c',
|
|
|
|
'jchuff.c',
|
|
|
|
'jcinit.c',
|
|
|
|
'jcmainct.c',
|
|
|
|
'jcmarker.c',
|
|
|
|
'jcmaster.c',
|
|
|
|
'jcparam.c',
|
|
|
|
'jcphuff.c',
|
|
|
|
'jcprepct.c',
|
|
|
|
'jcsample.c',
|
|
|
|
'jctrans.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['LIBJPEG_TURBO_ARM_ASM']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-06-04 19:08:44 +04:00
|
|
|
'simd/jsimd_arm.c',
|
|
|
|
]
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-07-02 01:09:48 +04:00
|
|
|
'simd/jsimd_arm_neon.S',
|
|
|
|
]
|
2013-06-04 19:08:44 +04:00
|
|
|
elif CONFIG['LIBJPEG_TURBO_X64_ASM']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-06-04 19:08:44 +04:00
|
|
|
'simd/jsimd_x86_64.c',
|
|
|
|
]
|
|
|
|
elif CONFIG['LIBJPEG_TURBO_X86_ASM']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-06-04 19:08:44 +04:00
|
|
|
'simd/jsimd_i386.c',
|
|
|
|
]
|
|
|
|
else: # No SIMD support?
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-06-04 19:08:44 +04:00
|
|
|
'jsimd_none.c',
|
|
|
|
]
|
2013-06-17 23:21:01 +04:00
|
|
|
|
|
|
|
LIBRARY_NAME = 'mozjpeg'
|
|
|
|
|
2013-08-22 10:56:01 +04:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-10-24 21:51:00 +04:00
|
|
|
# need static lib for some of the libimg componentry to link properly
|
|
|
|
FORCE_STATIC_LIB = True
|
2013-10-24 23:06:19 +04:00
|
|
|
|
|
|
|
if CONFIG['OS_TARGET'] == 'WINNT':
|
|
|
|
NO_VISIBILITY_FLAGS = True
|