--disable-werror \
--audio-drv-list=alsa \
--enable-mixemu \
- --disable-vnc-tls \
--audio-card-list=ac97 \
--enable-ldst-optimization \
--enable-maru \
- --disable-vnc-jpeg \
- --disable-vnc-png \
+ --disable-vnc \
--enable-gl
;;
MINGW*)
--target-list=i386-softmmu \
--audio-drv-list=winwave \
--enable-mixemu \
- --disable-vnc-tls \
--audio-card-list=ac97 \
--enable-ldst-optimization \
--enable-hax \
--enable-maru \
- --disable-vnc-jpeg \
- --disable-vnc-png \
+ --disable-vnc \
--enable-gl $1
;;
+Darwin*)
+cd distrib/libav
+echo ""
+echo "##### FFMPEG configure for emulator"
+./configure \
+--prefix=./$bindir --arch=x86 --enable-static --enable-pic --enable-optimizations --disable-doc --disable-gpl --disable-yasm --disable-postproc --disable-swscale --disable-ffmpeg --disable-ffprobe --disable-ffserver --disable-ffplay --disable-decoders --disable-encoders --disable-muxers --disable-demuxers --disable-parsers --disable-protocols --disable-network --disable-bsfs --disable-devices --disable-filters --enable-encoder=h263 --enable-encoder=h263p --enable-encoder=mpeg4 --enable-encoder=msmpeg4v2 --enable-encoder=msmpeg4v3 --enable-decoder=aac --enable-decoder=h263 --enable-decoder=h264 --enable-decoder=mp3 --enable-decoder=mp3adu --enable-decoder=mpeg4 --enable-decoder=mpegvideo --enable-decoder=msmpeg4v1 --enable-decoder=msmpeg4v2 --enable-decoder=msmpeg4v3 --enable-decoder=wmav1 --enable-decoder=wmav2 --enable-decoder=wmv3 --enable-decoder=vc1 --cc=cc
+cd ../..
+
+cd ..
+echo ""
+echo "##### QEMU configure for emulator"
+./configure \
+ --target-list=i386-softmmu \
+ --audio-drv-list=coreaudio \
+ --enable-mixemu \
+ --audio-card-list=ac97 \
+ --enable-maru \
+ --disable-vnc \
+ --disable-sdl \
+ --disable-gl
+;;
esac
else
endif
+
+ifndef CONFIG_DARWIN
cp ../../qemu-img $(EMUL_DIR)/bin
cp -dpr ../license $(EMUL_DIR)
cp -dpr ../../pc-bios/bios.bin $(EMUL_DIR)/data/bios
cp -dpr ../../pc-bios/pxe-virtio.rom $(EMUL_DIR)/data/bios
cp skin/client/lib/swt.jar $(EMUL_DIR)/bin/swt.jar
cp -dpr skin/client/skins $(EMUL_DIR)
+else
+ cp ../../qemu-img $(EMUL_DIR)/bin
+ cp -pPR ../license $(EMUL_DIR)
+ cp -pPR ../../pc-bios/bios.bin $(EMUL_DIR)/data/bios
+ cp -pPR ../../pc-bios/linuxboot.bin $(EMUL_DIR)/data/bios
+ cp -pPR ../../pc-bios/pxe-rtl8139.rom $(EMUL_DIR)/data/bios
+ cp -pPR ../../pc-bios/pxe-virtio.rom $(EMUL_DIR)/data/bios
+ cp skin/client/lib/swt.jar $(EMUL_DIR)/bin/swt.jar
+ cp -pPR skin/client/skins $(EMUL_DIR)
+endif
# for dibs system...
all_dibs: qemu skin_client_dibs
else
endif
+
+ifndef CONFIG_DARWIN
cp ../../qemu-img $(EMUL_DIR)/bin
cp -dpr ../license $(EMUL_DIR)
cp -dpr ../../pc-bios/bios.bin $(EMUL_DIR)/data/bios
cp -dpr ../../pc-bios/pxe-rtl8139.rom $(EMUL_DIR)/data/bios
cp -dpr ../../pc-bios/pxe-virtio.rom $(EMUL_DIR)/data/bios
cp -dpr skin/client/skins $(EMUL_DIR)
-
+else
+ cp ../../qemu-img $(EMUL_DIR)/bin
+ cp -pPR ../license $(EMUL_DIR)
+ cp -pPR ../../pc-bios/bios.bin $(EMUL_DIR)/data/bios
+ cp -pPR ../../pc-bios/linuxboot.bin $(EMUL_DIR)/data/bios
+ cp -pPR ../../pc-bios/pxe-rtl8139.rom $(EMUL_DIR)/data/bios
+ cp -pPR ../../pc-bios/pxe-virtio.rom $(EMUL_DIR)/data/bios
+ cp -pPR skin/client/skins $(EMUL_DIR)
+endif
void check_shdmem(void)
{
-#ifndef CONFIG_WIN32
+#if defined(CONFIG_LINUX)
int shm_id;
void *shm_addr;
u_int port;
}
}
-#else /* _WIN32*/
+#elif defined(CONFIG_WIN32)
u_int port;
char* base_port = NULL;
char* pBuf;
CloseHandle(hMapFile);
free(base_port);
}
+#elif defined(CONFIG_DARWIN)
+ //TODO:
#endif
}
void make_shdmem(void)
{
-#ifndef _WIN32
+#if defined(CONFIG_LINUX)
int shmid;
char *shared_memory;
shmid = shmget((key_t)tizen_base_port, MAXLEN, 0666|IPC_CREAT);
}
sprintf(shared_memory, "%s", tizen_target_path);
INFO( "shared memory key: %d value: %s\n", tizen_base_port, (char*)shared_memory);
-#else
+#elif defined(CONFIG_WIN32)
HANDLE hMapFile;
char* pBuf;
char* port_in_use;
CopyMemory((PVOID)pBuf, shared_memory, strlen(shared_memory));
free(port_in_use);
free(shared_memory);
+#elif defined(CONFIG_DARWIN)
+ //TODO:
#endif
return;
}
strftime(timeinfo, sizeof(timeinfo), "%Y/%m/%d %H:%M:%S", tm_time);
INFO("* Current time : %s\n", timeinfo);
+#ifdef CONFIG_SDL
/* Gets the version of the dynamically linked SDL library */
INFO("* Host sdl version : (%d, %d, %d)\n",
SDL_Linked_Version()->major, SDL_Linked_Version()->minor, SDL_Linked_Version()->patch);
+#endif
#if defined(CONFIG_WIN32)
/* Retrieves information about the current os */
pc_pci_device_init(pci_bus);
}
-// maru specialized device init...
+#ifndef CONFIG_DARWIN
+ // maru specialized device init...
if (pci_enabled) {
maru_camera_pci_init(pci_bus);
//tizen_ac97_init(pci_bus);
codec_init(pci_bus);
}
+#endif
}
static void maru_arm_machine_init(ram_addr_t ram_size,
*
*/
+
#ifdef CONFIG_DARWIN
#define USE_SHM //shared memory
#endif
*/
+#ifdef CONFIG_DARWIN
+#define USE_SHM //shared memory
+#endif
+
#include "maru_display.h"
#include "debug_ch.h"
+
+#ifndef USE_SHM
#include "maru_sdl.h"
+#else
#include "maru_shm.h"
+#endif
MULTI_DEBUG_CHANNEL(tizen, display);
DisplayChangeListener *dcl;
dcl = g_malloc0(sizeof(DisplayChangeListener));
-#ifndef CONFIG_DARWING
+#ifndef USE_SHM
/* sdl library */
dcl->dpy_update = qemu_ds_sdl_update;
dcl->dpy_resize = qemu_ds_sdl_resize;