Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bazel: add release configuration #155

Merged
merged 16 commits into from
Sep 17, 2019
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ build \
build:ios --define=manual_stamp=manual_stamp

build:android --fat_apk_cpu=x86,x86_64,armeabi-v7a,arm64-v8a

build:release \
--compilation_mode=opt \
rebello95 marked this conversation as resolved.
Show resolved Hide resolved
--ios_multi_cpus=i386,x86_64,armv7,arm64
rebello95 marked this conversation as resolved.
Show resolved Hide resolved
12 changes: 9 additions & 3 deletions docs/root/start/building/building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Android AAR
Envoy Mobile can be compiled into an ``.aar`` file for use with Android apps.
This command is defined in the main :repo:`BUILD <BUILD>` file of the repo, and may be run locally:

``bazel build android_dist --config=android``
``bazel build android_dist --config=android --config=release # omit release for development``

Upon completion of the build, you'll see an ``envoy.aar`` file at :repo:`dist/envoy.aar <dist>`.

Expand All @@ -62,6 +62,9 @@ an example of how this artifact may be used.

For a demo of a working app using this artifact, see the :ref:`hello_world` example.

When building the artifact for release (usage outside of development), be sure to include ``--config=release``
in addition to ``--config=android``.

.. _ios_framework:

--------------------
Expand All @@ -71,7 +74,7 @@ iOS static framework
Envoy Mobile supports being compiled into a ``.framework`` directory for consumption by iOS apps.
This command is defined in the main :repo:`BUILD <BUILD>` file of the repo, and may be run locally:

``bazel build ios_dist --config=ios``
``bazel build ios_dist --config=ios --config=release # omit release for development``

Upon completion of the build, you'll see a ``Envoy.framework`` directory at
:repo:`dist/Envoy.framework <dist>`.
Expand All @@ -84,4 +87,7 @@ example of how this artifact may be used.

For a demo of a working app using this artifact, see the :ref:`hello_world` example.

.. _releases: https://github.com/lyft/envoy-mobile/releases
When building the artifact for release (usage outside of development), be sure to include ``--config=release``
in addition to ``--config=ios``.

.. _releases: https://github.com/lyft/envoy-mobile/releases