-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathAndroid.mk
62 lines (51 loc) · 1.74 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#
# This file is part of GyroidOS
# Copyright(c) 2013 - 2017 Fraunhofer AISEC
# Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2 (GPL 2), as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GPL 2 license for more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, see <http://www.gnu.org/licenses/>
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# Fraunhofer AISEC <[email protected]>
#
LOCAL_PATH:= $(call my-dir)
CMLD_COMMON_CFLAGS := -pedantic -Wall -Wextra -Werror -std=c99
CMLD_COMMON_SRC_FILES := \
common/list.c \
common/logf.c \
common/mem.c
include $(CLEAR_VARS)
LOCAL_MODULE := cml-control
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(CMLD_COMMON_SRC_FILES) \
common/protobuf.c \
common/sock.c \
common/file.c \
common/fd.c \
control.proto \
guestos.proto \
container.proto \
control.c
LOCAL_STATIC_LIBRARIES += libprotobuf-c-text libc
LOCAL_CFLAGS += $(CMLD_COMMON_CFLAGS)
ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
LOCAL_CFLAGS += -DDEBUG_BUILD
endif
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT_SBIN)
LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_SBIN_UNSTRIPPED)
LOCAL_MODULE_CLASS := EXECUTABLES
include external/protobuf-c/prepare-protoc-build.mk
include $(BUILD_EXECUTABLE)