blob: 4480d516fe762a49aee30cf4972fd12b802863e5 [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': {
13 'conditions': [
14 [ 'os_posix == 1 and OS != "mac"', {
15 # Link to system .so since we already use it due to GTK.
16 'use_system_libjpeg%': 1,
17 }, { # os_posix != 1 or OS == "mac"
18 'use_system_libjpeg%': 0,
19 }],
20 ],
21 },
22 'conditions': [
23 ['use_system_libjpeg==0', {
24 'targets': [
25 {
26 'target_name': 'libjpeg',
27 'type': 'static_library',
28 'sources': [
29 '../third_party/externals/libjpeg/jcapimin.c',
30 '../third_party/externals/libjpeg/jcapistd.c',
31 '../third_party/externals/libjpeg/jccoefct.c',
32 '../third_party/externals/libjpeg/jccolor.c',
33 '../third_party/externals/libjpeg/jcdctmgr.c',
34 '../third_party/externals/libjpeg/jchuff.c',
35 '../third_party/externals/libjpeg/jchuff.h',
36 '../third_party/externals/libjpeg/jcinit.c',
37 '../third_party/externals/libjpeg/jcmainct.c',
38 '../third_party/externals/libjpeg/jcmarker.c',
39 '../third_party/externals/libjpeg/jcmaster.c',
40 '../third_party/externals/libjpeg/jcomapi.c',
41 '../third_party/externals/libjpeg/jconfig.h',
42 '../third_party/externals/libjpeg/jcparam.c',
43 '../third_party/externals/libjpeg/jcphuff.c',
44 '../third_party/externals/libjpeg/jcprepct.c',
45 '../third_party/externals/libjpeg/jcsample.c',
46 '../third_party/externals/libjpeg/jdapimin.c',
47 '../third_party/externals/libjpeg/jdapistd.c',
48 '../third_party/externals/libjpeg/jdatadst.c',
49 '../third_party/externals/libjpeg/jdatasrc.c',
50 '../third_party/externals/libjpeg/jdcoefct.c',
51 '../third_party/externals/libjpeg/jdcolor.c',
52 '../third_party/externals/libjpeg/jdct.h',
53 '../third_party/externals/libjpeg/jddctmgr.c',
54 '../third_party/externals/libjpeg/jdhuff.c',
55 '../third_party/externals/libjpeg/jdhuff.h',
56 '../third_party/externals/libjpeg/jdinput.c',
57 '../third_party/externals/libjpeg/jdmainct.c',
58 '../third_party/externals/libjpeg/jdmarker.c',
59 '../third_party/externals/libjpeg/jdmaster.c',
60 '../third_party/externals/libjpeg/jdmerge.c',
61 '../third_party/externals/libjpeg/jdphuff.c',
62 '../third_party/externals/libjpeg/jdpostct.c',
63 '../third_party/externals/libjpeg/jdsample.c',
64 '../third_party/externals/libjpeg/jerror.c',
65 '../third_party/externals/libjpeg/jerror.h',
66 '../third_party/externals/libjpeg/jfdctflt.c',
67 '../third_party/externals/libjpeg/jfdctfst.c',
68 '../third_party/externals/libjpeg/jfdctint.c',
69 '../third_party/externals/libjpeg/jidctflt.c',
70 '../third_party/externals/libjpeg/jidctfst.c',
71 '../third_party/externals/libjpeg/jidctint.c',
72 '../third_party/externals/libjpeg/jinclude.h',
73 '../third_party/externals/libjpeg/jmemmgr.c',
74 '../third_party/externals/libjpeg/jmemnobs.c',
75 '../third_party/externals/libjpeg/jmemsys.h',
76 '../third_party/externals/libjpeg/jmorecfg.h',
77 '../third_party/externals/libjpeg/jpegint.h',
78 '../third_party/externals/libjpeg/jpeglib.h',
79 '../third_party/externals/libjpeg/jquant1.c',
80 '../third_party/externals/libjpeg/jquant2.c',
81 '../third_party/externals/libjpeg/jutils.c',
82 '../third_party/externals/libjpeg/jversion.h',
83 ],
84 'direct_dependent_settings': {
85 'include_dirs': [
86 '.',
87 ],
88 },
89 'conditions': [
90 ['OS!="win"', {'product_name': 'jpeg'}],
91 ],
92 },
epoger@google.comce47fec2012-03-16 19:01:38 +000093 ],
epoger@google.com9fee7ad2012-03-26 18:29:26 +000094 }, {
95 'targets': [
96 {
97 'target_name': 'libjpeg',
98 'type': 'none',
99 'direct_dependent_settings': {
100 'defines': [
101 'USE_SYSTEM_LIBJPEG',
102 ],
103 },
104 'link_settings': {
105 'libraries': [
106 '-ljpeg',
107 ],
108 },
109 }
110 ],
111 }],
epoger@google.comce47fec2012-03-16 19:01:38 +0000112 ],
113}
114
115# Local Variables:
116# tab-width:2
117# indent-tabs-mode:nil
118# End:
119# vim: set expandtab tabstop=2 shiftwidth=2: