]>
git.saurik.com Git - android/aapt.git/blob - Main.h
a6b39ac418dc11ecb78827cdd5e6c5a43a680e5f
2 // Copyright 2006 The Android Open Source Project
4 // Some global defines that don't really merit their own header.
10 #include <utils/threads.h>
11 #include <utils/List.h>
12 #include <utils/Errors.h>
14 #include "AaptAssets.h"
18 /* Benchmarking Flag */
23 #endif /* BENCHMARK */
25 extern int doVersion(Bundle
* bundle
);
26 extern int doList(Bundle
* bundle
);
27 extern int doDump(Bundle
* bundle
);
28 extern int doAdd(Bundle
* bundle
);
29 extern int doRemove(Bundle
* bundle
);
30 extern int doPackage(Bundle
* bundle
);
31 extern int doCrunch(Bundle
* bundle
);
32 extern int doSingleCrunch(Bundle
* bundle
);
34 extern int calcPercent(long uncompressedLen
, long compressedLen
);
36 extern android::status_t
writeAPK(Bundle
* bundle
,
37 const sp
<AaptAssets
>& assets
,
38 const android::String8
& outputFile
);
40 extern android::status_t
updatePreProcessedCache(Bundle
* bundle
);
42 extern android::status_t
buildResources(Bundle
* bundle
,
43 const sp
<AaptAssets
>& assets
);
45 extern android::status_t
writeResourceSymbols(Bundle
* bundle
,
46 const sp
<AaptAssets
>& assets
, const String8
& pkgName
, bool includePrivate
);
48 extern android::status_t
writeProguardFile(Bundle
* bundle
, const sp
<AaptAssets
>& assets
);
50 extern bool isValidResourceType(const String8
& type
);
52 ssize_t
processAssets(Bundle
* bundle
, ZipFile
* zip
, const sp
<AaptAssets
>& assets
);
54 extern status_t
filterResources(Bundle
* bundle
, const sp
<AaptAssets
>& assets
);
56 int dumpResources(Bundle
* bundle
);
58 String8
getAttribute(const ResXMLTree
& tree
, const char* ns
,
59 const char* attr
, String8
* outError
);
61 status_t
writeDependencyPreReqs(Bundle
* bundle
, const sp
<AaptAssets
>& assets
,
62 FILE* fp
, bool includeRaw
);