aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar borenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-27 19:04:39 +0000
committerGravatar borenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-27 19:04:39 +0000
commitdd3d08ea8e3394da42e2dd9631ea5eccb3fb24b6 (patch)
treee796bbb47a0e73902877d6d6a08c7941bfcef6bc
parent26344cfaffa6a78c545c3e2253ec26cc277f82c9 (diff)
When building for Android, package executables in APKs (trunk)
Review URL: https://codereview.appspot.com/6307101 git-svn-id: http://skia.googlecode.com/svn/trunk@4368 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--Makefile4
-rw-r--r--gyp/apptype_console.gypi7
-rw-r--r--gyp/bench.gyp5
-rw-r--r--skia.gyp7
4 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f206ccf7d8..7ad2106395 100644
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,10 @@ BUILDTYPE ?= Debug
CWD := $(shell pwd)
ALL_TARGETS := core SampleApp bench gm tests tools
+ifneq (,$(findstring skia_os=android, $(GYP_DEFINES)))
+ ALL_TARGETS += SkiaAndroidApp
+endif
+
# Default target. This must be listed before all other targets.
.PHONY: default
default: all
diff --git a/gyp/apptype_console.gypi b/gyp/apptype_console.gypi
index f2f6e1cfec..6971b6a59e 100644
--- a/gyp/apptype_console.gypi
+++ b/gyp/apptype_console.gypi
@@ -11,6 +11,13 @@
'EntryPointSymbol': 'mainCRTStartup',
},
},
+ 'conditions': [
+ [ 'skia_os == "android"', {
+ 'dependencies': [
+ 'android_system.gyp:Android_EntryPoint',
+ ],
+ }],
+ ],
},
}
diff --git a/gyp/bench.gyp b/gyp/bench.gyp
index dcf9b5f8c2..b0fe517e6c 100644
--- a/gyp/bench.gyp
+++ b/gyp/bench.gyp
@@ -75,6 +75,11 @@
'../bench/BenchSysTimer_windows.cpp',
],
}],
+ [ 'skia_os == "android"', {
+ 'dependencies!': [
+ 'android_system.gyp:Android_EntryPoint',
+ ],
+ }],
],
}
],
diff --git a/skia.gyp b/skia.gyp
index 164ef091b8..028df4c5c6 100644
--- a/skia.gyp
+++ b/skia.gyp
@@ -21,6 +21,13 @@
'gyp/tests.gyp:tests',
'gyp/tools.gyp:tools',
],
+ 'conditions': [
+ ['skia_os == "android"', {
+ 'dependencies': [
+ 'gyp/android_system.gyp:SkiaAndroidApp',
+ ],
+ }],
+ ],
},
],
}