PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/protocols/ss7/hardware/dialogic/native/linux/pom.xml

http://mobicents.googlecode.com/
XML | 136 lines | 119 code | 16 blank | 1 comment | 0 complexity | dcabc68e31564030e11062a913e5f9b8 MD5 | raw file
  1<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">
  2	<modelVersion>4.0.0</modelVersion>
  3
  4	<parent>
  5		<groupId>org.mobicents.protocols.ss7.hardware</groupId>
  6		<artifactId>mobicents-dialogic-native</artifactId>
  7		<version>2.0.0-SNAPSHOT</version>
  8	</parent>
  9
 10	<artifactId>libmobicents-dialogic-linux</artifactId>
 11
 12	<properties>
 13		<include.dialogic>/opt/dpklnx/INC</include.dialogic>
 14		<include.dialogic.gctlib>/opt/dpklnx/lib32</include.dialogic.gctlib>
 15	</properties>
 16	<name>Mobicents SS7 :: Hardware :: ${pom.artifactId}</name>
 17	<packaging>so</packaging>
 18
 19	<dependencies>
 20		<dependency>
 21			<groupId>org.mobicents.protocols.ss7.hardware</groupId>
 22			<artifactId>mobicents-dialogic</artifactId>
 23			<version>${pom.version}</version>
 24		</dependency>
 25	</dependencies>
 26
 27	<build>
 28		<finalName>${artifactId}</finalName>
 29
 30		<testSourceDirectory>../src/test/java</testSourceDirectory>
 31
 32		<plugins>
 33			<plugin>
 34				<groupId>org.codehaus.mojo</groupId>
 35				<artifactId>native-maven-plugin</artifactId>
 36				<extensions>true</extensions>
 37				<configuration>
 38
 39					<compilerProvider>generic</compilerProvider>
 40					<compilerStartOptions>
 41						<compilerStartOption>
 42							-fPIC -O -m32
 43						</compilerStartOption>
 44					</compilerStartOptions>
 45
 46					<javahOS>linux</javahOS>
 47
 48					<sources>
 49						<source>
 50							<directory>../src/main/native</directory>
 51							<fileNames>
 52								<fileName>ipc.c</fileName>
 53							</fileNames>
 54						</source>
 55						<source>
 56							<directory>${include.dialogic}</directory>
 57						</source>
 58					</sources>
 59
 60					<linkerStartOptions>
 61						<linkerStartOption>
 62							-shared -lc -ldl -L${include.dialogic.gctlib} -lgctlib -m32
 63						</linkerStartOption>
 64					</linkerStartOptions>
 65
 66				</configuration>
 67
 68				<executions>
 69					<execution>
 70						<id>javah</id>
 71						<phase>generate-sources</phase>
 72						<configuration>
 73							<classNames>
 74								<className>
 75									org.mobicents.ss7.hardware.dialogic.InterProcessCommunicator
 76								</className>
 77							</classNames>
 78						</configuration>
 79						<goals>
 80							<goal>javah</goal>
 81						</goals>
 82					</execution>
 83				</executions>
 84			</plugin>
 85
 86			<plugin>
 87				<artifactId>maven-surefire-plugin</artifactId>
 88				<configuration>
 89					<forkMode>once</forkMode>
 90					<environmentVariables>
 91						<LD_LIBRARY_PATH>
 92							${project.build.directory}
 93						</LD_LIBRARY_PATH>
 94						<systemProperties>
 95							<property>
 96								<name>lib_schannel</name>
 97								<value>
 98									${project.build.directory}
 99								</value>
100							</property>
101						</systemProperties>
102					</environmentVariables>
103				</configuration>
104			</plugin>
105		</plugins>
106
107	</build>
108
109	<profiles>
110		<!-- to build debug artifact, run maven install -Ddebug -->
111		<profile>
112			<id>debug</id>
113			<activation>
114				<property>
115					<name>debug</name>
116				</property>
117			</activation>
118			<properties>
119				<compiler.debug.options>-MDd</compiler.debug.options>
120				<linker.debug.options>/DEBUG</linker.debug.options>
121				<classifier>debug</classifier>
122			</properties>
123		</profile>
124		<profile>
125			<id>release</id>
126			<activation>
127				<activeByDefault>true</activeByDefault>
128			</activation>
129			<properties>
130				<compiler.debug.options>-MD</compiler.debug.options>
131				<linker.debug.options />
132				<classifier />
133			</properties>
134		</profile>
135	</profiles>
136</project>