blob: da2b9deadba35f0af4ded1daa0fcff5d71d1b85d [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,
borenet@google.coma72aef82013-03-22 13:16:06 +000014 'skia_warnings_as_errors': 0,
epoger@google.com9fee7ad2012-03-26 18:29:26 +000015 },
16 'conditions': [
djsollen@google.com11399402013-03-20 17:45:27 +000017 ['skia_os == "android"', {
epoger@google.com9fee7ad2012-03-26 18:29:26 +000018 'targets': [
19 {
20 'target_name': 'libjpeg',
21 'type': 'none',
djsollen@google.com11399402013-03-20 17:45:27 +000022 'dependencies': [
23 'android_deps.gyp:jpeg',
24 ],
25 'export_dependent_settings': [
26 'android_deps.gyp:jpeg',
27 ],
28 },
29 ],
30 }, { # skia_os != android
31 'conditions': [
32 ['use_system_libjpeg==0', {
33 'targets': [
34 {
35 'target_name': 'libjpeg',
36 'type': 'static_library',
37 'sources': [
38 '../third_party/externals/libjpeg/jcapimin.c',
39 '../third_party/externals/libjpeg/jcapistd.c',
40 '../third_party/externals/libjpeg/jccoefct.c',
41 '../third_party/externals/libjpeg/jccolor.c',
42 '../third_party/externals/libjpeg/jcdctmgr.c',
43 '../third_party/externals/libjpeg/jchuff.c',
44 '../third_party/externals/libjpeg/jchuff.h',
45 '../third_party/externals/libjpeg/jcinit.c',
46 '../third_party/externals/libjpeg/jcmainct.c',
47 '../third_party/externals/libjpeg/jcmarker.c',
48 '../third_party/externals/libjpeg/jcmaster.c',
49 '../third_party/externals/libjpeg/jcomapi.c',
50 '../third_party/externals/libjpeg/jconfig.h',
51 '../third_party/externals/libjpeg/jcparam.c',
52 '../third_party/externals/libjpeg/jcphuff.c',
53 '../third_party/externals/libjpeg/jcprepct.c',
54 '../third_party/externals/libjpeg/jcsample.c',
55 '../third_party/externals/libjpeg/jdapimin.c',
56 '../third_party/externals/libjpeg/jdapistd.c',
57 '../third_party/externals/libjpeg/jdatadst.c',
58 '../third_party/externals/libjpeg/jdatasrc.c',
59 '../third_party/externals/libjpeg/jdcoefct.c',
60 '../third_party/externals/libjpeg/jdcolor.c',
61 '../third_party/externals/libjpeg/jdct.h',
62 '../third_party/externals/libjpeg/jddctmgr.c',
63 '../third_party/externals/libjpeg/jdhuff.c',
64 '../third_party/externals/libjpeg/jdhuff.h',
65 '../third_party/externals/libjpeg/jdinput.c',
66 '../third_party/externals/libjpeg/jdmainct.c',
67 '../third_party/externals/libjpeg/jdmarker.c',
68 '../third_party/externals/libjpeg/jdmaster.c',
69 '../third_party/externals/libjpeg/jdmerge.c',
70 '../third_party/externals/libjpeg/jdphuff.c',
71 '../third_party/externals/libjpeg/jdpostct.c',
72 '../third_party/externals/libjpeg/jdsample.c',
73 '../third_party/externals/libjpeg/jerror.c',
74 '../third_party/externals/libjpeg/jerror.h',
75 '../third_party/externals/libjpeg/jfdctflt.c',
76 '../third_party/externals/libjpeg/jfdctfst.c',
77 '../third_party/externals/libjpeg/jfdctint.c',
78 '../third_party/externals/libjpeg/jidctflt.c',
79 '../third_party/externals/libjpeg/jidctfst.c',
80 '../third_party/externals/libjpeg/jidctint.c',
81 '../third_party/externals/libjpeg/jinclude.h',
82 '../third_party/externals/libjpeg/jmemmgr.c',
83 '../third_party/externals/libjpeg/jmemnobs.c',
84 '../third_party/externals/libjpeg/jmemsys.h',
85 '../third_party/externals/libjpeg/jmorecfg.h',
86 '../third_party/externals/libjpeg/jpegint.h',
87 '../third_party/externals/libjpeg/jpeglib.h',
88 '../third_party/externals/libjpeg/jquant1.c',
89 '../third_party/externals/libjpeg/jquant2.c',
90 '../third_party/externals/libjpeg/jutils.c',
91 '../third_party/externals/libjpeg/jversion.h',
92 ],
93 'direct_dependent_settings': {
94 'include_dirs': [
95 '../third_party/externals/libjpeg',
96 ],
97 },
98 'conditions': [
borenet@google.coma72aef82013-03-22 13:16:06 +000099 [ 'skia_os != "win"', {
djsollen@google.com11399402013-03-20 17:45:27 +0000100 'product_name': 'jpeg',
101 'cflags': [
102 '-Wno-main', # supresses warnings about naming things "main"
103 ],
104 }],
djsollen@google.com11399402013-03-20 17:45:27 +0000105 ],
106 },
107 ],
108 }, {
109 'targets': [
110 {
111 'target_name': 'libjpeg',
112 'type': 'none',
113 'direct_dependent_settings': {
114 'defines': [
115 'USE_SYSTEM_LIBJPEG',
116 ],
117 },
118 'link_settings': {
119 'libraries': [
120 '-ljpeg',
121 ],
122 },
123 }
124 ],
125 }],
epoger@google.com9fee7ad2012-03-26 18:29:26 +0000126 ],
127 }],
epoger@google.comce47fec2012-03-16 19:01:38 +0000128 ],
129}
130
131# Local Variables:
132# tab-width:2
133# indent-tabs-mode:nil
134# End:
135# vim: set expandtab tabstop=2 shiftwidth=2: