summaryrefslogtreecommitdiffstats
path: root/gears/SConscript.libjpeg
blob: 4e445b048cdab767e0de0c52ec977d909d716882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Copyright (c) 2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Ripped and modded from chrome.

Import('env')

env = env.Clone(
    LIBJPEG_DIR = ''
)

env.Replace(
    LIBJPEG_DIR = '$THIRD_PARTY_DIR/libjpeg',
    CPPPATH = [
        '$LIBJPEG_DIR',
        '$VC80_CPPPATH',
    ],
)

if env['OS'] in ['osx', 'linux']:
  env.Append(
      CCFLAGS = [
          '-Wno-main',
      ],
  )
 
input_files = [
    '$LIBJPEG_DIR/jcapimin.c',
    '$LIBJPEG_DIR/jcapistd.c',
    '$LIBJPEG_DIR/jccoefct.c',
    '$LIBJPEG_DIR/jccolor.c',
    '$LIBJPEG_DIR/jcdctmgr.c',
    '$LIBJPEG_DIR/jchuff.c',
    '$LIBJPEG_DIR/jcinit.c',
    '$LIBJPEG_DIR/jcmainct.c',
    '$LIBJPEG_DIR/jcmarker.c',
    '$LIBJPEG_DIR/jcmaster.c',
    '$LIBJPEG_DIR/jcomapi.c',
    '$LIBJPEG_DIR/jcparam.c',
    '$LIBJPEG_DIR/jcphuff.c',
    '$LIBJPEG_DIR/jcprepct.c',
    '$LIBJPEG_DIR/jcsample.c',
    '$LIBJPEG_DIR/jctrans.c',
    '$LIBJPEG_DIR/jdapimin.c',
    '$LIBJPEG_DIR/jdapistd.c',
    '$LIBJPEG_DIR/jdatadst.c',
    '$LIBJPEG_DIR/jdatasrc.c',
    '$LIBJPEG_DIR/jdcoefct.c',
    '$LIBJPEG_DIR/jdcolor.c',
    '$LIBJPEG_DIR/jddctmgr.c',
    '$LIBJPEG_DIR/jdhuff.c',
    '$LIBJPEG_DIR/jdinput.c',
    '$LIBJPEG_DIR/jdmainct.c',
    '$LIBJPEG_DIR/jdmarker.c',
    '$LIBJPEG_DIR/jdmaster.c',
    '$LIBJPEG_DIR/jdmerge.c',
    '$LIBJPEG_DIR/jdphuff.c',
    '$LIBJPEG_DIR/jdpostct.c',
    '$LIBJPEG_DIR/jdsample.c',
    '$LIBJPEG_DIR/jdtrans.c',
    '$LIBJPEG_DIR/jerror.c',
    '$LIBJPEG_DIR/jfdctflt.c',
    '$LIBJPEG_DIR/jfdctfst.c',
    '$LIBJPEG_DIR/jfdctint.c',
    '$LIBJPEG_DIR/jidctflt.c',
    '$LIBJPEG_DIR/jidctfst.c',
    '$LIBJPEG_DIR/jidctint.c',
    '$LIBJPEG_DIR/jidctred.c',
    '$LIBJPEG_DIR/jquant1.c',
    '$LIBJPEG_DIR/jquant2.c',
    '$LIBJPEG_DIR/jutils.c',
    '$LIBJPEG_DIR/jmemmgr.c',
    '$LIBJPEG_DIR/jmemnobs.c',
]

env.GearsStaticLibrary('jpeg-gears', input_files)