diff options
| author | Colin Cross <ccross@android.com> | 2015-04-13 13:58:27 -0700 |
|---|---|---|
| committer | Colin Cross <ccross@android.com> | 2015-04-20 14:12:30 -0700 |
| commit | 30e076af2e4337b79be3ed0872a62578a2524929 (patch) | |
| tree | 24e48f01b26023d3d7efdab3bf1aade57c1d4ae1 /common | |
| parent | b7a63247ed0cd69266da52561edc0f620f6379cd (diff) | |
| download | build_soong-30e076af2e4337b79be3ed0872a62578a2524929.tar.gz build_soong-30e076af2e4337b79be3ed0872a62578a2524929.tar.bz2 build_soong-30e076af2e4337b79be3ed0872a62578a2524929.zip | |
Add support for building android apps
Add support for running aapt to generate R.java and Manifest.java,
compiling java into jar, adding resources to the jar to convert it
into an apk, signing the apk, and zipaligning the apk.
Change-Id: I7a73fef590d07f35b3d0b56a8571780c09bb10ae
Diffstat (limited to 'common')
| -rw-r--r-- | common/config.go | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/common/config.go b/common/config.go index 5d761e66..10ed4f08 100644 --- a/common/config.go +++ b/common/config.go @@ -44,7 +44,7 @@ type Config struct { type config struct { FileConfigurableOptions - srcDir string // the path of the root source directory + srcDir string // the path of the root source directory envLock sync.Mutex envDeps map[string]string @@ -217,3 +217,39 @@ func (c *config) HostJavaDir() string { func (c *config) HostJavaTool(tool string) (string, error) { return filepath.Join(c.HostJavaDir(), tool), nil } + +func (c *config) ResourceOverlays() []string { + return nil +} + +func (c *config) PlatformVersion() string { + return "M" +} + +func (c *config) PlatformSdkVersion() string { + return "22" +} + +func (c *config) BuildNumber() string { + return "000000" +} + +func (c *config) ProductAaptConfig() []string { + return []string{"normal", "large", "xlarge", "hdpi", "xhdpi", "xxhdpi"} +} + +func (c *config) ProductAaptPreferredConfig() string { + return "xhdpi" +} + +func (c *config) ProductAaptCharacteristics() string { + return "nosdcard" +} + +func (c *config) DefaultAppCertificateDir() string { + return filepath.Join(c.SrcDir(), "build/target/product/security") +} + +func (c *config) DefaultAppCertificate() string { + return filepath.Join(c.DefaultAppCertificateDir(), "testkey") +} |
