| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | <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/xsd/maven-4.0.0.xsd"> |
| | <modelVersion>4.0.0</modelVersion> |
| | <parent> |
| | <groupId>org.apache.bookkeeper</groupId> |
| | <artifactId>bookkeeper</artifactId> |
| | <version>4.18.0-SNAPSHOT</version> |
| | <relativePath>..</relativePath> |
| | </parent> |
| |
|
| | <artifactId>cpu-affinity</artifactId> |
| | <packaging>nar</packaging> |
| | <name>Apache BookKeeper :: CPU Affinity Library</name> |
| | <description>CPU Affinity Library</description> |
| |
|
| | <properties> |
| | <nar.runtime>dynamic</nar.runtime> |
| | </properties> |
| |
|
| | <dependencies> |
| | <dependency> |
| | <groupId>org.apache.bookkeeper</groupId> |
| | <artifactId>native-library-common</artifactId> |
| | <version>${project.parent.version}</version> |
| | </dependency> |
| | <dependency> |
| | <groupId>com.google.guava</groupId> |
| | <artifactId>guava</artifactId> |
| | </dependency> |
| | <dependency> |
| | <groupId>org.apache.commons</groupId> |
| | <artifactId>commons-lang3</artifactId> |
| | </dependency> |
| | </dependencies> |
| |
|
| | <build> |
| | <plugins> |
| | <plugin> |
| | <groupId>org.apache.maven.plugins</groupId> |
| | <artifactId>maven-compiler-plugin</artifactId> |
| | </plugin> |
| | <plugin> |
| | <groupId>com.github.maven-nar</groupId> |
| | <artifactId>nar-maven-plugin</artifactId> |
| | <extensions>true</extensions> |
| | <configuration> |
| | <skipTests>${skipTests}</skipTests> |
| | </configuration> |
| | </plugin> |
| | <plugin> |
| | <groupId>org.apache.maven.plugins</groupId> |
| | <artifactId>maven-assembly-plugin</artifactId> |
| | <configuration> |
| | <descriptors> |
| | <descriptor>src/main/assembly/assembly.xml</descriptor> |
| | </descriptors> |
| | <appendAssemblyId>false</appendAssemblyId> |
| | <tarLongFileMode>posix</tarLongFileMode> |
| | </configuration> |
| | <executions> |
| | <execution> |
| | <id>make-assembly</id> |
| | <phase>package</phase> |
| | <goals> |
| | <goal>single</goal> |
| | </goals> |
| | </execution> |
| | </executions> |
| | </plugin> |
| | <plugin> |
| | <groupId>org.apache.rat</groupId> |
| | <artifactId>apache-rat-plugin</artifactId> |
| | <configuration> |
| | <excludes> |
| | |
| | <exclude>**/src/test/resources/proc_cpuinfo.txt</exclude> |
| | </excludes> |
| | </configuration> |
| | </plugin> |
| | </plugins> |
| | </build> |
| |
|
| | <profiles> |
| | <profile> |
| | |
| | |
| | |
| | <id>jdk-without-javah</id> |
| | <activation> |
| | <jdk>[10,)</jdk> |
| | </activation> |
| | <build> |
| | <plugins> |
| | <plugin> |
| | <groupId>com.github.maven-nar</groupId> |
| | <artifactId>nar-maven-plugin</artifactId> |
| | <extensions>true</extensions> |
| | <executions> |
| | <execution> |
| | |
| | |
| | <id>default-nar-javah</id> |
| | <phase>none</phase> |
| | </execution> |
| | </executions> |
| | </plugin> |
| | <plugin> |
| | <groupId>org.apache.maven.plugins</groupId> |
| | <artifactId>maven-compiler-plugin</artifactId> |
| | <configuration> |
| | <compilerArgs> |
| | |
| | <compilerArg>-h</compilerArg> |
| | <compilerArg>${project.build.directory}/nar/javah-include</compilerArg> |
| | </compilerArgs> |
| | </configuration> |
| | </plugin> |
| | </plugins> |
| | </build> |
| | </profile> |
| | <profile> |
| | <id>mac</id> |
| | <activation> |
| | <os> |
| | <name>Mac OS X</name> |
| | </os> |
| | </activation> |
| | <build> |
| | <plugins> |
| | <plugin> |
| | <groupId>com.github.maven-nar</groupId> |
| | <artifactId>nar-maven-plugin</artifactId> |
| | <extensions>true</extensions> |
| | <configuration> |
| | <runtime>${nar.runtime}</runtime> |
| | <output>cpu-affinity</output> |
| | <libraries> |
| | <library> |
| | <type>jni</type> |
| | <narSystemPackage>org.apache.bookkeeper.utils.affinity</narSystemPackage> |
| | </library> |
| | </libraries> |
| | <cpp> |
| | <optionSet>${nar.cpp.optionSet}</optionSet> |
| | <exceptions>false</exceptions> |
| | <rtti>false</rtti> |
| | <optimize>full</optimize> |
| | </cpp> |
| | </configuration> |
| | </plugin> |
| | </plugins> |
| | </build> |
| | </profile> |
| |
|
| | <profile> |
| | <id>Linux</id> |
| | <activation> |
| | <os> |
| | <name>Linux</name> |
| | </os> |
| | </activation> |
| | <build> |
| | <plugins> |
| | <plugin> |
| | <groupId>com.github.maven-nar</groupId> |
| | <artifactId>nar-maven-plugin</artifactId> |
| | <extensions>true</extensions> |
| | <configuration> |
| | <runtime>${nar.runtime}</runtime> |
| | <output>cpu-affinity</output> |
| | <libraries> |
| | <library> |
| | <type>jni</type> |
| | <narSystemPackage>org.apache.bookkeeper.utils.affinity</narSystemPackage> |
| | </library> |
| | </libraries> |
| | <cpp> |
| | <optionSet>${nar.cpp.optionSet}</optionSet> |
| | <exceptions>false</exceptions> |
| | <rtti>false</rtti> |
| | <optimize>full</optimize> |
| | </cpp> |
| | </configuration> |
| | </plugin> |
| | </plugins> |
| | </build> |
| | </profile> |
| | <profile> |
| | <id>Windows</id> |
| | <activation> |
| | <os> |
| | <family>Windows</family> |
| | </os> |
| | </activation> |
| | <build> |
| | <plugins> |
| | <plugin> |
| | <groupId>com.github.maven-nar</groupId> |
| | <artifactId>nar-maven-plugin</artifactId> |
| | <extensions>true</extensions> |
| | <configuration> |
| | <runtime>${nar.runtime}</runtime> |
| | <output>cpu-affinity</output> |
| | <libraries> |
| | <library> |
| | <type>jni</type> |
| | <narSystemPackage>org.apache.bookkeeper.utils.affinity</narSystemPackage> |
| | </library> |
| | </libraries> |
| | <cpp> |
| | <optionSet>${nar.cpp.optionSet}</optionSet> |
| | <exceptions>false</exceptions> |
| | <rtti>false</rtti> |
| | <optimize>full</optimize> |
| | </cpp> |
| | <linker> |
| | <name>g++</name> |
| | </linker> |
| | </configuration> |
| | </plugin> |
| | </plugins> |
| | </build> |
| | </profile> |
| | </profiles> |
| |
|
| | </project> |
| |
|