shaka-packager/packager
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
..
app Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00
buildtools/third_party Update DEPS to fix mac build failure 2016-08-19 13:49:41 -07:00
hls Widevine HLS new key format manifest side 2017-04-10 19:05:23 +00:00
media Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00
mpd Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00
testing Get rid of svn dependencies 2015-10-16 20:11:20 +00:00
third_party Fix x64 build on Windows. 2017-01-05 14:19:35 -08:00
tools Fix pssh README to avoid confusion 2017-03-03 16:13:25 -08:00
version Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00
common.gypi Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00
packager.cc Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00
packager.gyp Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00
packager.h Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00
packager_test.cc Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00
protoc.gypi Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00