cp -pPR ../license $(EMUL_DIR)
cp skin/client/lib/swt.jar $(EMUL_DIR)/bin/swt.jar
cp -pPR skin/client/skins $(EMUL_DIR)
+endif
+
+ifdef CONFIG_USE_SHM
+ifdef CONFIG_DARWIN
cp -pPR skin/client/native_src/libshared.dylib $(EMUL_DIR)/bin
endif
+ifdef CONFIG_LINUX
+ cp -dpr skin/client/native_src/libshared.so $(EMUL_DIR)/bin
+endif
+endif
ifdef CONFIG_DARWIN
install_name_tool -change /opt/local/lib/libgthread-2.0.*.dylib @loader_path/libgthread-2.0.0.dylib $(EMUL_DIR)/bin/qemu-img
cp ../../qemu-img $(DIBS_COMMON_DIR)/bin
cp -pPR ../license $(DIBS_COMMON_DIR)
cp -pPR skin/client/skins $(DIBS_COMMON_DIR)
+endif
+
+ifdef CONFIG_USE_SHM
+ifdef CONFIG_DARWIN
cp -pPR skin/client/native_src/libshared.dylib $(DIBS_COMMON_DIR)/bin
endif
+ifdef CONFIG_LINUX
+ cp -dpr skin/client/native_src/libshared.so $(DIBS_COMMON_DIR)/bin
+endif
+endif
ifdef CONFIG_DARWIN
install_name_tool -change /opt/local/lib/libgthread-2.0.*.dylib @loader_path/libgthread-2.0.0.dylib $(DIBS_COMMON_DIR)/bin/qemu-img
d += linesize;
}
+//TODO: maru_shm
+#ifdef CONFIG_USE_SHM
+ /* for display updating */
+ memcpy(shared_memory, s->ds->surface->data,
+ s->ds->surface->linesize * s->ds->surface->height);
+#endif
+
+//TODO: maru_sdl
+#ifndef CONFIG_USE_SHM
/* for screenshot */
pthread_mutex_lock(&mutex_screenshot);
+
MaruScreenshot* maru_screenshot = get_maru_screenshot();
if (maru_screenshot) {
maru_screenshot->isReady = 1;
+
if (maru_screenshot->request_screenshot == 1) {
memcpy(maru_screenshot->pixel_data, s->ds->surface->data,
s->ds->surface->linesize * s->ds->surface->height);
maru_screenshot->request_screenshot = 0;
+
pthread_cond_signal(&cond_screenshot);
}
}
- pthread_mutex_unlock(&mutex_screenshot);
-#ifdef CONFIG_USE_SHM
- memcpy(shared_memory, s->ds->surface->data,
- s->ds->surface->linesize * s->ds->surface->height);
+ pthread_mutex_unlock(&mutex_screenshot);
#endif
if (y_start >= 0) {