Skip to content

Commit

Permalink
Android WebView: fix build issues and nits.
Browse files Browse the repository at this point in the history
1) The top-level Android.mk mustn't use my-dir after including another
file as it returns the wrong answer.

2) We need "All" to depend on net_errors_java as it's used by the
Android.mk.

3) Fix nits from previous review of android_webview/Android.mk - make it
clearer that only one of the dependencies is temporary.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162716 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
torne@chromium.org committed Oct 18, 2012
1 parent 96e8f28 commit 91a8053
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# Android.mk that may exist in the Chromium tree.

ifdef CHROME_ANDROID_BUILD_WEBVIEW
include $(call my-dir)/GypAndroid.mk
include $(call my-dir)/android_webview/Android.mk
CHROMIUM_WEBVIEW_DIR := $(call my-dir)
include $(CHROMIUM_WEBVIEW_DIR)/GypAndroid.mk
include $(CHROMIUM_WEBVIEW_DIR)/android_webview/Android.mk
endif
9 changes: 6 additions & 3 deletions android_webview/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ LOCAL_MODULE_TAGS := optional

LOCAL_SRC_FILES := $(call all-java-files-under, java/src)

# contentview
# contentview and its dependencies
LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/../content/public/android/java/src
LOCAL_SRC_FILES += \
$(call all-java-files-under, ../content/public/android/java/src) \
Expand All @@ -26,12 +26,15 @@ LOCAL_SRC_FILES += \
$(call all-java-files-under, ../net/android/java/src) \
$(call all-java-files-under, ../ui/android/java/src) \

# browser components
LOCAL_SRC_FILES += \
$(call all-java-files-under, ../chrome/browser/component/web_contents_delegate_android/java/src) \
$(call all-java-files-under, ../chrome/browser/component/navigation_interception/java/src) \

# TODO(mkosiba): Remove chromium_chrome dep once required browser
# components are in (replace it with contentview).
LOCAL_SRC_FILES += \
$(call all-java-files-under, ../chrome/android/java/src) \
$(call all-java-files-under, ../chrome/browser/component/web_contents_delegate_android/java/src) \
$(call all-java-files-under, ../chrome/browser/component/navigation_interception/java/src) \

# This file is generated by net.gyp:net_errors_java
LOCAL_GENERATED_SOURCES := $(call intermediates-dir-for,GYP,shared)/net/template/NetError.java \
Expand Down
2 changes: 2 additions & 0 deletions android_webview/all_webview.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
'type': 'none',
'dependencies': [
'android_webview.gyp:libwebview',
# Needed by android_webview_java
'../net/net.gyp:net_errors_java',
],
}, # target_name: All
], # targets
Expand Down

0 comments on commit 91a8053

Please sign in to comment.