diff options
author | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-01 22:01:46 +0000 |
---|---|---|
committer | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-01 22:01:46 +0000 |
commit | 087e552e12e474e93cd0b18c98806a46e431c4d8 (patch) | |
tree | b0c47041cc5cafd876950b2654413a82dbe39d82 /remoting/remoting.gyp | |
parent | c3fcd0e4716b5406e2cf0a87a274c573d7dfb16b (diff) | |
download | chromium_src-087e552e12e474e93cd0b18c98806a46e431c4d8.zip chromium_src-087e552e12e474e93cd0b18c98806a46e431c4d8.tar.gz chromium_src-087e552e12e474e93cd0b18c98806a46e431c4d8.tar.bz2 |
Statically link VPX into the Host Plugin.
BUG=
TEST=Host plugin loads and doesn't mysteriously crash trying to call into VPX when a connection is first made.
Review URL: http://codereview.chromium.org/7065026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87534 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/remoting.gyp')
-rw-r--r-- | remoting/remoting.gyp | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/remoting/remoting.gyp b/remoting/remoting.gyp index c0d8a57..849f539 100644 --- a/remoting/remoting.gyp +++ b/remoting/remoting.gyp @@ -67,6 +67,7 @@ 'remoting_base', 'remoting_client', 'remoting_jingle_glue', + '../media/media.gyp:media', ], 'link_settings': { 'libraries': [ @@ -142,6 +143,7 @@ 'remoting_base', 'remoting_host', 'remoting_jingle_glue', + '../third_party/libvpx/libvpx.gyp:libvpx_lib', '../third_party/npapi/npapi.gyp:npapi', ], 'sources': [ @@ -156,6 +158,14 @@ 'INFOPLIST_PREPROCESS': 'YES', 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'HOST_PLUGIN_MIME_TYPE=<(host_plugin_mime_type)', 'WRAPPER_EXTENSION': '<(plugin_extension)', + 'OTHER_LDFLAGS': [ + # TODO(wez): Remove if libvpx is built with PIC. + # See http://crbug.com/84567. + # + # This hack is cribbed from ffmpeg.gyp, and makes someone called + # Mark sad, so at least I'm not alone. + '-Wl,-read_only_relocs,suppress', + ], }, # TODO(mark): Come up with a fancier way to do this. It should # only be necessary to list framework-Info.plist once, not the @@ -167,6 +177,15 @@ 'host/host_plugin-Info.plist', ], }], + ['OS=="win"', { # TODO(wez): Remove if libvpx is built by MSVC. + 'msvs_settings': { + 'VCLinkerTool': { + 'AdditionalOptions!': [ + '/safeseh', + ], + }, + }, + }], ], }, # end of target 'remoting_host_plugin' { @@ -212,10 +231,10 @@ 'dependencies': [ '../base/base.gyp:base', '../ui/ui.gyp:ui_gfx', - '../media/media.gyp:media', '../third_party/protobuf/protobuf.gyp:protobuf_lite', '../third_party/libvpx/libvpx.gyp:libvpx_include', '../third_party/zlib/zlib.gyp:zlib', + '../media/media.gyp:yuv_convert', 'remoting_jingle_glue', 'proto/chromotocol.gyp:chromotocol_proto_lib', 'proto/trace.gyp:trace_proto_lib', @@ -412,6 +431,7 @@ 'remoting_jingle_glue', '../base/base.gyp:base', '../base/base.gyp:base_i18n', + '../media/media.gyp:media', ], 'sources': [ 'host/capturer_fake_ascii.cc', @@ -612,6 +632,7 @@ '../base/base.gyp:base', '../base/base.gyp:base_i18n', '../base/base.gyp:test_support_base', + '../media/media.gyp:media', '../ui/ui.gyp:ui_gfx', '../testing/gmock.gyp:gmock', '../testing/gtest.gyp:gtest', |