Skip to content

Commit 932e544

Browse files
committed
Merge pull request #1 from BRNmod/android_mk
added Android makefile
2 parents bc6d581 + b299cbe commit 932e544

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

Android.mk

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright (c) 2015 μg Project Team
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
LOCAL_PATH:= $(call my-dir)
16+
include $(CLEAR_VARS)
17+
18+
LOCAL_MODULE := GsfProxy
19+
LOCAL_MODULE_TAGS := optional
20+
LOCAL_PACKAGE_NAME := GsfProxy
21+
22+
gsfproxy_root := $(LOCAL_PATH)
23+
gsfproxy_dir := services-framework-proxy
24+
gsfproxy_out := $(OUT_DIR)/target/common/obj/APPS/$(LOCAL_MODULE)_intermediates
25+
gsfproxy_build := $(gsfproxy_root)/$(gsfproxy_dir)/build
26+
gsfproxy_apk := build/outputs/apk/services-framework-proxy-release-unsigned.apk
27+
28+
$(gsfproxy_root)/$(gsfproxy_dir)/$(gsfproxy_apk):
29+
rm -Rf $(gsfproxy_build)
30+
mkdir -p $(gsfproxy_out)
31+
ln -s $(gsfproxy_out) $(gsfproxy_build)
32+
echo "sdk.dir=$(ANDROID_HOME)" > $(gsfproxy_root)/local.properties
33+
cd $(gsfproxy_root) && git submodule update --recursive --init
34+
cd $(gsfproxy_root)/$(gsfproxy_dir) && JAVA_TOOL_OPTIONS="$(JAVA_TOOL_OPTIONS) -Dfile.encoding=UTF8" ../gradlew assembleRelease
35+
36+
LOCAL_CERTIFICATE := platform
37+
LOCAL_SRC_FILES := $(gsfproxy_dir)/$(gsfproxy_apk)
38+
LOCAL_MODULE_CLASS := APPS
39+
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
40+
41+
include $(BUILD_PREBUILT)

0 commit comments

Comments
 (0)