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 \
|
|
|
|
$(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
|
|
|
|
|
2013-11-27 12:14:26 -08:00
|
|
|
TARGET= $(notdir $(ANDROID_SDK))
|
|
|
|
|
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
|
|
|
|
2014-02-27 09:21:06 -08:00
|
|
|
$(CURDIR)/AndroidManifest.xml: $(srcdir)/AndroidManifest.xml
|
|
|
|
$(NSINSTALL) $(srcdir)/AndroidManifest.xml $(CURDIR)
|
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
|
|
|
|
|
|
|
|
build.xml:
|
|
|
|
$(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/
|
|
|
|
$(RM) $(CURDIR)/AndroidManifest.xml
|
|
|
|
$(NSINSTALL) $(srcdir)/AndroidManifest.xml $(CURDIR)
|
2013-10-23 09:37:14 -07:00
|
|
|
echo jar.libs.dir=libs >> project.properties
|
|
|
|
|
2014-02-27 09:21:06 -08:00
|
|
|
package: $(PACKAGE_DEPS) FORCE
|
2013-10-23 09:37:14 -07:00
|
|
|
ant debug
|