2 new revisions:

Revision: 8bf46145050f
Author:   [email protected] <[email protected]>
Date:     Thu Jun 14 02:08:27 2012
Log:      Issue 79:     Create native dll for dialogic for windows
http://code.google.com/p/jss7/source/detail?r=8bf46145050f

Revision: 635d49de73e0
Author:   [email protected] <[email protected]>
Date:     Thu Jun 14 02:09:25 2012
Log: Merge branch 'master' of https://[email protected]/p/jss7/
http://code.google.com/p/jss7/source/detail?r=635d49de73e0

==============================================================================
Revision: 8bf46145050f
Author:   [email protected] <[email protected]>
Date:     Thu Jun 14 02:08:27 2012
Log:      Issue 79:     Create native dll for dialogic for windows
http://code.google.com/p/jss7/source/detail?r=8bf46145050f

Added:
 /hardware/dialogic/native/win/pom.xml
Modified:
 /hardware/dialogic/native/pom.xml

=======================================
--- /dev/null
+++ /hardware/dialogic/native/win/pom.xml       Thu Jun 14 02:08:27 2012
@@ -0,0 +1,143 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
+       <modelVersion>4.0.0</modelVersion>
+
+       <parent>
+               <groupId>org.mobicents.protocols.ss7.hardware</groupId>
+               <artifactId>mobicents-dialogic-native</artifactId>
+               <version>2.0.0-SNAPSHOT</version>
+       </parent>
+
+       <artifactId>libmobicents-dialogic-win</artifactId>
+
+       <properties>
+ <include.dialogic>C:/workarea/mobicents/dialogic/DSI/INC</include.dialogic> + <include.dialogic.gctlib>C:/workarea/mobicents/dialogic/DSI/LIB32</include.dialogic.gctlib>
+       </properties>
+       <name>Mobicents SS7 :: Hardware :: ${pom.artifactId}</name>
+       <packaging>dll</packaging>
+
+       <dependencies>
+               <dependency>
+                       <groupId>org.mobicents.protocols.ss7.hardware</groupId>
+                       <artifactId>mobicents-dialogic</artifactId>
+                       <version>${pom.version}</version>
+               </dependency>
+       </dependencies>
+
+       <build>
+               <finalName>${artifactId}</finalName>
+
+               <testSourceDirectory>../src/test/java</testSourceDirectory>
+
+               <plugins>
+                       <plugin>
+                               <groupId>org.codehaus.mojo</groupId>
+                               <artifactId>native-maven-plugin</artifactId>
+                               <extensions>true</extensions>
+                               <configuration>
+
+                                       
<compilerProvider>generic</compilerProvider>
+
+                                         <compilerStartOptions>
+                                          <compilerStartOption>
+                                                       -Wall 
-D_JNI_IMPLEMENTATION_ -Wl,--kill-at
+                                               </compilerStartOption>
+                                         </compilerStartOptions>
+
+                                         <javahOS>win32</javahOS>
+
+
+                                       <sources>
+                                               <source>
+                                                       
<directory>../src/main/native</directory>
+                                                       <fileNames>
+                                                               
<fileName>ipc.c</fileName>
+                                                       </fileNames>
+                                               </source>
+                                               <source>
+                                                       
<directory>${include.dialogic}</directory>
+                                               </source>
+                                       </sources>
+
+                                       <linkerStartOptions>
+                                               <linkerStartOption>
+                                                       -shared 
-L${include.dialogic.gctlib}
+                                               </linkerStartOption>
+                                       </linkerStartOptions>
+                                       <linkerMiddleOptions>
+                                               <linkerMiddleOption>
+                                                       -lgctlib
+                                               </linkerMiddleOption>
+                                       </linkerMiddleOptions>
+
+                               </configuration>
+
+                               <executions>
+                                       <execution>
+                                               <id>javah</id>
+                                               <phase>generate-sources</phase>
+                                               <configuration>
+                                                       <classNames>
+                                                               <className>
+                                                                       
org.mobicents.ss7.hardware.dialogic.InterProcessCommunicator
+                                                               </className>
+                                                       </classNames>
+                                               </configuration>
+                                               <goals>
+                                                       <goal>javah</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
+
+                       <plugin>
+                               <artifactId>maven-surefire-plugin</artifactId>
+                               <configuration>
+                                       <forkMode>once</forkMode>
+                                       <environmentVariables>
+                                               <LD_LIBRARY_PATH>
+                                                       
${project.build.directory}
+                                               </LD_LIBRARY_PATH>
+                                               <systemProperties>
+                                                       <property>
+                                                               
<name>lib_schannel</name>
+                                                               <value>
+                                                                       
${project.build.directory}
+                                                               </value>
+                                                       </property>
+                                               </systemProperties>
+                                       </environmentVariables>
+                               </configuration>
+                       </plugin>
+               </plugins>
+
+       </build>
+
+       <profiles>
+               <!-- to build debug artifact, run maven install -Ddebug -->
+               <profile>
+                       <id>debug</id>
+                       <activation>
+                               <property>
+                                       <name>debug</name>
+                               </property>
+                       </activation>
+                       <properties>
+                               
<compiler.debug.options>-MDd</compiler.debug.options>
+                               
<linker.debug.options>/DEBUG</linker.debug.options>
+                               <classifier>debug</classifier>
+                       </properties>
+               </profile>
+               <profile>
+                       <id>release</id>
+                       <activation>
+                               <activeByDefault>true</activeByDefault>
+                       </activation>
+                       <properties>
+                               
<compiler.debug.options>-MD</compiler.debug.options>
+                               <linker.debug.options />
+                               <classifier />
+                       </properties>
+               </profile>
+       </profiles>
+</project>
=======================================
--- /hardware/dialogic/native/pom.xml   Tue Jun 12 00:51:35 2012
+++ /hardware/dialogic/native/pom.xml   Thu Jun 14 02:08:27 2012
@@ -1,4 +1,5 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> +<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
        <modelVersion>4.0.0</modelVersion>

        <parent>
