michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: EXPORTS += [ michael@0: 'mozpngconf.h', michael@0: 'png.h', michael@0: 'pngconf.h' michael@0: ] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'png.c', michael@0: 'pngerror.c', michael@0: 'pngget.c', michael@0: 'pngmem.c', michael@0: 'pngpread.c', michael@0: 'pngread.c', michael@0: 'pngrio.c', michael@0: 'pngrtran.c', michael@0: 'pngrutil.c', michael@0: 'pngset.c', michael@0: 'pngtrans.c', michael@0: 'pngwio.c', michael@0: 'pngwrite.c', michael@0: 'pngwutil.c' michael@0: ] michael@0: michael@0: if CONFIG['MOZ_PNG_ARM_NEON']: michael@0: DEFINES['MOZ_PNG_HAVE_ARM_NEON'] = True michael@0: UNIFIED_SOURCES += [ michael@0: 'arm/arm_init.c', michael@0: 'arm/filter_neon_intrinsics.c' michael@0: ] michael@0: michael@0: SOURCES += [ michael@0: 'arm/filter_neon.S' michael@0: ] michael@0: michael@0: LIBRARY_NAME = 'mozpng' michael@0: michael@0: MSVC_ENABLE_PGO = True michael@0: michael@0: if CONFIG['GKMEDIAS_SHARED_LIBRARY']: michael@0: NO_VISIBILITY_FLAGS = True michael@0: michael@0: FINAL_LIBRARY = 'gkmedias'