diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-01 03:47:03 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-01 03:47:03 +0000 |
commit | 83b532441309e0f27c697905f918af6b4e56a3f8 (patch) | |
tree | 54eb30c1996192f1026b8343f8f7b31f1bbfb697 /third_party/openmax/openmax.gyp | |
parent | 3d62f028dce01c36378310bf0b0a8ccdf08f4eba (diff) | |
download | chromium_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/openmax.gyp')
-rw-r--r-- | third_party/openmax/openmax.gyp | 77 |
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', + ], + }, + }, + }], + ], }, ], } |