Index: third_party/openmax/openmax.gyp |
diff --git a/third_party/openmax/openmax.gyp b/third_party/openmax/openmax.gyp |
index aeca369fa67aa0ab66bb139c9e94c109381e651f..53929bad309724a5e5d1d8f7501f5066dce65357 100644 |
--- a/third_party/openmax/openmax.gyp |
+++ b/third_party/openmax/openmax.gyp |
@@ -3,11 +3,46 @@ |
# found in the LICENSE file. |
{ |
+ 'variables': { |
+ 'use_system_openmax%': 0, |
+ }, |
+ 'target_defaults': { |
+ 'conditions': [ |
+ ['use_system_openmax==0', { |
+ 'type': '<(library)', |
+ 'dependencies': [ |
+ '../../base/base.gyp:base', |
+ ], |
+ 'sources': [ |
+ 'omx_stub.cc', |
+ ], |
+ 'include_dirs': [ |
+ 'il', |
+ ], |
+ 'defines': [ |
+ '__OMX_EXPORTS', |
+ ], |
+ 'direct_dependent_settings': { |
+ 'defines': [ |
+ '__OMX_EXPORTS', |
+ ], |
+ }, |
+ },{ |
+ 'type': 'none', |
+ 'direct_dependent_settings': { |
+ 'link_settings': { |
+ 'libraries': [ |
+ '-lOmxCore', |
+ ], |
+ }, |
+ }, |
+ }], |
+ ], |
+ }, |
'targets': [ |
{ |
# OpenMAX IL level of API. |
'target_name': 'il', |
- 'type': 'none', |
'sources': [ |
'il/OMX_Audio.h', |
'il/OMX_Component.h', |
@@ -24,14 +59,13 @@ |
'include_dirs': [ |
'il', |
], |
- 'link_settings': { |
- 'libraries': [ |
- '-lOmxCore', |
- # We need dl for dlopen() and friends. |
- '-ldl', |
- ], |
- }, |
}, |
}, |
- ], |
+ ], |
} |
+ |
+# Local Variables: |
+# tab-width:2 |
+# indent-tabs-mode:nil |
+# End: |
+# vim: set expandtab tabstop=2 shiftwidth=2: |