PageRenderTime 36ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

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

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