From dd3d08ea8e3394da42e2dd9631ea5eccb3fb24b6 Mon Sep 17 00:00:00 2001 From: "borenet@google.com" Date: Wed, 27 Jun 2012 19:04:39 +0000 Subject: 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 --- Makefile | 4 ++++ gyp/apptype_console.gypi | 7 +++++++ gyp/bench.gyp | 5 +++++ skia.gyp | 7 +++++++ 4 files changed, 23 insertions(+) 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', + ], + }], + ], }, ], } -- cgit v1.2.3