summaryrefslogtreecommitdiffstats
path: root/third_party/openmax
diff options
context:
space:
mode:
authorajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-01 03:47:03 +0000
committerajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-01 03:47:03 +0000
commit83b532441309e0f27c697905f918af6b4e56a3f8 (patch)
tree54eb30c1996192f1026b8343f8f7b31f1bbfb697 /third_party/openmax
parent3d62f028dce01c36378310bf0b0a8ccdf08f4eba (diff)
downloadchromium_src-83b532441309e0f27c697905f918af6b4e56a3f8.zip
chromium_src-83b532441309e0f27c697905f918af6b4e56a3f8.tar.gz
chromium_src-83b532441309e0f27c697905f918af6b4e56a3f8.tar.bz2
Make the third-party openmax gyp more flexible. Support our stub, belagio, and OmxCore.
Review URL: http://codereview.chromium.org/449042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33423 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/openmax')
-rw-r--r--third_party/openmax/openmax.gyp77
1 files changed, 43 insertions, 34 deletions
diff --git a/third_party/openmax/openmax.gyp b/third_party/openmax/openmax.gyp
index 53929ba..ef14e41 100644
--- a/third_party/openmax/openmax.gyp
+++ b/third_party/openmax/openmax.gyp
@@ -4,40 +4,7 @@
{
'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',
- ],
- },
- },
- }],
- ],
+ 'openmax_type%': 'stub',
},
'targets': [
{
@@ -60,6 +27,48 @@
'il',
],
},
+ 'conditions': [
+ ['openmax_type=="stub"', {
+ 'type': '<(library)',
+ 'dependencies': [
+ '../../base/base.gyp:base',
+ ],
+ 'sources': [
+ 'omx_stub.cc',
+ ],
+ 'include_dirs': [
+ 'il',
+ ],
+ 'defines': [
+ '__OMX_EXPORTS',
+ ],
+ 'direct_dependent_settings': {
+ 'defines': [
+ '__OMX_EXPORTS',
+ ],
+ },
+ }],
+ ['openmax_type=="bellagio"', {
+ 'type': 'none',
+ 'direct_dependent_settings': {
+ 'link_settings': {
+ 'libraries': [
+ '-lomxil-bellagio',
+ ],
+ },
+ },
+ }],
+ ['openmax_type=="omxcore"', {
+ 'type': 'none',
+ 'direct_dependent_settings': {
+ 'link_settings': {
+ 'libraries': [
+ '-lOmxCore',
+ ],
+ },
+ },
+ }],
+ ],
},
],
}