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