[Title] opengl-es acceleration server and client
authorsangjin3.kim <sangjin3.kim@samsung.com>
Mon, 5 Mar 2012 06:02:45 +0000 (15:02 +0900)
committersangjin3.kim <sangjin3.kim@samsung.com>
Mon, 5 Mar 2012 06:02:45 +0000 (15:02 +0900)
[Type] Enhancement
[Module] opengl
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

Makefile.target [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index a02cd77..cacfdd0
@@ -251,6 +251,11 @@ LIBS+=-lavformat -lavcodec -lavutil -lbz2
 CFLAGS+=$(FFMPEG_CFLAGS)
 endif
 
+##########################################################
+# opengl library for i386
+obj-i386-y += helper_opengl.o opengl_exec.o opengl_server.o
+##########################################################
+
 
 # shared objects
 obj-ppc-y = ppc.o ppc_booke.o
@@ -439,6 +444,33 @@ hmp-commands.h: $(SRC_PATH)/hmp-commands.hx
 qmp-commands-old.h: $(SRC_PATH)/qmp-commands.hx
        $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@,"  GEN   $(TARGET_DIR)$@")
 
+##########################################################
+# Build openGL
+# i386
+ifeq ($(TARGET_ARCH), i386)
+parse_gl_h: $(TARGET_PATH)/parse_gl_h.c
+    $(CC) -Wall -O2 -g $< -o $@
+
+client_stub.c server_stub.c gl_func.h: parse_gl_h
+    ./parse_gl_h
+
+opengl_exec.o: opengl_exec.c server_stub.c gl_func.h
+
+opengl_server.o: opengl_server.c opengl_exec.c
+
+helper_opengl.o: gl_func.h
+
+$(TARGET_PATH)/libGL.so.1: opengl_client.c gl_func.h
+    $(CC) -I$(TARGET_PATH) -I. -Wall -g -O2 $< -shared -o $@
+endif
+
+# arm
+#gles1_calls.o: gles1_calls.c gles2.h gles2_calls.h
+#gles2_calls.o: gles2_calls.c gles2.h gles2_calls.h
+#gles2.o: gles2.c gles2.h gles2_calls.h
+
+##########################################################
+       
 clean:
        rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o
        rm -f *.d */*.d tcg/*.o ide/*.o 9pfs/*.o