|
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
|
2 # vim: set filetype=python: |
|
3 # This Source Code Form is subject to the terms of the Mozilla Public |
|
4 # License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
6 |
|
7 EXPORTS += [ |
|
8 'mozpngconf.h', |
|
9 'png.h', |
|
10 'pngconf.h' |
|
11 ] |
|
12 |
|
13 UNIFIED_SOURCES += [ |
|
14 'png.c', |
|
15 'pngerror.c', |
|
16 'pngget.c', |
|
17 'pngmem.c', |
|
18 'pngpread.c', |
|
19 'pngread.c', |
|
20 'pngrio.c', |
|
21 'pngrtran.c', |
|
22 'pngrutil.c', |
|
23 'pngset.c', |
|
24 'pngtrans.c', |
|
25 'pngwio.c', |
|
26 'pngwrite.c', |
|
27 'pngwutil.c' |
|
28 ] |
|
29 |
|
30 if CONFIG['MOZ_PNG_ARM_NEON']: |
|
31 DEFINES['MOZ_PNG_HAVE_ARM_NEON'] = True |
|
32 UNIFIED_SOURCES += [ |
|
33 'arm/arm_init.c', |
|
34 'arm/filter_neon_intrinsics.c' |
|
35 ] |
|
36 |
|
37 SOURCES += [ |
|
38 'arm/filter_neon.S' |
|
39 ] |
|
40 |
|
41 LIBRARY_NAME = 'mozpng' |
|
42 |
|
43 MSVC_ENABLE_PGO = True |
|
44 |
|
45 if CONFIG['GKMEDIAS_SHARED_LIBRARY']: |
|
46 NO_VISIBILITY_FLAGS = True |
|
47 |
|
48 FINAL_LIBRARY = 'gkmedias' |