From 8e61ef88dad843314a606775eeb88e5ef874dd0b Mon Sep 17 00:00:00 2001 From: Brad Lassey Date: Thu, 24 Oct 2013 01:08:29 +0200 Subject: [PATCH] bug 930062 - GeckoView library should support building as an ant project r=nalexander --- .../geckoview_library/AndroidManifest.xml | 5 - mobile/android/geckoview_library/Makefile.in | 23 ++++- mobile/android/geckoview_library/build.xml | 92 +++++++++++++++++++ .../geckoview_library/local.properties.in | 11 +++ 4 files changed, 125 insertions(+), 6 deletions(-) create mode 100644 mobile/android/geckoview_library/build.xml create mode 100644 mobile/android/geckoview_library/local.properties.in diff --git a/mobile/android/geckoview_library/AndroidManifest.xml b/mobile/android/geckoview_library/AndroidManifest.xml index 12aed5b1bc5..a46e277b038 100644 --- a/mobile/android/geckoview_library/AndroidManifest.xml +++ b/mobile/android/geckoview_library/AndroidManifest.xml @@ -3,13 +3,8 @@ android:versionCode="1" android:versionName="1.0" > - - - - - diff --git a/mobile/android/geckoview_library/Makefile.in b/mobile/android/geckoview_library/Makefile.in index bea346740db..ebc4521b6bd 100644 --- a/mobile/android/geckoview_library/Makefile.in +++ b/mobile/android/geckoview_library/Makefile.in @@ -9,11 +9,32 @@ GECKOVIEW_LIBRARY_FILES := \ .project \ AndroidManifest.xml \ project.properties \ + build.xml \ $(NULL) + +PP_TARGETS = properties + +properties = local.properties.in +properties_PATH = . +properties_deps := $(patsubst %.in,%,$(properties)) + +GARBAGE = $(GECKOVIEW_LIBRARY_FILES) $(properties_deps) + +GARBAGE_DIRS = \ + bin \ + libs \ + src \ + .deps \ + gen \ + res \ + $(NULL) + +DEFINES += -DANDROID_SDK=$(ANDROID_SDK) + include $(topsrcdir)/config/rules.mk -package: +package: $(properties_deps) # Make directory for the zips $(MKDIR) -p $(DIST)/geckoview_library diff --git a/mobile/android/geckoview_library/build.xml b/mobile/android/geckoview_library/build.xml new file mode 100644 index 00000000000..56bbc1109b9 --- /dev/null +++ b/mobile/android/geckoview_library/build.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mobile/android/geckoview_library/local.properties.in b/mobile/android/geckoview_library/local.properties.in new file mode 100644 index 00000000000..383f158aca0 --- /dev/null +++ b/mobile/android/geckoview_library/local.properties.in @@ -0,0 +1,11 @@ +#filter substitution +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must *NOT* be checked into Version Control Systems, +# as it contains information specific to your local configuration. + +# location of the SDK. This is only used by Ant +# For customization when using a Version Control System, please read the +# header note. +sdk.dir=@ANDROID_SDK@/../../