-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathlibfaad2.gyp
More file actions
126 lines (122 loc) · 3.03 KB
/
libfaad2.gyp
File metadata and controls
126 lines (122 loc) · 3.03 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# This file is used with the GYP meta build system.
# http://code.google.com/p/gyp
# To build try this:
# svn co http://gyp.googlecode.com/svn/trunk gyp
# ./gyp/gyp -f make --depth=. libfaad2.gyp
# make
# ./out/Debug/test
{
'variables': {
'target_arch%': 'ia32', # built for a 32-bit CPU by default
},
'target_defaults': {
'default_configuration': 'Debug',
'configurations': {
'Debug': {
'defines': [ 'DEBUG', '_DEBUG' ],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': 1, # static debug
},
},
},
'Release': {
'defines': [ 'NDEBUG' ],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': 0, # static release
},
},
}
},
'msvs_settings': {
'VCLinkerTool': {
'GenerateDebugInformation': 'true',
},
},
'conditions': [
['OS=="mac"', {
'conditions': [
['target_arch=="ia32"', { 'xcode_settings': { 'ARCHS': [ 'i386' ] } }],
['target_arch=="x64"', { 'xcode_settings': { 'ARCHS': [ 'x86_64' ] } }]
],
}],
]
},
'targets': [
{
'target_name': 'faad2',
'product_prefix': 'lib',
'type': 'static_library',
'sources': [
'libfaad/bits.c',
'libfaad/cfft.c',
'libfaad/decoder.c',
'libfaad/drc.c',
'libfaad/drm_dec.c',
'libfaad/error.c',
'libfaad/filtbank.c',
'libfaad/ic_predict.c',
'libfaad/is.c',
'libfaad/lt_predict.c',
'libfaad/mdct.c',
'libfaad/mp4.c',
'libfaad/ms.c',
'libfaad/output.c',
'libfaad/pns.c',
'libfaad/ps_dec.c',
'libfaad/ps_syntax.c',
'libfaad/pulse.c',
'libfaad/specrec.c',
'libfaad/syntax.c',
'libfaad/tns.c',
'libfaad/hcr.c',
'libfaad/huffman.c',
'libfaad/rvlc.c',
'libfaad/ssr.c',
'libfaad/ssr_fb.c',
'libfaad/ssr_ipqf.c',
'libfaad/common.c',
'libfaad/sbr_dct.c',
'libfaad/sbr_e_nf.c',
'libfaad/sbr_fbt.c',
'libfaad/sbr_hfadj.c',
'libfaad/sbr_hfgen.c',
'libfaad/sbr_huff.c',
'libfaad/sbr_qmf.c',
'libfaad/sbr_syntax.c',
'libfaad/sbr_tf_grid.c',
'libfaad/sbr_dec.c'
],
'defines': [
'PIC',
'HAVE_CONFIG_H',
],
'include_dirs': [
# platform and arch-specific headers
'config/<(OS)/<(target_arch)',
'include',
'libfaad',
],
'direct_dependent_settings': {
'include_dirs': [
# platform and arch-specific headers
'config/<(OS)/<(target_arch)',
'include',
],
},
},
{
'target_name': 'test',
'type': 'executable',
'dependencies': [ 'faad2' ],
'sources': [ 'test.c' ]
},
{
'target_name': 'decode_example',
'type': 'executable',
'dependencies': [ 'faad2' ],
'sources': [ 'decode_example.c' ]
},
]
}