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)
+ cp -pPR skin/client/native_src/libshare.dylib $(EMUL_DIR)/bin
endif
# for dibs system...
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)
+ cp -pPR skin/client/native_src/libshare.dylib $(EMUL_DIR)/bin
endif
<target name="create-native-linux" if="isLinux" unless="isMac">
<echo message="create native shared library on linux..." />
<javah classpath="build;lib/swt.jar" destdir="native_src">
- <class name="org.tizen.emulator.skin.EmulatorSkin" />
+ <class name="org.tizen.emulator.skin.EmulatorShmSkin" />
</javah>
<exec dir="native_src" executable="gcc" failifexecutionfails="false">
<arg line="-shared" />
<target name="create-native-mac" if="isMac">
<echo message="create native shared library on mac..." />
<javah classpath="build;lib/swt.jar" destdir="native_src">
- <class name="org.tizen.emulator.skin.EmulatorSkin" />
+ <class name="org.tizen.emulator.skin.EmulatorShmSkin" />
</javah>
<exec dir="native_src" executable="gcc" failifexecutionfails="false">
<arg line="-dynamiclib" />
- <arg line="-c" />
<arg line="Share.c" />
<arg line="-o" />
<arg line="libshare.dylib" />
- <arg line="-I${env.JAVA_HOME}/Headers" />
+ <arg line="-I${env.JAVA_HOME}/../Headers" />
<arg line="-fPIC" />
</exec>
<delete>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
-#include "org_tizen_emulator_skin_EmulatorSkin.h"
+#include "org_tizen_emulator_skin_EmulatorShmSkin.h"
void *shared_memory = (void *)0;
int shmid;
-JNIEXPORT jint JNICALL Java_org_tizen_emulator_skin_EmulatorSkin_shmget
+JNIEXPORT jint JNICALL Java_org_tizen_emulator_skin_EmulatorShmSkin_shmget
(JNIEnv *env, jobject obj, jint vga_ram_size)
{
int mykey = getuid();
return 0;
}
-JNIEXPORT jint JNICALL Java_org_tizen_emulator_skin_EmulatorSkin_shmdt
+JNIEXPORT jint JNICALL Java_org_tizen_emulator_skin_EmulatorShmSkin_shmdt
(JNIEnv *env, jobject obj)
{
/* Lastly, the shared memory is detached */
return 0;
}
-JNIEXPORT jint JNICALL Java_org_tizen_emulator_skin_EmulatorSkin_getPixels
+JNIEXPORT jint JNICALL Java_org_tizen_emulator_skin_EmulatorShmSkin_getPixels
(JNIEnv *env, jobject obj, jintArray array)
{
int i = 0;
static {
/* shared memory */
if (SwtUtil.isMacPlatform()) {
- System.loadLibrary("shared");
+ System.loadLibrary("share");
}
}