2014-03-25 20:27:16 -07:00
|
|
|
PP_TARGETS = properties manifest
|
|
|
|
|
|
|
|
manifest = AndroidManifest.xml.in
|
|
|
|
|
2013-10-23 09:37:14 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
GARBAGE = \
|
|
|
|
AndroidManifest.xml \
|
|
|
|
proguard-project.txt \
|
|
|
|
project.properties \
|
|
|
|
ant.properties \
|
|
|
|
build.xml \
|
|
|
|
local.properties \
|
2014-03-31 08:40:06 -07:00
|
|
|
geckoview_example.apk \
|
2013-10-23 09:37:14 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
GARBAGE_DIRS = \
|
|
|
|
assets \
|
|
|
|
geckoview_library \
|
|
|
|
gen \
|
|
|
|
bin \
|
|
|
|
libs \
|
|
|
|
res \
|
|
|
|
src \
|
2013-11-27 11:49:41 -08:00
|
|
|
binaries \
|
2013-10-23 09:37:14 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ANDROID=$(ANDROID_SDK)/../../tools/android
|
|
|
|
|
2014-03-25 20:27:16 -07:00
|
|
|
TARGET="android-$(ANDROID_TARGET_SDK)"
|
2013-11-27 12:14:26 -08:00
|
|
|
|
2013-11-27 11:49:41 -08:00
|
|
|
PACKAGE_DEPS = \
|
2014-02-27 09:21:06 -08:00
|
|
|
assets/libxul.so \
|
2013-11-27 11:49:41 -08:00
|
|
|
build.xml \
|
|
|
|
src/org/mozilla/geckoviewexample/GeckoViewExample.java \
|
2014-02-27 09:21:06 -08:00
|
|
|
$(CURDIR)/res/layout/main.xml \
|
|
|
|
$(CURDIR)/AndroidManifest.xml \
|
2013-11-27 11:49:41 -08:00
|
|
|
$(NULL)
|
|
|
|
|
2014-02-27 09:21:06 -08:00
|
|
|
$(CURDIR)/res/layout/main.xml: $(srcdir)/main.xml
|
2013-10-23 09:37:14 -07:00
|
|
|
$(NSINSTALL) $(srcdir)/main.xml res/layout/
|
2013-11-27 11:49:41 -08:00
|
|
|
|
|
|
|
src/org/mozilla/geckoviewexample/GeckoViewExample.java: $(srcdir)/GeckoViewExample.java
|
2013-10-23 09:37:14 -07:00
|
|
|
$(NSINSTALL) $(srcdir)/GeckoViewExample.java src/org/mozilla/geckoviewexample/
|
2013-11-27 11:49:41 -08:00
|
|
|
|
2014-02-27 09:21:06 -08:00
|
|
|
assets/libxul.so: $(DIST)/geckoview_library/geckoview_assets.zip FORCE
|
2013-11-27 11:49:41 -08:00
|
|
|
$(UNZIP) -o $(DIST)/geckoview_library/geckoview_assets.zip
|
|
|
|
|
2014-03-28 16:47:32 -07:00
|
|
|
build.xml: $(CURDIR)/AndroidManifest.xml
|
2014-03-25 20:27:16 -07:00
|
|
|
mv AndroidManifest.xml AndroidManifest.xml.save
|
2013-11-27 11:49:41 -08:00
|
|
|
$(ANDROID) create project --name GeckoViewExample --target $(TARGET) --path $(CURDIR) --activity GeckoViewExample --package org.mozilla.geckoviewexample
|
|
|
|
$(ANDROID) update project --target $(TARGET) --path $(CURDIR) --library $(DEPTH)/mobile/android/geckoview_library
|
2014-02-27 09:21:06 -08:00
|
|
|
$(RM) $(CURDIR)/res/layout/main.xml
|
|
|
|
$(NSINSTALL) $(srcdir)/main.xml res/layout/
|
2014-03-25 20:27:16 -07:00
|
|
|
$(RM) AndroidManifest.xml
|
|
|
|
mv AndroidManifest.xml.save AndroidManifest.xml
|
2013-10-23 09:37:14 -07:00
|
|
|
echo jar.libs.dir=libs >> project.properties
|
|
|
|
|
2014-03-31 08:40:06 -07:00
|
|
|
bin/GeckoViewExample-debug.apk: $(PACKAGE_DEPS)
|
2013-10-23 09:37:14 -07:00
|
|
|
ant debug
|
2014-03-31 08:40:06 -07:00
|
|
|
|
|
|
|
geckoview_example.apk: bin/GeckoViewExample-debug.apk
|
|
|
|
cp $< $@
|
|
|
|
|
|
|
|
package: geckoview_example.apk FORCE
|