Add mac profile

It is similar to the existing unix profile. However, it doesn't include
the -fPIC flag, which the NAR plugin already includes on OS X. It also
uses -x to accept Objective-C code even though the file extension is .c
instead of .m.
master
Graham 5 years ago
parent 4acf1e5b17
commit dba4189016
  1. 28
      pom.xml

@ -323,6 +323,34 @@
<module>misc-natives</module> <module>misc-natives</module>
</modules> </modules>
</profile> </profile>
<profile>
<id>mac</id>
<activation>
<os>
<family>mac</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.github.maven-nar</groupId>
<artifactId>nar-maven-plugin</artifactId>
<configuration>
<c>
<options>
<option>-x</option>
<option>objective-c</option>
<option>-Wall</option>
<option>-Wextra</option>
<option>-pedantic</option>
<option>-Wno-unused-parameter</option>
</options>
</c>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile> <profile>
<id>unix</id> <id>unix</id>
<activation> <activation>

Loading…
Cancel
Save