blob: c051721c8dee45758673398d0913bdd215b07db7 [file] [log] [blame]
Colin Crossa3d386e2013-02-06 21:03:34 -08001# Copyright (C) 2013 Google Inc.
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
15LOCAL_PATH:= $(call my-dir)
16
17include $(CLEAR_VARS)
18
Szymon Starzyckie160f812013-07-24 17:08:04 -070019LOCAL_C_INCLUDES := \
20 external/openssl/include \
Szymon Starzycki65812282013-09-13 15:37:08 -070021 external/mdnsresponder/mDNSShared \
Szymon Starzyckie160f812013-07-24 17:08:04 -070022 $(LOCAL_PATH)/include \
23 external/zlib/ \
24
Colin Crossa3d386e2013-02-06 21:03:34 -080025LOCAL_SRC_FILES := \
26 config.c \
27 commands.c \
Szymon Starzyckie160f812013-07-24 17:08:04 -070028 commands/boot.c \
29 commands/flash.c \
30 commands/partitions.c \
Szymon Starzycki585af582013-09-06 15:09:30 -070031 commands/virtual_partitions.c \
Colin Crossa3d386e2013-02-06 21:03:34 -080032 fastbootd.c \
33 protocol.c \
Szymon Starzycki65812282013-09-13 15:37:08 -070034 network_discovery.c \
Szymon Starzyckib015b162013-09-05 14:26:28 -070035 socket_client.c \
Colin Crossa3d386e2013-02-06 21:03:34 -080036 transport.c \
Szymon Starzyckib015b162013-09-05 14:26:28 -070037 transport_socket.c \
Szymon Starzyckie160f812013-07-24 17:08:04 -070038 trigger.c \
39 usb_linux_client.c \
Szymon Starzycki65812282013-09-13 15:37:08 -070040 utils.c \
Colin Crossa3d386e2013-02-06 21:03:34 -080041
42LOCAL_MODULE := fastbootd
43LOCAL_MODULE_TAGS := optional
Colin Cross068b71d2013-09-27 20:34:32 +000044LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
Szymon Starzyckie160f812013-07-24 17:08:04 -070045LOCAL_LDFLAGS := -ldl
46
47LOCAL_SHARED_LIBRARIES := \
48 libhardware \
Szymon Starzycki65812282013-09-13 15:37:08 -070049 libcrypto \
50 libhardware_legacy \
51 libmdnssd
Szymon Starzyckie160f812013-07-24 17:08:04 -070052
53LOCAL_STATIC_LIBRARIES := \
54 libsparse_static \
55 libc \
56 libcutils \
57 libz
58
59#LOCAL_FORCE_STATIC_EXECUTABLE := true
60
61include $(BUILD_EXECUTABLE)
62
63include $(CLEAR_VARS)
64LOCAL_C_INCLUDES := \
65 external/zlib/
66
67LOCAL_SRC_FILES := \
68 commands/partitions.c \
69 other/gptedit.c \
70 utils.c
71
72LOCAL_MODULE := gptedit
73LOCAL_MODULE_TAGS := optional
74LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
Colin Crossa3d386e2013-02-06 21:03:34 -080075
76LOCAL_STATIC_LIBRARIES := \
77 libsparse_static \
78 libc \
Szymon Starzyckie160f812013-07-24 17:08:04 -070079 libcutils \
80 libz
Colin Crossa3d386e2013-02-06 21:03:34 -080081
82LOCAL_FORCE_STATIC_EXECUTABLE := true
83
84include $(BUILD_EXECUTABLE)
Szymon Starzyckie160f812013-07-24 17:08:04 -070085
86include $(CLEAR_VARS)
87
88LOCAL_C_INCLUDES := \
89 $(LOCAL_PATH)/include \
90
91LOCAL_STATIC_LIBRARIES := \
92 $(EXTRA_STATIC_LIBS) \
93 libcutils
94
95LOCAL_SRC_FILES := \
96 other/vendor_trigger.c
97
98LOCAL_MODULE := libvendortrigger.default
99LOCAL_MODULE_TAGS := optional
100LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
101
102
103include $(BUILD_SHARED_LIBRARY)