| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 # This file handles building both with our local libjpeg and with the system | |
| 7 # libjpeg. | |
| 8 'conditions': [ | |
| 9 ['use_system_libjpeg==0', { | |
| 10 'targets': [ | |
| 11 { | |
| 12 'target_name': 'libjpeg', | |
| 13 'type': 'static_library', | |
| 14 'defines': [ | |
| 15 'NO_GETENV', # getenv() is not thread-safe. | |
| 16 ], | |
| 17 'sources': [ | |
| 18 'jcapimin.c', | |
| 19 'jcapistd.c', | |
| 20 'jccoefct.c', | |
| 21 'jccolor.c', | |
| 22 'jcdctmgr.c', | |
| 23 'jchuff.c', | |
| 24 'jchuff.h', | |
| 25 'jcinit.c', | |
| 26 'jcmainct.c', | |
| 27 'jcmarker.c', | |
| 28 'jcmaster.c', | |
| 29 'jcomapi.c', | |
| 30 'jconfig.h', | |
| 31 'jcparam.c', | |
| 32 'jcphuff.c', | |
| 33 'jcprepct.c', | |
| 34 'jcsample.c', | |
| 35 'jdapimin.c', | |
| 36 'jdapistd.c', | |
| 37 'jdatadst.c', | |
| 38 'jdatasrc.c', | |
| 39 'jdcoefct.c', | |
| 40 'jdcolor.c', | |
| 41 'jdct.h', | |
| 42 'jddctmgr.c', | |
| 43 'jdhuff.c', | |
| 44 'jdhuff.h', | |
| 45 'jdinput.c', | |
| 46 'jdmainct.c', | |
| 47 'jdmarker.c', | |
| 48 'jdmaster.c', | |
| 49 'jdmerge.c', | |
| 50 'jdphuff.c', | |
| 51 'jdpostct.c', | |
| 52 'jdsample.c', | |
| 53 'jerror.c', | |
| 54 'jerror.h', | |
| 55 'jfdctflt.c', | |
| 56 'jfdctfst.c', | |
| 57 'jfdctint.c', | |
| 58 'jidctflt.c', | |
| 59 'jidctfst.c', | |
| 60 'jidctint.c', | |
| 61 'jinclude.h', | |
| 62 'jmemmgr.c', | |
| 63 'jmemnobs.c', | |
| 64 'jmemsys.h', | |
| 65 'jmorecfg.h', | |
| 66 'jpegint.h', | |
| 67 'jpeglib.h', | |
| 68 'jquant1.c', | |
| 69 'jquant2.c', | |
| 70 'jutils.c', | |
| 71 'jversion.h', | |
| 72 ], | |
| 73 'direct_dependent_settings': { | |
| 74 'include_dirs': [ | |
| 75 '.', | |
| 76 ], | |
| 77 }, | |
| 78 'conditions': [ | |
| 79 ['OS!="win"', {'product_name': 'jpeg'}], | |
| 80 ], | |
| 81 }, | |
| 82 ], | |
| 83 }, { | |
| 84 'targets': [ | |
| 85 { | |
| 86 'target_name': 'libjpeg', | |
| 87 'type': 'none', | |
| 88 'direct_dependent_settings': { | |
| 89 'defines': [ | |
| 90 'USE_SYSTEM_LIBJPEG', | |
| 91 ], | |
| 92 'conditions': [ | |
| 93 ['os_bsd==1', { | |
| 94 'include_dirs': [ | |
| 95 '/usr/local/include', | |
| 96 ], | |
| 97 }], | |
| 98 ], | |
| 99 }, | |
| 100 'link_settings': { | |
| 101 'libraries': [ | |
| 102 '-ljpeg', | |
| 103 ], | |
| 104 }, | |
| 105 } | |
| 106 ], | |
| 107 }], | |
| 108 ], | |
| 109 } | |
| OLD | NEW |