QEMU_CFLAGS += -L$(SRC_PATH)/tizen/distrib/ffmpeg/lib
QEMU_CFLAGS += $(SDL_CFLAGS)
+ifdef CONFIG_WIN32
+LIBS += -lavformat -lavcodec -lavutil -lm
+else
LIBS += -lavformat -lavcodec -lavutil -lm -lGL
+endif
# maru loader
obj-y += emulator.o process.o maru_signal.o maru_sdl.o
# maru skin
-obj-i386-y += maruskin_client.o maruskin_server.o maruskin_operation.o maruskin_keymap.o
+obj-i386-y += maruskin_client.o maruskin_server.o maruskin_operation.o
+ifdef CONFIG_WIN32
+obj-i386-y += maruskin_keymap.o
+endif
# guest server
obj-i386-y += guest_server.o
+ifndef CONFIG_WIN32
##########################################################
# opengl library for i386
obj-i386-y += helper_opengl.o opengl_exec.o opengl_server.o
#gles2.o: gles2.c gles2.h gles2_calls.h
##########################################################
+endif
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+
+#ifdef _WIN32
+#include <windows.h>
+#include <winsock2.h>
+#include <ws2tcpip.h>
+#else
#include <arpa/inet.h>
+#endif
+
#include "guest_server.h"
#include "skin/maruskin_server.h"
#include "debug_ch.h"
svr_port = server_port;
- pthread_t thread_id = -1;
+ pthread_t thread_id;
if ( 0 != pthread_create( &thread_id, NULL, run_guest_server, NULL ) ) {
ERR( "fail to create guest_server pthread.\n" );
#include "maru_sdl.h"
#include "debug_ch.h"
#include "../hw/maru_pm.h"
-#include "maruskin_keymap.h"
+
#include "console.h"
#include "sdb.h"
#include "nbd.h"
+#ifndef _WIN32
+#include "maruskin_keymap.h"
+#endif
+
MULTI_DEBUG_CHANNEL(qemu, skin_operation);
enum {
INFO( "send to sendord(size: %d) 127.0.0.1:%d/tcp \n", buf_size, get_sdb_base_port() + SDB_TCP_EMULD_INDEX);
#ifdef _WIN32
- closiesocket( s );
+ closesocket( s );
#else
close( s );
#endif