mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1099345 - Add more descriptive debugging output to the Android SDK code generator r=nalexander
--HG-- extra : rebase_source : 47d675ebe19db1a488498a19834674fe2fd8dc4f
This commit is contained in:
parent
90ad2ed955
commit
9496c78f68
@ -43,7 +43,7 @@ public class SDKProcessor {
|
||||
private static ApiLookup sApiLookup;
|
||||
private static int sMaxSdkVersion;
|
||||
|
||||
public static void main(String[] args) {
|
||||
public static void main(String[] args) throws Exception {
|
||||
// We expect a list of jars on the commandline. If missing, whinge about it.
|
||||
if (args.length < 5) {
|
||||
System.err.println("Usage: java SDKProcessor sdkjar classlistfile outdir fileprefix max-sdk-version");
|
||||
@ -106,16 +106,10 @@ public class SDKProcessor {
|
||||
String className = i.next();
|
||||
System.out.println("Looking up: " + className);
|
||||
|
||||
try {
|
||||
Class<?> c = Class.forName(className, true, loader);
|
||||
|
||||
generateClass(Class.forName(className, true, loader),
|
||||
stubInitializer,
|
||||
implementationFile,
|
||||
headerFile);
|
||||
} catch (Exception e) {
|
||||
System.out.println("Failed to generate class " + className + ": " + e);
|
||||
}
|
||||
generateClass(Class.forName(className, true, loader),
|
||||
stubInitializer,
|
||||
implementationFile,
|
||||
headerFile);
|
||||
}
|
||||
|
||||
implementationFile.append('\n');
|
||||
|
@ -15,7 +15,7 @@ sdk_processor := \
|
||||
# MediaCodec-classes.txt. This formulation invokes the SDK processor
|
||||
# at most once.
|
||||
|
||||
%.cpp %.h: $(ANDROID_SDK)/android.jar %-classes.txt
|
||||
%.cpp %.h: $(ANDROID_SDK)/android.jar %-classes.txt FORCE
|
||||
$(sdk_processor) $(ANDROID_SDK)/android.jar $(srcdir)/$*-classes.txt $(CURDIR) $* 16
|
||||
|
||||
# We'd like these to be defined in a future GENERATED_EXPORTS list.
|
||||
|
Loading…
Reference in New Issue
Block a user