blob: 006bf65069c31b0eb3ee994033fa47fe3bd8cb26 (
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
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
|
# Makefile.tizen
# for TIZEN-maru board
$(call set-vpath, $(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw:$(SRC_PATH)/tizen/src:$(SRC_PATH)/tizen/src/hw:$(SRC_PATH)/tizen/src/skin)
QEMU_CFLAGS += -I$(SRC_PATH)/hw -I$(SRC_PATH)/tizen/src
#QEMU_CFLAGS += -I$(SRC_PATH)/tizen/distrib/ffmpeg/include
#QEMU_CFLAGS += -L$(SRC_PATH)/tizen/distrib/ffmpeg/lib
QEMU_CFLAGS += -I$(SRC_PATH)/tizen/distrib/libav/include
QEMU_CFLAGS += -L$(SRC_PATH)/tizen/distrib/libav/lib
QEMU_CFLAGS += $(SDL_CFLAGS)
QEMU_CFLAGS += $(GLIB_CFLAGS)
CFLAGS += -g -O2
ifdef CONFIG_WIN32
LIBS += -lavformat -lavcodec -lavutil -lm
else
LIBS += -lavformat -lavcodec -lavutil -lm -lGL
ifeq ($(ARCH),x86_64)
LIBS += -lva
endif
endif
ifdef CONFIG_DEBUG_EXEC
GL_CFLAGS := -Wall -g -O0 -fno-strict-aliasing
else
GL_CFLAGS := -Wall -g -O2 -fno-strict-aliasing
endif
ifndef CONFIG_WIN32
###########################################################
## Build openGL
# i386
ifeq ($(TARGET_ARCH), i386)
GL_CUR_PATH = $(SRC_PATH)/tizen/src/hw
GL_CFLAGS += -I$(GL_CUR_PATH) -I$(SRC_PATH)/fpu -I$(SRC_PATH)/$(TARGET_DIRS) $(QEMU_CFLAGS) $(CFLAGS)
parse_gl_h: parse_gl_h.c
$(CC) -g -o $@ $<
server_stub.c: parse_gl_h
./parse_gl_h 2>/dev/null
gl_func.h: parse_gl_h
./parse_gl_h 2>/dev/null
opengl_func.h: gl_func.h
helper_opengl.o: helper_opengl.c opengl_func.h server_stub.c opengl_process.h
$(CC) $(GL_CFLAGS) $(DEFINES) $(GL_LDFLAGS) -c -o $@ $<
gl_beginend.h: $(GL_CUR_PATH)/beginend_funcs.sh
$< > $@
mesa_mipmap.o : mesa_mipmap.c
$(CC) $(GL_CFLAGS) $(DEFINES) $(GL_LDFLAGS) -c -o $@ $<
opengl_exec.o : opengl_exec.c server_stub.c opengl_func.h gl_beginend.h opengl_process.h mesa_mipmap.o
$(CC) $(GL_CFLAGS) $(DEFINES) $(GL_LDFLAGS) -c -o $@ $<
endif #($(TARGET_ARCH), i386)
###########################################################
endif #CONFIG_WIN32
# maru loader
obj-y += emulator.o emul_state.o option.o maru_err_table.o
# maru display
obj-y += maru_sdl.o sdl_rotate.o maru_finger.o
# sdb
obj-y += sdb.o
# mloop event
obj-y += mloop_event.o
# debug channel
obj-y += debug_ch.o
# maru hardware
obj-i386-y += maru_board.o
obj-i386-y += maru_overlay.o
obj-i386-y += maru_codec.o
obj-i386-y += maru_pm.o
obj-i386-y += maru_vga.o
obj-i386-y += maru_brightness.o
obj-i386-y += maru_touchscreen.o
obj-i386-$(CONFIG_PCI) += maru_camera_common_pci.o
obj-i386-$(CONFIG_LINUX) += maru_camera_linux_pci.o
obj-i386-$(CONFIG_WIN32) += maru_camera_win32_pci.o
ifdef CONFIG_LINUX # libs for maru camera on linux host
LIBS += -lv4l2 -lv4lconvert
endif
ifdef CONFIG_WIN32 # libs for maru camera on windows host
LIBS += -lole32 -loleaut32 -luuid -lstrmiids
endif
# maru skin
obj-i386-y += maruskin_client.o maruskin_server.o maruskin_operation.o maruskin_keymap.o
# guest server
obj-i386-y += guest_server.o
ifndef CONFIG_WIN32
###########################################################
## opengl library for i386
obj-i386-y += virtio-gl.o helper_opengl.o opengl_exec.o mesa_mipmap.o gloffscreen_common.o gloffscreen_xcomposite.o gloffscreen_wgl.o gloffscreen_test.o
###########################################################
endif
|