OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'conditions': [ | 7 'conditions': [ |
8 ['target_arch=="arm" or target_arch=="armv7" or target_arch=="arm64"', { | 8 ['target_arch=="arm" or target_arch=="arm64"', { |
ajm
2014/10/08 06:19:53
This is broader than the corresponding BUILD.gn co
kjellander_chromium
2014/10/08 07:24:04
Yes, please update BUILD.gn if you want (can be do
ajm
2014/10/08 15:55:00
Done.
| |
9 'use_opus_fixed_point%': 1, | 9 'use_opus_fixed_point%': 1, |
10 }, { | 10 }, { |
11 'use_opus_fixed_point%': 0, | 11 'use_opus_fixed_point%': 0, |
12 }], | 12 }], |
13 ['target_arch=="arm" or target_arch=="armv7"', { | 13 ['target_arch=="arm"', { |
14 'use_opus_arm_optimization%': 1, | 14 'use_opus_arm_optimization%': 1, |
15 }, { | 15 }, { |
16 'use_opus_arm_optimization%': 0, | 16 'use_opus_arm_optimization%': 0, |
17 }], | 17 }], |
18 ['target_arch=="arm"', { | 18 ['target_arch=="arm" and (OS=="android" or chromeos==1)', { |
ajm
2014/10/08 06:19:53
This is what BUILD.gn uses, though technically it
kjellander_chromium
2014/10/08 07:24:04
GN and GYP should be the same, but I don't know en
tlegrand1
2014/10/08 09:03:27
This change is not correct, it is the BUILD.gn tha
ajm
2014/10/08 15:55:00
Done.
| |
19 'use_opus_rtcd%': 1, | 19 'use_opus_rtcd%': 1, |
20 }, { | 20 }, { |
21 'use_opus_rtcd%': 0, | 21 'use_opus_rtcd%': 0, |
22 }], | 22 }], |
23 ], | 23 ], |
24 }, | 24 }, |
25 'targets': [ | 25 'targets': [ |
26 { | 26 { |
27 'target_name': 'opus', | 27 'target_name': 'opus', |
28 'type': 'static_library', | 28 'type': 'static_library', |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
69 # optimizations are turned off. | 69 # optimizations are turned off. |
70 'cflags': [ | 70 'cflags': [ |
71 '-Wno-#pragma-messages', | 71 '-Wno-#pragma-messages', |
72 ], | 72 ], |
73 'xcode_settings': { | 73 'xcode_settings': { |
74 'WARNING_CFLAGS': [ | 74 'WARNING_CFLAGS': [ |
75 '-Wno-#pragma-messages', | 75 '-Wno-#pragma-messages', |
76 ], | 76 ], |
77 }, | 77 }, |
78 }], | 78 }], |
79 ['os_posix==1 and (target_arch=="arm" or target_arch=="armv7" or target_ arch=="arm64")', { | 79 ['os_posix==1 and (target_arch=="arm" or target_arch=="arm64")', { |
80 'cflags!': ['-Os'], | 80 'cflags!': ['-Os'], |
81 'cflags': ['-O3'], | 81 'cflags': ['-O3'], |
82 }], | 82 }], |
83 ['use_opus_fixed_point==0', { | 83 ['use_opus_fixed_point==0', { |
84 'include_dirs': [ | 84 'include_dirs': [ |
85 'src/silk/float', | 85 'src/silk/float', |
86 ], | 86 ], |
87 'sources': ['<@(opus_float_sources)'], | 87 'sources': ['<@(opus_float_sources)'], |
88 }, { | 88 }, { |
89 'defines': [ | 89 'defines': [ |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
147 'sources': [ | 147 'sources': [ |
148 'src/src/opus_demo.c', | 148 'src/src/opus_demo.c', |
149 ], | 149 ], |
150 'include_dirs': [ | 150 'include_dirs': [ |
151 'src/celt', | 151 'src/celt', |
152 'src/silk', | 152 'src/silk', |
153 ], | 153 ], |
154 }, # target opus_demo | 154 }, # target opus_demo |
155 ] | 155 ] |
156 } | 156 } |
OLD | NEW |