Bug 574120 - Add IPC support to android embedding code, r=blassey

This commit is contained in:
Michael Wu 2010-06-25 13:12:03 -07:00
parent 3f44ef431c
commit 8ded619d9e
3 changed files with 12 additions and 1 deletions

View File

@ -44,5 +44,8 @@ public class App extends GeckoApp {
public String getAppName() {
return "@MOZ_APP_NAME@";
}
public String getContentProcessName() {
return "@MOZ_CHILD_PROCESS_NAME@";
}
};

View File

@ -270,6 +270,7 @@ abstract public class GeckoApp
}
abstract public String getAppName();
abstract public String getContentProcessName();
protected void unpackComponents()
{
@ -323,6 +324,7 @@ abstract public class GeckoApp
} while (status != StreamTokenizer.TT_EOF);
unpackFile(zip, buf, null, "application.ini");
unpackFile(zip, buf, null, getContentProcessName());
}
private void unpackFile(ZipFile zip, byte[] buf, ZipEntry fileEntry, String name)

View File

@ -41,6 +41,7 @@ srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/ipc/app/defs.mk
JAVAFILES = \
GeckoApp.java \
@ -51,7 +52,8 @@ JAVAFILES = \
DEFINES += \
-DMOZ_APP_DISPLAYNAME=$(MOZ_APP_DISPLAYNAME) \
-DMOZ_APP_NAME=$(MOZ_APP_NAME)
-DMOZ_APP_NAME=$(MOZ_APP_NAME) \
-DMOZ_CHILD_PROCESS_NAME=$(MOZ_CHILD_PROCESS_NAME)
GARBAGE += \
AndroidManifest.xml \
@ -99,6 +101,10 @@ DIST_LINK_FILES = \
blocklist.xml \
$(NULL)
ifdef MOZ_IPC
DIST_LINK_FILES += $(MOZ_CHILD_PROCESS_NAME)
endif
JAVA_CLASSPATH = $(ANDROID_SDK)/android.jar
include $(topsrcdir)/config/rules.mk