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