@@ -12,7 +13,7 @@
        <packaging>pom</packaging>

        <name>Mobicents SS7 :: Hardware :: ${pom.artifactId}</name>
-
+       <!-- Note : Supports only 32 bit -->
        <properties>
                <maven.test.skip>true</maven.test.skip>
        </properties>
@@ -26,33 +27,21 @@
        </dependencies>

        <profiles>
-               <!-- We dont support other than lin, since there is no driver :) 
-->
-               <!--
-                       <profile>
-                       <id>win</id>
-                       <activation>
-                       <property>
-                       <name>platform</name>
-                       <value>win32</value>
-                       </property>
-                       </activation>
-                       <modules>
-                       <module>win</module>
-                       </modules>
-                       </profile>
-                       <profile>
-                       <id>solaris</id>
-                       <activation>
-                       <property>
-                       <name>platform</name>
-                       <value>solaris</value>
-                       </property>
-                       </activation>
-                       <modules>
-                       <module>solaris</module>
-                       </modules>
-                       </profile>
-               -->
+               <profile>
+                       <id>dialogicwin</id>
+                       <activation>
+                               <property>
+                                       <name>platform</name>
+                                       <value>win32</value>
+                               </property>
+                       </activation>
+                       <modules>
+                               <module>win</module>
+                       </modules>
+               </profile>
+ <!-- <profile> <id>solaris</id> <activation> <property> <name>platform</name> + <value>solaris</value> </property> </activation> <modules> <module>solaris</module>
+                       </modules> </profile> -->
                <profile>
                        <id>dialogiclinux</id>
                        <activation>
@@ -68,19 +57,17 @@
                <profile>
                        <id>maven-release</id>
                        <modules>
-                               <!--  this depends on dialogic files and we dont 
have it -->
+                               <!-- this depends on dialogic files and we dont 
have it -->
                                <module>linux</module>
-
+
                        </modules>
                </profile>
                <profile>
                        <id>release</id>
                        <modules>
-                               <!--  this depends on dialogic files and we 
dont have it
-                               <module>linux</module>
-                               -->
+ <!-- this depends on dialogic files and we dont have it <module>linux</module> -->
                        </modules>
-               </profile>
+               </profile>
        </profiles>

 </project>

==============================================================================
Revision: 635d49de73e0
Author:   [email protected] <[email protected]>
Date:     Thu Jun 14 02:09:25 2012
Log: Merge branch 'master' of https://[email protected]/p/jss7/
http://code.google.com/p/jss7/source/detail?r=635d49de73e0


Reply via email to