forked from aosp-mirror/platform_external_qemu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.android-emu.mk
616 lines (555 loc) · 20.3 KB
/
Makefile.android-emu.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
# Declarations related to the AndroidEmu library, which group Android-specific
# emulation features that are used by both QEMU1 and QEMU2 engines.
#
# This file defines the following important modules:
#
# - android-emu-base
# - android-emu
# - emulator-libui
#
# And corresponding unit-tests.
#
# See below for their documentation. Moreoever, it defines the following
# variables that can be used outside of this script:
#
# ANDROID_EMU_BASE_INCLUDES
# List of include paths to be used by any module that depends on
# AndroidEmuBase
#
# ANDROID_EMU_BASE_STATIC_LIBRARIES
# List of static libraries to be used by any executable that depends on
# AndroidEmuBase.
#
# ANDROID_EMU_BASE_LDLIBS
# List of system libraries to be used by any executable or shared library
# that depends on AndroidEmuBase.
#
# ANDROID_EMU_INCLUDES
# List of include paths to be used by any module that depends on
# AndroidEmu
#
# ANDROID_EMU_STATIC_LIBRARIES
# List of static libraries to be used by any executable that depends on
# AndroidEmu.
#
# ANDROID_EMU_LDLIBS
# List of system libraries to be used by any executable or shared library
# that depends on AndroidEmu.
#
###############################################################################
# public variables
_ANDROID_EMU_OLD_LOCAL_PATH := $(LOCAL_PATH)
_ANDROID_EMU_ROOT := $(call my-dir)
# all includes are like 'android/...', so we need to count on that
ANDROID_EMU_BASE_INCLUDES := $(_ANDROID_EMU_ROOT)
ANDROID_EMU_INCLUDES := $(ANDROID_EMU_BASE_INCLUDES)
###############################################################################
#
# android-emu-base
#
# This is a static library containing the low-level system interfaces
# provided by android/base/ and android/utils/. It should only depend on
# system headers and libraries, and nothing else (including the C++ STL).
# Everything that depends on the host implementation, e.g. Looper, shouldn't
# be part of this library, but goes into android-emu
#
$(call start-emulator-library,android-emu-base)
LOCAL_CFLAGS := $(EMULATOR_COMMON_CFLAGS)
LOCAL_C_INCLUDES := \
$(EMULATOR_COMMON_INCLUDES) \
$(ANDROID_EMU_INCLUDES) \
$(LIBUUID_INCLUDES) \
LOCAL_SRC_FILES := \
android/base/containers/PodVector.cpp \
android/base/containers/PointerSet.cpp \
android/base/containers/HashUtils.cpp \
android/base/files/PathUtils.cpp \
android/base/files/StdioStream.cpp \
android/base/files/Stream.cpp \
android/base/files/IniFile.cpp \
android/base/misc/HttpUtils.cpp \
android/base/misc/StringUtils.cpp \
android/base/misc/Utf8Utils.cpp \
android/base/StringFormat.cpp \
android/base/StringView.cpp \
android/base/sockets/SocketUtils.cpp \
android/base/sockets/SocketWaiter.cpp \
android/base/synchronization/MessageChannel.cpp \
android/base/Log.cpp \
android/base/memory/LazyInstance.cpp \
android/base/system/System.cpp \
android/base/threads/Async.cpp \
android/base/threads/FunctorThread.cpp \
android/base/threads/ThreadStore.cpp \
android/base/Uri.cpp \
android/base/Uuid.cpp \
android/base/Version.cpp \
android/utils/aconfig-file.c \
android/utils/assert.c \
android/utils/async.cpp \
android/utils/bufprint.c \
android/utils/bufprint_system.cpp \
android/utils/cbuffer.c \
android/utils/debug.c \
android/utils/debug_wrapper.cpp \
android/utils/dns.cpp \
android/utils/dll.c \
android/utils/dirscanner.cpp \
android/utils/eintr_wrapper.c \
android/utils/exec.cpp \
android/utils/filelock.c \
android/utils/file_data.c \
android/utils/file_io.cpp \
android/utils/format.cpp \
android/utils/host_bitness.cpp \
android/utils/http_utils.cpp \
android/utils/iolooper.cpp \
android/utils/ini.cpp \
android/utils/intmap.c \
android/utils/ipaddr.cpp \
android/utils/lineinput.c \
android/utils/lock.cpp \
android/utils/mapfile.c \
android/utils/misc.c \
android/utils/panic.c \
android/utils/path.cpp \
android/utils/path_system.cpp \
android/utils/property_file.c \
android/utils/reflist.c \
android/utils/refset.c \
android/utils/sockets.c \
android/utils/stralloc.c \
android/utils/stream.cpp \
android/utils/string.cpp \
android/utils/system.c \
android/utils/system_wrapper.cpp \
android/utils/tempfile.c \
android/utils/timezone.cpp \
android/utils/uri.cpp \
android/utils/utf8_utils.cpp \
android/utils/vector.c \
android/utils/x86_cpuid.cpp \
ifeq ($(BUILD_TARGET_OS),windows)
LOCAL_SRC_FILES += \
android/base/synchronization/ConditionVariable_win32.cpp \
android/base/threads/Thread_win32.cpp \
android/base/system/Win32Utils.cpp \
android/base/system/Win32UnicodeString.cpp \
android/utils/win32_cmdline_quote.cpp \
android/utils/win32_unicode.cpp \
else
LOCAL_SRC_FILES += \
android/base/threads/Thread_pthread.cpp \
endif
$(call end-emulator-library)
###############################################################################
#
# android-emu
#
# This is a static library containing all the Android emulation features
# shared with both the QEMU1 and QEMU2 engines. It should only depend on
# android-emu-base, a few third-party prebuilt libraries (e.g. libxml2) and
# system headers and libraries.
#
# NOTE: This does not include UI code, and comes with its own set of unit
# tests.
#
$(call start-emulator-library,android-emu)
LOCAL_CFLAGS := \
$(EMULATOR_COMMON_CFLAGS) \
$(LIBCURL_CFLAGS) \
$(LIBXML2_CFLAGS) \
LOCAL_C_INCLUDES := \
$(EMULATOR_COMMON_INCLUDES) \
$(ANDROID_EMU_INCLUDES) \
$(EMUGL_INCLUDES) \
$(BREAKPAD_CLIENT_INCLUDES) \
$(LIBCURL_INCLUDES) \
$(LIBJPEG_INCLUDES) \
$(LIBXML2_INCLUDES) \
$(LIBEXT4_UTILS_INCLUDES) \
$(LIBPNG_INCLUDES) \
$(ZLIB_INCLUDES) \
LOCAL_SRC_FILES := \
android/adb-qemud.c \
android/adb-server.c \
android/avd/hw-config.c \
android/avd/info.c \
android/avd/scanner.c \
android/avd/util.c \
android/avd/util_wrapper.cpp \
android/async-console.c \
android/async-socket.c \
android/async-socket-connector.c \
android/async-utils.c \
android/base/async/AsyncReader.cpp \
android/base/async/AsyncSocketServer.cpp \
android/base/async/AsyncWriter.cpp \
android/base/async/Looper.cpp \
android/base/async/ScopedSocketWatch.cpp \
android/base/async/ThreadLooper.cpp \
android/base/sockets/SocketDrainer.cpp \
android/base/threads/internal/ParallelTaskBase.cpp \
android/boot-properties.c \
android/camera/camera-service.c \
android/camera/camera-format-converters.c \
android/cmdline-option.c \
android/console.c \
android/core-init-utils.c \
android/cpu_accelerator.cpp \
android/crashreport/CrashSystem.cpp \
android/crashreport/CrashReporter_common.cpp \
android/crashreport/CrashReporter_$(BUILD_TARGET_OS).cpp \
android/curl-support.c \
android/emulation/android_pipe.c \
android/emulation/android_pipe_pingpong.c \
android/emulation/android_pipe_throttle.c \
android/emulation/android_pipe_zero.c \
android/emulation/android_qemud.cpp \
android/emulation/bufprint_config_dirs.cpp \
android/emulation/ConfigDirs.cpp \
android/emulation/control/AdbInterface.cpp \
android/emulation/control/ApkInstaller.cpp \
android/emulation/control/FilePusher.cpp \
android/emulation/control/LineConsumer.cpp \
android/emulation/control/ScreenCapturer.cpp \
android/emulation/CpuAccelerator.cpp \
android/emulation/nand_limits.c \
android/emulation/ParameterList.cpp \
android/emulation/qemud/android_qemud_client.cpp \
android/emulation/qemud/android_qemud_multiplexer.cpp \
android/emulation/qemud/android_qemud_serial.cpp \
android/emulation/qemud/android_qemud_service.cpp \
android/emulation/qemud/android_qemud_sink.cpp \
android/emulation/serial_line.cpp \
android/emulation/SetupParameters.cpp \
android/emulation/VmLock.cpp \
android/emulation/vm_lock.cpp \
android/emulator-window.c \
android/error-messages.cpp \
android/filesystems/ext4_resize.cpp \
android/filesystems/ext4_utils.cpp \
android/filesystems/fstab_parser.cpp \
android/filesystems/internal/PartitionConfigBackend.cpp \
android/filesystems/partition_config.cpp \
android/filesystems/partition_types.cpp \
android/filesystems/ramdisk_extractor.cpp \
android/framebuffer.c \
android/gps/GpxParser.cpp \
android/gps/KmlParser.cpp \
android/gps.c \
android/gpu_frame.cpp \
android/help.c \
android/hw-control.c \
android/hw-events.c \
android/hw-fingerprint.c \
android/hw-kmsg.c \
android/hw-lcd.c \
android/hw-qemud.cpp \
android/hw-sensors.c \
android/jpeg-compress.c \
android/kernel/kernel_utils.cpp \
android/loadpng.c \
android/main-common.c \
android/main-emugl.cpp \
android/main-kernel-parameters.cpp \
android/main-qemu-parameters.cpp \
android/metrics/AdbLivenessChecker.cpp \
android/metrics/IniFileAutoFlusher.cpp \
android/metrics/metrics_reporter.cpp \
android/metrics/metrics_reporter_toolbar.cpp \
android/metrics/StudioConfig.cpp \
android/multitouch-port.c \
android/multitouch-screen.c \
android/network/constants.c \
android/opengl/EmuglBackendList.cpp \
android/opengl/EmuglBackendScanner.cpp \
android/opengl/emugl_config.cpp \
android/opengl/GpuFrameBridge.cpp \
android/opengl/gpuinfo.cpp \
android/opengl/logger.cpp \
android/opengl/OpenglEsPipe.cpp \
android/opengles.cpp \
android/openssl-support.cpp \
android/process_setup.cpp \
android/proxy/proxy_common.c \
android/proxy/proxy_http.c \
android/proxy/proxy_http_connector.c \
android/proxy/proxy_http_rewriter.c \
android/qemu-setup.c \
android/qemu-tcpdump.c \
android/qt/qt_path.cpp \
android/qt/qt_setup.cpp \
android/resource.c \
android/sdk-controller-socket.c \
android/sensors-port.c \
android/shaper.c \
android/snaphost-android.c \
android/snapshot.c \
android/telephony/debug.c \
android/telephony/gsm.c \
android/telephony/modem.c \
android/telephony/modem_driver.c \
android/telephony/remote_call.c \
android/telephony/sim_card.c \
android/telephony/sms.c \
android/telephony/sysdeps.c \
android/uncompress.cpp \
android/update-check/UpdateChecker.cpp \
android/update-check/VersionExtractor.cpp \
android/user-config.cpp \
android/utils/socket_drainer.cpp \
android/utils/looper.cpp \
android/wear-agent/android_wear_agent.cpp \
android/wear-agent/WearAgent.cpp \
android/wear-agent/PairUpWearPhone.cpp \
# Platform-specific camera capture
ifeq ($(BUILD_TARGET_OS),linux)
LOCAL_SRC_FILES += \
android/camera/camera-capture-linux.c
endif
ifeq ($(BUILD_TARGET_OS),darwin)
LOCAL_SRC_FILES += \
android/camera/camera-capture-mac.m
endif
ifeq ($(BUILD_TARGET_OS),windows)
LOCAL_SRC_FILES += \
android/camera/camera-capture-windows.cpp \
android/windows_installer.cpp \
endif
$(call gen-hw-config-defs)
$(call end-emulator-library)
# List of static libraries that anything that depends on the base libraries
# should use.
ANDROID_EMU_BASE_STATIC_LIBRARIES := \
android-emu-base \
$(LIBUUID_STATIC_LIBRARIES) \
ANDROID_EMU_BASE_LDLIBS := \
$(LIBUUID_LDLIBS) \
ANDROID_EMU_STATIC_LIBRARIES := \
android-emu \
$(ANDROID_EMU_BASE_STATIC_LIBRARIES) \
$(LIBCURL_STATIC_LIBRARIES) \
$(LIBXML2_STATIC_LIBRARIES) \
$(BREAKPAD_CLIENT_STATIC_LIBRARIES) \
emulator-libext4_utils \
emulator-libsparse \
emulator-libselinux \
emulator-libjpeg \
emulator-libpng \
emulator-zlib \
ANDROID_EMU_LDLIBS := \
$(ANDROID_EMU_BASE_LDLIBS) \
$(LIBCURL_LDLIBS) \
$(BREAKPAD_CLIENT_LDLIBS) \
ifeq ($(BUILD_TARGET_OS),windows)
# For capCreateCaptureWindow used in camera-capture-windows.cpp
ANDROID_EMU_LDLIBS += -lvfw32
# For GetPerformanceInfo in CrashService_windows.cpp
ANDROID_EMU_LDLIBS += -lpsapi
endif
###############################################################################
#
# android-emu unit tests
#
#
$(call start-emulator-program, android_emu$(BUILD_TARGET_SUFFIX)_unittests)
LOCAL_C_INCLUDES += \
$(ANDROID_EMU_INCLUDES) \
$(EMULATOR_COMMON_INCLUDES) \
$(EMULATOR_GTEST_INCLUDES) \
$(LIBXML2_INCLUDES) \
LOCAL_LDLIBS += \
$(ANDROID_EMU_LDLIBS) \
LOCAL_SRC_FILES := \
android/avd/util_unittest.cpp \
android/base/ArraySize_unittest.cpp \
android/base/async/Looper_unittest.cpp \
android/base/async/AsyncSocketServer_unittest.cpp \
android/base/async/RecurrentTask_unittest.cpp \
android/base/async/ScopedSocketWatch_unittest.cpp \
android/base/async/SubscriberList_unittest.cpp \
android/base/containers/CircularBuffer_unittest.cpp \
android/base/containers/HashUtils_unittest.cpp \
android/base/containers/Lookup_unittest.cpp \
android/base/containers/PodVector_unittest.cpp \
android/base/containers/PointerSet_unittest.cpp \
android/base/containers/ScopedPointerSet_unittest.cpp \
android/base/containers/TailQueueList_unittest.cpp \
android/base/EintrWrapper_unittest.cpp \
android/base/files/IniFile_unittest.cpp \
android/base/files/PathUtils_unittest.cpp \
android/base/files/ScopedFd_unittest.cpp \
android/base/files/ScopedStdioFile_unittest.cpp \
android/base/files/Stream_unittest.cpp \
android/base/Log_unittest.cpp \
android/base/memory/LazyInstance_unittest.cpp \
android/base/memory/MallocUsableSize_unittest.cpp \
android/base/memory/QSort_unittest.cpp \
android/base/misc/HttpUtils_unittest.cpp \
android/base/misc/StringUtils_unittest.cpp \
android/base/misc/Utf8Utils_unittest.cpp \
android/base/Optional_unittest.cpp \
android/base/sockets/ScopedSocket_unittest.cpp \
android/base/sockets/SocketDrainer_unittest.cpp \
android/base/sockets/SocketUtils_unittest.cpp \
android/base/sockets/SocketWaiter_unittest.cpp \
android/base/StringFormat_unittest.cpp \
android/base/StringView_unittest.cpp \
android/base/synchronization/ConditionVariable_unittest.cpp \
android/base/synchronization/Lock_unittest.cpp \
android/base/synchronization/MessageChannel_unittest.cpp \
android/base/system/System_unittest.cpp \
android/base/threads/FunctorThread_unittest.cpp \
android/base/threads/ParallelTask_unittest.cpp \
android/base/threads/Thread_unittest.cpp \
android/base/threads/ThreadStore_unittest.cpp \
android/base/TypeUtils_unittest.cpp \
android/base/Uri_unittest.cpp \
android/base/Uuid_unittest.cpp \
android/base/Version_unittest.cpp \
android/cmdline-option_unittest.cpp \
android/emulation/android_pipe_pingpong_unittest.cpp \
android/emulation/android_pipe_zero_unittest.cpp \
android/emulation/bufprint_config_dirs_unittest.cpp \
android/emulation/ConfigDirs_unittest.cpp \
android/emulation/control/AdbInterface_unittest.cpp \
android/emulation/control/ApkInstaller_unittest.cpp \
android/emulation/control/FilePusher_unittest.cpp \
android/emulation/control/ScreenCapturer_unittest.cpp \
android/emulation/control/LineConsumer_unittest.cpp \
android/emulation/CpuAccelerator_unittest.cpp \
android/emulation/ParameterList_unittest.cpp \
android/emulation/serial_line_unittest.cpp \
android/emulation/SetupParameters_unittest.cpp \
android/emulation/testing/TestAndroidPipeDevice.cpp \
android/emulation/VmLock_unittest.cpp \
android/emulation/vm_lock_unittest.cpp \
android/error-messages_unittest.cpp \
android/filesystems/ext4_resize_unittest.cpp \
android/filesystems/ext4_utils_unittest.cpp \
android/filesystems/fstab_parser_unittest.cpp \
android/filesystems/partition_config_unittest.cpp \
android/filesystems/partition_types_unittest.cpp \
android/filesystems/ramdisk_extractor_unittest.cpp \
android/filesystems/testing/TestSupport.cpp \
android/gps/GpxParser_unittest.cpp \
android/gps/internal/GpxParserInternal_unittest.cpp \
android/gps/internal/KmlParserInternal_unittest.cpp \
android/gps/KmlParser_unittest.cpp \
android/kernel/kernel_utils_unittest.cpp \
android/metrics/metrics_reporter_unittest.cpp \
android/metrics/metrics_reporter_toolbar_unittest.cpp \
android/metrics/StudioConfig_unittest.cpp \
android/network/constants_unittest.cpp \
android/opengl/EmuglBackendList_unittest.cpp \
android/opengl/EmuglBackendScanner_unittest.cpp \
android/opengl/emugl_config_unittest.cpp \
android/opengl/GpuFrameBridge_unittest.cpp \
android/opengl/gpuinfo_unittest.cpp \
android/qt/qt_path_unittest.cpp \
android/qt/qt_setup_unittest.cpp \
android/telephony/gsm_unittest.cpp \
android/telephony/sms_unittest.cpp \
android/update-check/UpdateChecker_unittest.cpp \
android/update-check/VersionExtractor_unittest.cpp \
android/utils/aconfig-file_unittest.cpp \
android/utils/bufprint_unittest.cpp \
android/utils/dirscanner_unittest.cpp \
android/utils/eintr_wrapper_unittest.cpp \
android/utils/file_data_unittest.cpp \
android/utils/format_unittest.cpp \
android/utils/host_bitness_unittest.cpp \
android/utils/path_unittest.cpp \
android/utils/property_file_unittest.cpp \
android/utils/string_unittest.cpp \
android/utils/x86_cpuid_unittest.cpp \
android/wear-agent/PairUpWearPhone_unittest.cpp \
android/wear-agent/testing/WearAgentTestUtils.cpp \
android/wear-agent/WearAgent_unittest.cpp \
ifeq (windows,$(BUILD_TARGET_OS))
LOCAL_SRC_FILES += \
android/base/files/ScopedFileHandle_unittest.cpp \
android/base/files/ScopedRegKey_unittest.cpp \
android/base/system/Win32UnicodeString_unittest.cpp \
android/base/system/Win32Utils_unittest.cpp \
android/utils/win32_cmdline_quote_unittest.cpp \
android/windows_installer_unittest.cpp \
else
LOCAL_SRC_FILES += \
android/emulation/nand_limits_unittest.cpp \
endif
LOCAL_CFLAGS += -O0
LOCAL_STATIC_LIBRARIES += \
$(ANDROID_EMU_STATIC_LIBRARIES) \
emulator-libgtest \
# Link against static libstdc++ on Linux and Windows since the unit-tests
# cannot pick up our custom versions of the library from
# $(BUILD_OBJS_DIR)/lib[64]/
$(call local-link-static-c++lib)
$(call end-emulator-program)
##############################################################################
#
# emulator-libui
#
# This is the library that implements the emulator's UI on top of
# android-emu. Note that it depends on interfaces that must be implemented
# by the engine-specific glue code. As such, the code cannot be unit-tested
# for now.
#
EMULATOR_LIBUI_INCLUDES :=
EMULATOR_LIBUI_LDLIBS :=
EMULATOR_LIBUI_LDFLAGS :=
EMULATOR_LIBUI_STATIC_LIBRARIES :=
EMULATOR_LIBUI_INCLUDES += $(QT_INCLUDES)
EMULATOR_LIBUI_LDFLAGS += $(QT_LDFLAGS)
EMULATOR_LIBUI_LDLIBS += $(QT_LDLIBS)
# The skin support sources
include $(LOCAL_PATH)/android/skin/sources.mk
EMULATOR_LIBUI_STATIC_LIBRARIES += $(ANDROID_SKIN_STATIC_LIBRARIES)
$(call start-emulator-library, emulator-libui)
EMULATOR_LIBUI_INCLUDES += $(ANDROID_SKIN_INCLUDES)
EMULATOR_LIBUI_LDLIBS += $(ANDROID_SKIN_LDLIBS)
LOCAL_CFLAGS += \
$(EMULATOR_COMMON_CFLAGS) \
$(ANDROID_SKIN_CFLAGS) \
$(LIBXML2_CFLAGS) \
LOCAL_C_INCLUDES := \
$(EMULATOR_COMMON_INCLUDES) \
$(EMULATOR_LIBUI_INCLUDES) \
LOCAL_SRC_FILES += \
$(ANDROID_SKIN_SOURCES) \
android/gpu_frame.cpp \
android/emulator-window.c \
android/main-common-ui.c \
android/resource.c \
LOCAL_QT_MOC_SRC_FILES := $(ANDROID_SKIN_QT_MOC_SRC_FILES)
LOCAL_QT_RESOURCES := $(ANDROID_SKIN_QT_RESOURCES)
LOCAL_QT_UI_SRC_FILES := $(ANDROID_SKIN_QT_UI_SRC_FILES)
$(call gen-hw-config-defs)
$(call end-emulator-library)
# emulator-libui unit tests
$(call start-emulator-program, emulator$(BUILD_TARGET_SUFFIX)_libui_unittests)
LOCAL_C_INCLUDES += \
$(EMULATOR_COMMON_INCLUDES) \
$(ANDROID_EMU_INCLUDES) \
$(EMULATOR_GTEST_INCLUDES) \
LOCAL_SRC_FILES := \
android/skin/keycode_unittest.cpp \
android/skin/keycode-buffer_unittest.cpp \
android/skin/rect_unittest.cpp \
LOCAL_C_INCLUDES += \
$(LIBXML2_INCLUDES) \
LOCAL_CFLAGS += -O0
LOCAL_STATIC_LIBRARIES += \
emulator-libui \
emulator-libgtest \
$(ANDROID_EMU_STATIC_LIBRARIES) \
# Link against static libstdc++ on Linux and Windows since the unit-tests
# cannot pick up our custom versions of the library from
# $(BUILD_OBJS_DIR)/lib[64]/
$(call local-link-static-c++lib)
$(call gen-hw-config-defs)
$(call end-emulator-program)
# Done
LOCAL_PATH := $(_ANDROID_EMU_OLD_LOCAL_PATH)