aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/windows
diff options
context:
space:
mode:
authorLyubomir Marinov <lyubomir.marinov@jitsi.org>2012-06-19 22:07:44 +0000
committerLyubomir Marinov <lyubomir.marinov@jitsi.org>2012-06-19 22:07:44 +0000
commit5003e1b9e3a6c4244511a80e67270a68ca257fc5 (patch)
tree5f781adfdf7493a96239107b3bacb8eed16e53f7 /src/native/windows
parent161d186f5e7ca53b63bdb20c88101b863d9a3498 (diff)
downloadjitsi-5003e1b9e3a6c4244511a80e67270a68ca257fc5.zip
jitsi-5003e1b9e3a6c4244511a80e67270a68ca257fc5.tar.gz
jitsi-5003e1b9e3a6c4244511a80e67270a68ca257fc5.tar.bz2
Commits work in progress on libjitsi.
Diffstat (limited to 'src/native/windows')
-rw-r--r--src/native/windows/msofficecomm/NoStdCPlusPlus.cxx11
-rwxr-xr-xsrc/native/windows/msofficecomm/build-x64.sh37
-rwxr-xr-xsrc/native/windows/msofficecomm/build-x86.sh37
-rw-r--r--src/native/windows/msofficecomm/msgrua.tlbbin0 -> 31476 bytes
4 files changed, 85 insertions, 0 deletions
diff --git a/src/native/windows/msofficecomm/NoStdCPlusPlus.cxx b/src/native/windows/msofficecomm/NoStdCPlusPlus.cxx
new file mode 100644
index 0000000..0662baf
--- /dev/null
+++ b/src/native/windows/msofficecomm/NoStdCPlusPlus.cxx
@@ -0,0 +1,11 @@
+/*
+ * Jitsi, the OpenSource Java VoIP and Instant Messaging client.
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+#include <stdlib.h>
+
+void * operator new (size_t size) { return ::malloc(size); }
+void operator delete (void *ptr) { ::free(ptr); }
+void *__cxa_pure_virtual = NULL;
diff --git a/src/native/windows/msofficecomm/build-x64.sh b/src/native/windows/msofficecomm/build-x64.sh
new file mode 100755
index 0000000..b6292a3
--- /dev/null
+++ b/src/native/windows/msofficecomm/build-x64.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+CC=x86_64-w64-mingw32-gcc
+JAVA_HOME=$HOME/Downloads/jdk-7u4-windows-i586
+OCSDK_HOME=$HOME/Downloads/OCSDK
+WINVER=0x0501
+
+BASE_DIR=`dirname $0`
+if [ "x${BASE_DIR}" = "x" ]; then
+ BASE_DIR=.
+else
+ BASE_DIR=`cd ${BASE_DIR}/../../../../ && pwd`
+fi
+SRC_DIR=${BASE_DIR}/src/native/windows/msofficecomm
+STRIP=`echo ${CC} | sed 's/gcc/strip/'`
+TARGET=${BASE_DIR}/lib/native/windows-64/jmsofficecomm.dll
+
+for CXX_FILE in ${SRC_DIR}/*.cxx; do
+ ${CC} \
+ -c \
+ -D_JNI_IMPLEMENTATION_ -D_UNICODE -DUNICODE -D_WIN32_WINNT=${WINVER} -DWINVER=${WINVER} \
+ -fno-exceptions -fno-rtti \
+ -I${JAVA_HOME}/include -I${JAVA_HOME}/include/win32 -I${OCSDK_HOME} \
+ -O2 \
+ -Wall \
+ -x 'c++' \
+ ${CXX_FILE} \
+ -o ${SRC_DIR}/`basename ${CXX_FILE} .cxx`.o
+done
+${CC} \
+ -shared \
+ -Wl,--kill-at \
+ ${SRC_DIR}/*.o \
+ ${SRC_DIR}/*.res \
+ -o ${TARGET} \
+ -lole32 -loleaut32 -luuid
+${STRIP} -x ${TARGET}
diff --git a/src/native/windows/msofficecomm/build-x86.sh b/src/native/windows/msofficecomm/build-x86.sh
new file mode 100755
index 0000000..584c711
--- /dev/null
+++ b/src/native/windows/msofficecomm/build-x86.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+CC=i686-w64-mingw32-gcc
+JAVA_HOME=$HOME/Downloads/jdk-7u4-windows-i586
+OCSDK_HOME=$HOME/Downloads/OCSDK
+WINVER=0x0501
+
+BASE_DIR=`dirname $0`
+if [ "x${BASE_DIR}" = "x" ]; then
+ BASE_DIR=.
+else
+ BASE_DIR=`cd ${BASE_DIR}/../../../../ && pwd`
+fi
+SRC_DIR=${BASE_DIR}/src/native/windows/msofficecomm
+STRIP=`echo ${CC} | sed 's/gcc/strip/'`
+TARGET=${BASE_DIR}/lib/native/windows/jmsofficecomm.dll
+
+for CXX_FILE in ${SRC_DIR}/*.cxx; do
+ ${CC} \
+ -c \
+ -D_JNI_IMPLEMENTATION_ -D_UNICODE -DUNICODE -D_WIN32_WINNT=${WINVER} -DWINVER=${WINVER} \
+ -fno-exceptions -fno-rtti \
+ -I${JAVA_HOME}/include -I${JAVA_HOME}/include/win32 -I${OCSDK_HOME} \
+ -O2 \
+ -Wall \
+ -x 'c++' \
+ ${CXX_FILE} \
+ -o ${SRC_DIR}/`basename ${CXX_FILE} .cxx`.o
+done
+${CC} \
+ -shared \
+ -Wl,--kill-at \
+ ${SRC_DIR}/*.o \
+ ${SRC_DIR}/*.res \
+ -o ${TARGET} \
+ -lole32 -loleaut32 -luuid
+${STRIP} -x ${TARGET}
diff --git a/src/native/windows/msofficecomm/msgrua.tlb b/src/native/windows/msofficecomm/msgrua.tlb
new file mode 100644
index 0000000..86e3ef9
--- /dev/null
+++ b/src/native/windows/msofficecomm/msgrua.tlb
Binary files differ