OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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': { | |
7 'use_system_openmax%': 0, | |
8 }, | |
9 'target_defaults': { | |
10 'conditions': [ | |
11 ['use_system_openmax==0', { | |
12 'type': '<(library)', | |
13 'dependencies': [ | |
14 '../../base/base.gyp:base', | |
15 ], | |
16 'sources': [ | |
17 'omx_stub.cc', | |
18 ], | |
19 'include_dirs': [ | |
20 'il', | |
21 ], | |
22 'defines': [ | |
23 '__OMX_EXPORTS', | |
24 ], | |
25 'direct_dependent_settings': { | |
26 'defines': [ | |
27 '__OMX_EXPORTS', | |
28 ], | |
29 }, | |
30 },{ | |
31 'type': 'none', | |
32 'direct_dependent_settings': { | |
33 'link_settings': { | |
34 'libraries': [ | |
35 '-lOmxCore', | |
36 ], | |
37 }, | |
38 }, | |
39 }], | |
40 ], | |
41 }, | |
42 'targets': [ | 6 'targets': [ |
43 { | 7 { |
44 # OpenMAX IL level of API. | 8 # OpenMAX IL level of API. |
45 'target_name': 'il', | 9 'target_name': 'il', |
| 10 'type': 'none', |
46 'sources': [ | 11 'sources': [ |
47 'il/OMX_Audio.h', | 12 'il/OMX_Audio.h', |
48 'il/OMX_Component.h', | 13 'il/OMX_Component.h', |
49 'il/OMX_ContentPipe.h', | 14 'il/OMX_ContentPipe.h', |
50 'il/OMX_Core.h', | 15 'il/OMX_Core.h', |
51 'il/OMX_Image.h', | 16 'il/OMX_Image.h', |
52 'il/OMX_Index.h', | 17 'il/OMX_Index.h', |
53 'il/OMX_IVCommon.h', | 18 'il/OMX_IVCommon.h', |
54 'il/OMX_Other.h', | 19 'il/OMX_Other.h', |
55 'il/OMX_Types.h', | 20 'il/OMX_Types.h', |
56 'il/OMX_Video.h', | 21 'il/OMX_Video.h', |
57 ], | 22 ], |
58 'direct_dependent_settings': { | 23 'direct_dependent_settings': { |
59 'include_dirs': [ | 24 'include_dirs': [ |
60 'il', | 25 'il', |
61 ], | 26 ], |
| 27 'link_settings': { |
| 28 'libraries': [ |
| 29 '-lOmxCore', |
| 30 # We need dl for dlopen() and friends. |
| 31 '-ldl', |
| 32 ], |
| 33 }, |
62 }, | 34 }, |
63 }, | 35 }, |
64 ], | 36 ], |
65 } | 37 } |
66 | |
67 # Local Variables: | |
68 # tab-width:2 | |
69 # indent-tabs-mode:nil | |
70 # End: | |
71 # vim: set expandtab tabstop=2 shiftwidth=2: | |
OLD | NEW |