Android.mk 2.8 KB
Newer Older
1
LOCAL_PATH := $(call my-dir)
2 3 4 5 6 7 8 9 10

include $(CLEAR_VARS)
LOCAL_MODULE := libprocess-cpp-minimal
LOCAL_SRC_FILES := \
    external/process-cpp-minimal/src/core/posix/process.cpp \
    external/process-cpp-minimal/src/core/posix/process_group.cpp \
    external/process-cpp-minimal/src/core/posix/signal.cpp \
    external/process-cpp-minimal/src/core/posix/signalable.cpp \
    external/process-cpp-minimal/src/core/posix/standard_stream.cpp \
11 12 13 14
    external/process-cpp-minimal/src/core/posix/wait.cpp \
    external/process-cpp-minimal/src/core/posix/fork.cpp \
    external/process-cpp-minimal/src/core/posix/exec.cpp \
    external/process-cpp-minimal/src/core/posix/child_process.cpp
15
LOCAL_CFLAGS := \
16
    -DANDROID \
17 18 19 20 21 22 23 24 25 26 27 28 29 30
    -fexceptions
LOCAL_C_INCLUDES += \
    $(LOCAL_PATH)/external/process-cpp-minimal/include
include $(BUILD_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE_CLASS := EXECUTABLES
LOCAL_MODULE := anboxd
LOCAL_SRC_FILES := \
    android/service/main.cpp \
    android/service/daemon.cpp \
    android/service/host_connector.cpp \
    android/service/local_socket_connection.cpp \
    android/service/message_processor.cpp \
31 32 33 34
    android/service/android_api_skeleton.cpp \
    android/service/platform_service_interface.cpp \
    android/service/platform_service.cpp \
    android/service/platform_api_stub.cpp \
35
    src/anbox/common/fd.cpp \
36
    src/anbox/common/wait_handle.cpp \
37 38 39 40
    src/anbox/rpc/message_processor.cpp \
    src/anbox/rpc/pending_call_cache.cpp \
    src/anbox/rpc/channel.cpp \
    src/anbox/protobuf/anbox_rpc.proto \
41
    src/anbox/protobuf/anbox_bridge.proto
42 43 44 45 46 47 48 49 50 51 52 53
proto_header_dir := $(call local-generated-sources-dir)/proto/$(LOCAL_PATH)/src/anbox/protobuf
LOCAL_C_INCLUDES += \
    $(proto_header_dir) \
    $(LOCAL_PATH)/external/process-cpp-minimal/include \
    $(LOCAL_PATH)/src \
    $(LOCAL_PATH)/android/service
LOCAL_EXPORT_C_INCLUDE_DIRS += $(proto_header_dir)
LOCAL_STATIC_LIBRARIES := \
    libprocess-cpp-minimal
LOCAL_SHARED_LIBRARIES := \
    liblog \
    libprotobuf-cpp-lite \
54 55 56 57
    libsysutils \
    libbinder \
    libcutils \
    libutils
58 59 60 61
LOCAL_CFLAGS := \
    -fexceptions \
    -std=c++1y
include $(BUILD_EXECUTABLE)
62

63 64 65 66 67 68 69 70 71 72 73 74 75 76
include $(CLEAR_VARS)
LOCAL_MODULE_CLASS := EXECUTABLES
LOCAL_MODULE := anbox_test_platform_service
LOCAL_SRC_FILES := \
    android/service/platform_service_interface.cpp \
    android/service/test_platform_service.cpp
LOCAL_C_INCLUDES += \
    $(LOCAL_PATH)/android/service
LOCAL_SHARED_LIBRARIES := \
    liblog \
    libbinder \
    libcutils \
    libutils
include $(BUILD_EXECUTABLE)
77 78 79 80 81 82 83 84 85 86

include $(CLEAR_VARS)
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_SHARED_LIBRARIES := liblog
LOCAL_SRC_FILES := \
    android/hwcomposer/hwcomposer.cpp
LOCAL_MODULE := hwcomposer.anbox
LOCAL_CFLAGS:= -DLOG_TAG=\"hwcomposer\"
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)