2017-09-06 21:07:49 +00:00
|
|
|
# Build Instructions
|
|
|
|
|
|
|
|
Shaka Packager supports building on Windows, Mac and Linux host systems.
|
|
|
|
|
|
|
|
## Linux build dependencies
|
|
|
|
|
|
|
|
Most development is done on Ubuntu (currently 14.04, Trusty Tahr). The
|
|
|
|
dependencies mentioned here are only for Ubuntu. There are some instructions
|
|
|
|
for [other distros below](#notes-for-other-linux-distros).
|
|
|
|
|
|
|
|
```shell
|
|
|
|
sudo apt-get update
|
2021-10-13 18:00:37 +00:00
|
|
|
sudo apt-get install -y \
|
|
|
|
curl \
|
2021-10-12 21:55:13 +00:00
|
|
|
libc-ares-dev \
|
2021-10-13 18:00:37 +00:00
|
|
|
build-essential git python python3
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Note that `Git` must be v1.7.5 or above.
|
|
|
|
|
|
|
|
## Mac system requirements
|
|
|
|
|
|
|
|
* [Xcode](https://developer.apple.com/xcode) 7.3+.
|
|
|
|
* The OS X 10.10 SDK or later. Run
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
ls `xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
to check whether you have it.
|
|
|
|
|
2020-12-07 08:36:08 +00:00
|
|
|
* Note that there is a known problem with 10.15 SDK or later right now. You
|
|
|
|
can workaround it by using 10.14 SDK. See
|
2022-03-07 19:56:34 +00:00
|
|
|
[#660](https://github.com/shaka-project/shaka-packager/issues/660#issuecomment-552576341)
|
2020-12-07 08:36:08 +00:00
|
|
|
for details.
|
|
|
|
|
2017-09-06 21:07:49 +00:00
|
|
|
## Windows system requirements
|
|
|
|
|
2021-06-14 19:09:23 +00:00
|
|
|
* Visual Studio 2015 Update 3, 2017, or 2019. (See below.)
|
2017-09-06 21:07:49 +00:00
|
|
|
* Windows 7 or newer.
|
|
|
|
|
|
|
|
Install Visual Studio 2015 Update 3 or later - Community Edition should work if
|
|
|
|
its license is appropriate for you. Use the Custom Install option and select:
|
|
|
|
|
|
|
|
- Visual C++, which will select three sub-categories including MFC
|
|
|
|
- Universal Windows Apps Development Tools > Tools (1.4.1) and Windows 10 SDK
|
|
|
|
(10.0.14393)
|
|
|
|
|
2021-06-14 19:09:23 +00:00
|
|
|
If using VS 2017 or VS 2019, you must set the following environment variables,
|
|
|
|
with versions and paths adjusted to match your actual system:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
GYP_MSVS_VERSION="2019"
|
|
|
|
GYP_MSVS_OVERRIDE_PATH="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community"
|
|
|
|
```
|
|
|
|
|
2017-09-06 21:07:49 +00:00
|
|
|
## Install `depot_tools`
|
|
|
|
|
2022-03-09 00:46:18 +00:00
|
|
|
Clone a particular branch of the `depot_tools` repository from Chromium:
|
2017-09-06 21:07:49 +00:00
|
|
|
|
|
|
|
```shell
|
2022-03-09 00:46:18 +00:00
|
|
|
git clone -b chrome/4147 https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
|
|
|
touch depot_tools/.disable_auto_update
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
2022-03-09 00:46:18 +00:00
|
|
|
The latest version of depot_tools will not work, so please use that branch!
|
|
|
|
|
|
|
|
|
|
|
|
### Linux and Mac
|
|
|
|
|
2017-09-06 21:07:49 +00:00
|
|
|
Add `depot_tools` to the end of your PATH (you will probably want to put this
|
|
|
|
in your `~/.bashrc` or `~/.zshrc`). Assuming you cloned `depot_tools` to
|
|
|
|
`/path/to/depot_tools`:
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
export PATH="$PATH:/path/to/depot_tools"
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Windows
|
|
|
|
|
|
|
|
Add depot_tools to the start of your PATH (must be ahead of any installs of
|
2022-03-09 00:46:18 +00:00
|
|
|
Python). Assuming you cloned the repo to C:\src\depot_tools, open:
|
2017-09-06 21:07:49 +00:00
|
|
|
|
|
|
|
Control Panel → System and Security → System → Advanced system settings
|
|
|
|
|
|
|
|
If you have Administrator access, Modify the PATH system variable and
|
|
|
|
put `C:\src\depot_tools` at the front (or at least in front of any directory
|
|
|
|
that might already have a copy of Python or Git).
|
|
|
|
|
|
|
|
If you don't have Administrator access, you can add a user-level PATH
|
|
|
|
environment variable and put `C:\src\depot_tools` at the front, but
|
|
|
|
if your system PATH has a Python in it, you will be out of luck.
|
|
|
|
|
|
|
|
From a cmd.exe shell, run the command gclient (without arguments). On first
|
|
|
|
run, gclient will install all the Windows-specific bits needed to work with
|
|
|
|
the code, including msysgit and python.
|
|
|
|
|
|
|
|
* If you run gclient from a non-cmd shell (e.g., cygwin, PowerShell),
|
|
|
|
it may appear to run properly, but msysgit, python, and other tools
|
|
|
|
may not get installed correctly.
|
|
|
|
* If you see strange errors with the file system on the first run of gclient,
|
|
|
|
you may want to
|
|
|
|
[disable Windows Indexing](http://tortoisesvn.tigris.org/faq.html#cantmove2).
|
|
|
|
|
|
|
|
## Get the code
|
|
|
|
|
|
|
|
Create a `shaka_packager` directory for the checkout and change to it (you can
|
|
|
|
call this whatever you like and put it wherever you like, as long as the full
|
|
|
|
path has no spaces):
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
mkdir shaka_packager && cd shaka_packager
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Run the `gclient` tool from `depot_tools` to check out the code and its
|
|
|
|
dependencies.
|
|
|
|
|
|
|
|
```shell
|
2022-03-07 19:56:34 +00:00
|
|
|
gclient config https://github.com/shaka-project/shaka-packager.git --name=src --unmanaged
|
2021-10-13 18:00:37 +00:00
|
|
|
gclient sync
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
To sync to a particular commit or version, add the '-r \<revision\>' flag to
|
|
|
|
`gclient sync`, e.g.
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
gclient sync -r 4cb5326355e1559d60b46167740e04624d0d2f51
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
gclient sync -r v1.2.0
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
If you don't want the full repo history, you can save some time by adding the
|
|
|
|
`--no-history` flag to `gclient sync`.
|
|
|
|
|
|
|
|
When the above commands completes, it will have created a hidden `.gclient` file
|
|
|
|
and a directory called `src` in the working directory. The remaining
|
|
|
|
instructions assume you have switched to the `src` directory:
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
cd src
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Build Shaka Packager
|
|
|
|
|
|
|
|
#### Linux and Mac
|
|
|
|
|
|
|
|
Shaka Packager uses [Ninja](https://ninja-build.org) as its main build tool,
|
|
|
|
which is bundled in depot_tools.
|
|
|
|
|
|
|
|
To build the code, run `ninja` command:
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
ninja -C out/Release
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
If you want to build debug code, replace `Release` above with `Debug`.
|
|
|
|
|
|
|
|
We also provide a mechanism to change build settings, for example,
|
|
|
|
you can change build system to `make` by overriding `GYP_GENERATORS`:
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
GYP_GENERATORS='make' gclient runhooks
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Windows
|
|
|
|
|
|
|
|
The instructions are similar, except that Windows allows using either `/` or `\`
|
|
|
|
as path separator:
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
ninja -C out/Release
|
|
|
|
ninja -C out\Release
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Also, unlike Linux / Mac, 32-bit is chosen by default even if the system is
|
|
|
|
64-bit. 64-bit has to be enabled explicitly and the output directory is
|
|
|
|
configured to `out/%CONFIGURATION%_x64`, i.e.:
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
SET GYP_DEFINES='target_arch=x64'
|
|
|
|
gclient runhooks
|
|
|
|
ninja -C out/Release_x64
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Build artifacts
|
|
|
|
|
|
|
|
After a successful build, you can find build artifacts including the main
|
|
|
|
`packager` binary in build output directory (`out/Release` or `out/Release_x64`
|
|
|
|
for release build).
|
|
|
|
|
2022-03-07 19:56:34 +00:00
|
|
|
See [Shaka Packager Documentation](https://shaka-project.github.io/shaka-packager/html/)
|
2017-09-06 21:07:49 +00:00
|
|
|
on how to use `Shaka Packager`.
|
|
|
|
|
|
|
|
### Update your checkout
|
|
|
|
|
|
|
|
To update an existing checkout, you can run
|
|
|
|
|
|
|
|
```shell
|
2022-03-07 19:56:34 +00:00
|
|
|
git pull origin main --rebase
|
2021-10-13 18:00:37 +00:00
|
|
|
gclient sync
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
The first command updates the primary Packager source repository and rebases on
|
2022-03-07 19:56:34 +00:00
|
|
|
top of tip-of-tree (aka the Git branch `origin/main`). You can also use other
|
2017-09-06 21:07:49 +00:00
|
|
|
common Git commands to update the repo.
|
|
|
|
|
|
|
|
The second command syncs dependencies to the appropriate versions and re-runs
|
|
|
|
hooks as needed.
|
|
|
|
|
|
|
|
## Cross compiling for ARM on Ubuntu host
|
|
|
|
|
|
|
|
The install-build-deps script can be used to install all the compiler
|
|
|
|
and library dependencies directly from Ubuntu:
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
./packager/build/install-build-deps.sh
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Install sysroot image and others using `gclient`:
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
GYP_CROSSCOMPILE=1 GYP_DEFINES="target_arch=arm" gclient runhooks
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
The build command is the same as in Ubuntu:
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
ninja -C out/Release
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Notes for other linux distros
|
|
|
|
|
2018-08-15 00:21:29 +00:00
|
|
|
### Alpine Linux
|
|
|
|
|
|
|
|
Use `apk` command to install dependencies:
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
apk add --no-cache \
|
|
|
|
bash curl \
|
2021-10-12 21:55:13 +00:00
|
|
|
bsd-compat-headers c-ares-dev linux-headers \
|
2021-10-13 18:00:37 +00:00
|
|
|
build-base git ninja python2 python3
|
2018-08-15 00:21:29 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Alpine uses musl which does not have mallinfo defined in malloc.h. It is
|
|
|
|
required by one of Shaka Packager's dependency. To workaround the problem, a
|
|
|
|
dummy structure has to be defined in /usr/include/malloc.h, e.g.
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
sed -i \
|
2018-08-15 00:21:29 +00:00
|
|
|
'/malloc_usable_size/a \\nstruct mallinfo {\n int arena;\n int hblkhd;\n int uordblks;\n};' \
|
|
|
|
/usr/include/malloc.h
|
|
|
|
```
|
|
|
|
|
build: Stop using hermetic clang, libc++, etc
This brings our default build config more in line with what is
necessary for some platforms anyway: using the system-installed
toolchain and sysroot to build everything.
We will no longer fetch source or binaries for any specific build
tools, such as libc++, clang, gold, binutils, or valgrind.
The main part of this change is the changing of default gyp settings
in gyp_packager.py. For this, a bug in gyp_packager.py had to be
fixed, in which similar GYP_DEFINE key names (such as clang and
host_clang) would conflict, causing some defaults not to be installed
properly.
In order to enable clang=0 by default, some changes had to be made in
common.gypi:
- compiler macros added to fix a compatibility issue between
Chromium's base/mac/ folder and the actual OSX SDK
- replaced clang_warning_flags variables with standard cflags
settings, plus xcode_settings for OSX
- turned off warnings-as-errors for non-shaka code, rather than
allow-listing specific warning types, since we can't actually fix
those warnings on any platform
- disabled two specific warnings in shaka code, both of which are
caused by headers from our non-shaka dependencies
Also, one warning (missing "override" keyword) has been fixed in
vod_media_info_dump_muxer_listener.h.
Although these changes were done to make building simpler on a wider
array of platforms (arm64, for example), it seems to make the build a
bit faster, too. For me, at least, on my main Linux workstation:
- "gclient sync" now runs 20-30% faster
- "ninja -C out/Release" now runs 5-13% faster
The following environment variables are no longer required:
- DEPOT_TOOLS_WIN_TOOLCHAIN
- MACOSX_DEPLOYMENT_TARGET
Documentation, Dockerfiles, and GitHub Actions workflows have been
updated to reflect this.
The following GYP_DEFINES are no longer required for anyone:
- clang=0
- host_clang=0
- clang_xcode=1
- use_allocator=none
- use_experimental_allocator_shim=0
Documentation, Dockerfiles, and GitHub Actions workflows have been
updated to reflect this.
The following repos are no longer dependencies in gclient:
- binutils
- clang
- gold
- libc++
- libc++abi
- valgrind
The following gclient hooks have been removed:
- clang
- mac_toolchain
- sysroot
Change-Id: Ie94ccbeec722ab73c291cb7df897d20761a09a70
2021-07-28 20:01:19 +00:00
|
|
|
We also need to enable musl in the build config:
|
2018-08-15 00:21:29 +00:00
|
|
|
|
|
|
|
```shell
|
build: Stop using hermetic clang, libc++, etc
This brings our default build config more in line with what is
necessary for some platforms anyway: using the system-installed
toolchain and sysroot to build everything.
We will no longer fetch source or binaries for any specific build
tools, such as libc++, clang, gold, binutils, or valgrind.
The main part of this change is the changing of default gyp settings
in gyp_packager.py. For this, a bug in gyp_packager.py had to be
fixed, in which similar GYP_DEFINE key names (such as clang and
host_clang) would conflict, causing some defaults not to be installed
properly.
In order to enable clang=0 by default, some changes had to be made in
common.gypi:
- compiler macros added to fix a compatibility issue between
Chromium's base/mac/ folder and the actual OSX SDK
- replaced clang_warning_flags variables with standard cflags
settings, plus xcode_settings for OSX
- turned off warnings-as-errors for non-shaka code, rather than
allow-listing specific warning types, since we can't actually fix
those warnings on any platform
- disabled two specific warnings in shaka code, both of which are
caused by headers from our non-shaka dependencies
Also, one warning (missing "override" keyword) has been fixed in
vod_media_info_dump_muxer_listener.h.
Although these changes were done to make building simpler on a wider
array of platforms (arm64, for example), it seems to make the build a
bit faster, too. For me, at least, on my main Linux workstation:
- "gclient sync" now runs 20-30% faster
- "ninja -C out/Release" now runs 5-13% faster
The following environment variables are no longer required:
- DEPOT_TOOLS_WIN_TOOLCHAIN
- MACOSX_DEPLOYMENT_TARGET
Documentation, Dockerfiles, and GitHub Actions workflows have been
updated to reflect this.
The following GYP_DEFINES are no longer required for anyone:
- clang=0
- host_clang=0
- clang_xcode=1
- use_allocator=none
- use_experimental_allocator_shim=0
Documentation, Dockerfiles, and GitHub Actions workflows have been
updated to reflect this.
The following repos are no longer dependencies in gclient:
- binutils
- clang
- gold
- libc++
- libc++abi
- valgrind
The following gclient hooks have been removed:
- clang
- mac_toolchain
- sysroot
Change-Id: Ie94ccbeec722ab73c291cb7df897d20761a09a70
2021-07-28 20:01:19 +00:00
|
|
|
export GYP_DEFINES='musl=1'
|
2018-08-15 00:21:29 +00:00
|
|
|
```
|
|
|
|
|
2017-09-06 21:07:49 +00:00
|
|
|
### Arch Linux
|
|
|
|
|
|
|
|
Instead of running `sudo apt-get install` to install build dependencies, run:
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
sudo pacman -Sy --needed \
|
|
|
|
core/which \
|
2021-10-12 21:55:13 +00:00
|
|
|
c-ares \
|
2021-10-13 18:00:37 +00:00
|
|
|
gcc git python2 python3
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Debian
|
|
|
|
|
|
|
|
Same as Ubuntu.
|
|
|
|
|
|
|
|
### Fedora
|
|
|
|
|
|
|
|
Instead of running `sudo apt-get install` to install build dependencies, run:
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
su -c 'yum install -y \
|
|
|
|
which \
|
2021-10-12 21:55:13 +00:00
|
|
|
c-ares-devel libatomic \
|
2021-10-13 18:00:37 +00:00
|
|
|
gcc-c++ git python2'
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
2021-10-13 18:00:37 +00:00
|
|
|
### CentOS
|
|
|
|
|
|
|
|
Same as Fedora.
|
|
|
|
|
2017-09-06 21:07:49 +00:00
|
|
|
### OpenSUSE
|
|
|
|
|
|
|
|
Use `zypper` command to install dependencies:
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
sudo zypper in -y \
|
|
|
|
curl which \
|
2021-10-12 21:55:13 +00:00
|
|
|
c-ares-devel \
|
2021-10-13 18:00:37 +00:00
|
|
|
gcc-c++ git python python3
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Tips, tricks, and troubleshooting
|
|
|
|
|
|
|
|
### Xcode license agreement
|
|
|
|
|
2018-08-13 21:50:31 +00:00
|
|
|
If you are getting the error
|
2017-09-06 21:07:49 +00:00
|
|
|
|
|
|
|
> Agreeing to the Xcode/iOS license requires admin privileges, please re-run as
|
|
|
|
> root via sudo.
|
|
|
|
|
2018-08-13 21:50:31 +00:00
|
|
|
the Xcode license has not been accepted yet which (contrary to the message) any
|
2017-09-06 21:07:49 +00:00
|
|
|
user can do by running:
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
xcodebuild -license
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Only accepting for all users of the machine requires root:
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
sudo xcodebuild -license
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
2018-08-13 21:50:31 +00:00
|
|
|
### Missing curl CA bundle
|
|
|
|
|
|
|
|
If you are getting the error
|
|
|
|
|
|
|
|
> gyp: Call to 'config/mac/find_curl_ca_bundle.sh' returned exit status 1 ...
|
|
|
|
|
|
|
|
curl CA bundle is not able to be located. Installing curl with openssl should
|
|
|
|
resolve the issue:
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
brew install curl --with-openssl
|
2018-08-13 21:50:31 +00:00
|
|
|
```
|
|
|
|
|
2021-02-03 19:02:13 +00:00
|
|
|
### Using an IDE
|
|
|
|
|
|
|
|
No specific instructions are available.
|
|
|
|
|
|
|
|
You might find Gyp generators helpful. Output is not guaranteed to work.
|
|
|
|
Manual editing might be necessary.
|
|
|
|
|
|
|
|
To generate CMakeLists.txt in out/Release and out/Debug use:
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
GYP_GENERATORS=cmake gclient runhooks
|
2021-02-03 19:02:13 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
To generate IDE project files in out/Release and out/Debug use:
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
GYP_GENERATORS=eclipse gclient runhooks
|
|
|
|
GYP_GENERATORS=xcode gclient runhooks
|
|
|
|
GYP_GENERATORS=xcode_test gclient runhooks
|
|
|
|
GYP_GENERATORS=msvs gclient runhooks
|
|
|
|
GYP_GENERATORS=msvs_test gclient runhooks
|
2021-02-03 19:02:13 +00:00
|
|
|
```
|
|
|
|
|
2017-09-06 21:07:49 +00:00
|
|
|
## Contributing
|
|
|
|
|
|
|
|
If you have improvements or fixes, we would love to have your contributions.
|
2022-03-07 19:56:34 +00:00
|
|
|
See https://github.com/shaka-project/shaka-packager/blob/main/CONTRIBUTING.md for
|
2017-09-06 21:07:49 +00:00
|
|
|
details.
|
|
|
|
|
|
|
|
We have continue integration tests setup on pull requests. You can also verify
|
|
|
|
locally by running the tests manually.
|
|
|
|
|
|
|
|
If you know which tests are affected by your change, you can limit which tests
|
|
|
|
are run using the `--gtest_filter` arg, e.g.:
|
|
|
|
|
|
|
|
```shell
|
2021-10-13 18:00:37 +00:00
|
|
|
out/Debug/mp4_unittest --gtest_filter="MP4MediaParserTest.*"
|
2017-09-06 21:07:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
You can find out more about GoogleTest at its
|
|
|
|
[GitHub page](https://github.com/google/googletest).
|