blob: 5780b27e44558044076d2acbb6d3156508ae5582 [file] [log] [blame]
epoger@google.com9fee7ad2012-03-26 18:29:26 +00001# Copyright 2012 The Chromium Authors. All rights reserved.
epoger@google.comce47fec2012-03-16 19:01:38 +00002# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
epoger@google.com9fee7ad2012-03-26 18:29:26 +00005# This is a copy of ../third_party/externals/libjpeg/libjpeg.gyp , modified
6# such that all source paths point into that directory.
7# See http://code.google.com/p/skia/issues/detail?id=543 ('wrap libjpeg.gyp
8# from Chrome's libjpeg port, rather than making our own copy') for a better
9# long-term solution.
epoger@google.comce47fec2012-03-16 19:01:38 +000010
11{
epoger@google.com9fee7ad2012-03-26 18:29:26 +000012 'variables': {
epoger@google.com4db4adc2012-03-26 20:04:54 +000013 'use_system_libjpeg%': 0,
epoger@google.com9fee7ad2012-03-26 18:29:26 +000014 },
15 'conditions': [
16 ['use_system_libjpeg==0', {
17 'targets': [
18 {
19 'target_name': 'libjpeg',
20 'type': 'static_library',
21 'sources': [
22 '../third_party/externals/libjpeg/jcapimin.c',
23 '../third_party/externals/libjpeg/jcapistd.c',
24 '../third_party/externals/libjpeg/jccoefct.c',
25 '../third_party/externals/libjpeg/jccolor.c',
26 '../third_party/externals/libjpeg/jcdctmgr.c',
27 '../third_party/externals/libjpeg/jchuff.c',
28 '../third_party/externals/libjpeg/jchuff.h',
29 '../third_party/externals/libjpeg/jcinit.c',
30 '../third_party/externals/libjpeg/jcmainct.c',
31 '../third_party/externals/libjpeg/jcmarker.c',
32 '../third_party/externals/libjpeg/jcmaster.c',
33 '../third_party/externals/libjpeg/jcomapi.c',
34 '../third_party/externals/libjpeg/jconfig.h',
35 '../third_party/externals/libjpeg/jcparam.c',
36 '../third_party/externals/libjpeg/jcphuff.c',
37 '../third_party/externals/libjpeg/jcprepct.c',
38 '../third_party/externals/libjpeg/jcsample.c',
39 '../third_party/externals/libjpeg/jdapimin.c',
40 '../third_party/externals/libjpeg/jdapistd.c',
41 '../third_party/externals/libjpeg/jdatadst.c',
42 '../third_party/externals/libjpeg/jdatasrc.c',
43 '../third_party/externals/libjpeg/jdcoefct.c',
44 '../third_party/externals/libjpeg/jdcolor.c',
45 '../third_party/externals/libjpeg/jdct.h',
46 '../third_party/externals/libjpeg/jddctmgr.c',
47 '../third_party/externals/libjpeg/jdhuff.c',
48 '../third_party/externals/libjpeg/jdhuff.h',
49 '../third_party/externals/libjpeg/jdinput.c',
50 '../third_party/externals/libjpeg/jdmainct.c',
51 '../third_party/externals/libjpeg/jdmarker.c',
52 '../third_party/externals/libjpeg/jdmaster.c',
53 '../third_party/externals/libjpeg/jdmerge.c',
54 '../third_party/externals/libjpeg/jdphuff.c',
55 '../third_party/externals/libjpeg/jdpostct.c',
56 '../third_party/externals/libjpeg/jdsample.c',
57 '../third_party/externals/libjpeg/jerror.c',
58 '../third_party/externals/libjpeg/jerror.h',
59 '../third_party/externals/libjpeg/jfdctflt.c',
60 '../third_party/externals/libjpeg/jfdctfst.c',
61 '../third_party/externals/libjpeg/jfdctint.c',
62 '../third_party/externals/libjpeg/jidctflt.c',
63 '../third_party/externals/libjpeg/jidctfst.c',
64 '../third_party/externals/libjpeg/jidctint.c',
65 '../third_party/externals/libjpeg/jinclude.h',
66 '../third_party/externals/libjpeg/jmemmgr.c',
67 '../third_party/externals/libjpeg/jmemnobs.c',
68 '../third_party/externals/libjpeg/jmemsys.h',
69 '../third_party/externals/libjpeg/jmorecfg.h',
70 '../third_party/externals/libjpeg/jpegint.h',
71 '../third_party/externals/libjpeg/jpeglib.h',
72 '../third_party/externals/libjpeg/jquant1.c',
73 '../third_party/externals/libjpeg/jquant2.c',
74 '../third_party/externals/libjpeg/jutils.c',
75 '../third_party/externals/libjpeg/jversion.h',
76 ],
77 'direct_dependent_settings': {
78 'include_dirs': [
robertphillips@google.com3a4553e2012-04-05 14:52:01 +000079 '../third_party/externals/libjpeg',
epoger@google.com9fee7ad2012-03-26 18:29:26 +000080 ],
81 },
82 'conditions': [
bsalomon@google.com2e91d7a2012-09-25 19:14:14 +000083 ['OS!="win"', {
84 'product_name': 'jpeg',
85 'cflags': [
86 '-Wno-main', # supresses warnings about naming things "main"
87 ],
88 }],
djsollen@google.com39a74752012-05-11 13:29:32 +000089 ['OS=="android"', {
90 'cflags!': [
91 '-fno-rtti', # supresses warnings about invalid option of non-C++ code
92 ],
93 }],
epoger@google.com9fee7ad2012-03-26 18:29:26 +000094 ],
95 },
epoger@google.comce47fec2012-03-16 19:01:38 +000096 ],
epoger@google.com9fee7ad2012-03-26 18:29:26 +000097 }, {
98 'targets': [
99 {
100 'target_name': 'libjpeg',
101 'type': 'none',
102 'direct_dependent_settings': {
103 'defines': [
104 'USE_SYSTEM_LIBJPEG',
105 ],
106 },
107 'link_settings': {
108 'libraries': [
109 '-ljpeg',
110 ],
111 },
112 }
113 ],
114 }],
epoger@google.comce47fec2012-03-16 19:01:38 +0000115 ],
116}
117
118# Local Variables:
119# tab-width:2
120# indent-tabs-mode:nil
121# End:
122# vim: set expandtab tabstop=2 shiftwidth=2: