shaka-packager/packager/media
KongQun Yang 05a5a41969 Support generation of libpackager.so (shared_library)
Shared libpackager can be built by setting libpackager_type to
shared_library, e.g.

GYP_DEFINES='libpackager_type=shared_library' gclient runhooks
ninja -C out/Debug

will generate libpackager.so in out/Debug/lib directory.

Here is a few other changes to make shared_library builds and
tests pass:

- Add several test parameters to packager.h, which is needed for
  testing.
- Create a protoc.gypi from build/protoc.gypi but depending on
  protobuf_full_do_not_use instead of protobuf_lite, since we need
  protobuf_full_do_not_use for text parsing and generation of media
  info proto. Somehow shared_library build does not allow mixed use
  of protobuf_full_do_not_use and protobuf_lite.
- Remove the use of LazyInstance in version/version.cc and use static
  variable directly. This is because LazyInstance needs AtExitManager
  which may not be easy to setup when calling GetVersion.
- Allow skipping testPackageWvmInputWithoutStrippingParameterSetNalus
  with flag --shared_library, which is needed as shared_library build
  does not support --strip_parameter_set_nalus flag yet.

Fixes #227

Change-Id: Iff05a50baa28134faa7218664c96114cb9e70329
2017-06-13 20:42:32 +00:00
..
base Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00
chunking Update EncryptionHandler to support key rotation and SampleAes 2017-03-21 23:50:53 +00:00
codecs Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00
crypto Integrate packager top level library 2017-06-13 13:40:26 -07:00
demuxer Report an error on encrypted stream without decryption 2017-06-07 21:49:46 +00:00
event Remove the trick_play_factor in media_info.proto. 2017-05-17 22:10:49 +00:00
file Add support for udp_file in Windows. (#185) 2017-01-10 10:05:28 -08:00
formats Fix misleading error messages in WebM output 2017-05-30 16:29:47 -07:00
test Integrate packager top level library 2017-06-13 13:40:26 -07:00
trick_play Rename trick play rate to trick play factor. 2017-05-17 21:51:34 +00:00