Skip to content

Commit

Permalink
Android: Make webview builds more convenient.
Browse files Browse the repository at this point in the history
Allow the top level Android.mk to include GypAndroid.mk if the relevant
environment variable is set, to avoid having to edit this file to build
in the Android tree without breaking other Android builds. Also, provide
a gyp wrapper for webview which passes the correct options.

BUG=

Review URL: https://codereview.chromium.org/11090069

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161566 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
torne@chromium.org committed Oct 12, 2012
1 parent 1de77d5 commit 896b8a2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# This is an empty Android makefile to prevent the Android build system from
# erroneously picking up other Android.mk files in the Chromium tree.
# This Android makefile is used to build WebView in the Android build system.
# gyp autogenerates the real makefiles, which we just include here if we are
# doing a WebView build. For other builds, this makefile does nothing, which
# prevents the Android build system from mistakenly loading any other
# Android.mk that may exist in the Chromium tree.

ifdef CHROME_ANDROID_BUILD_WEBVIEW
include $(call my-dir)/GypAndroid.mk
endif
17 changes: 17 additions & 0 deletions android_webview/tools/gyp_webview
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# This script runs gyp with the configuration required to build WebView in the
# Android build system. It is not necessary to source build/android/envsetup.sh
# before running this script.

set -e

export CHROME_ANDROID_BUILD_WEBVIEW=1
export CHROME_SRC="$(readlink -f "$(dirname "$0")/../..")"
export PYTHONDONTWRITEBYTECODE=1
. build/android/envsetup.sh
android_gyp

0 comments on commit 896b8a2

Please sign in to comment.