summaryrefslogtreecommitdiff
path: root/host/commands/emugen/Android.mk
blob: 777f124eed8e73a200c302ef4eefbc14e2f072d9 (plain)
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
# Determine if the emugen build needs to be builts from
# sources.
LOCAL_PATH:=$(call my-dir)

$(call emugl-begin-host-executable,emugen)
LOCAL_SRC_FILES := \
    ApiGen.cpp \
    EntryPoint.cpp \
    main.cpp \
    Parser.cpp \
    strUtils.cpp \
    TypeFactory.cpp \

LOCAL_LDFLAGS += -m64
LOCAL_CFLAGS += -m64

ifeq ($(BUILD_HOST_OS),linux)
  # Make sure libc++.so can be found
  LOCAL_LDFLAGS +=-Wl,-rpath=$(BUILD_OBJS_DIR)/intermediates64
endif

LOCAL_INSTALL := false

$(call emugl-end-module)

# The location of the emugen host tool that is used to generate wire
# protocol encoders/ decoders. This variable is used by other emugl modules.
EMUGL_EMUGEN := $(LOCAL_BUILT_MODULE)

$(call emugl-begin-host-executable,emugen_unittests)
LOCAL_SRC_FILES := \
    Parser.cpp \
    Parser_unittest.cpp

LOCAL_LDFLAGS += -m64
LOCAL_CFLAGS += -m64

LOCAL_INSTALL := false

$(call emugl-import,libemugl_gtest_host)
ifeq ($(BUILD_HOST_OS),linux)
  # Make sure libc++.so can be found
  LOCAL_LDFLAGS +=-Wl,-rpath=$(BUILD_OBJS_DIR)/intermediates64 -m64
endif
$(call emugl-end-module)