|
27 | 27 | <name>Netty/TomcatNative [BoringSSL - Static]</name> |
28 | 28 | <description> |
29 | 29 | A Mavenized fork of Tomcat Native which incorporates various patches. This artifact is statically linked |
30 | | - to BoringSSL. |
| 30 | + to BoringSSL and Apache APR. |
31 | 31 | </description> |
32 | 32 |
|
33 | 33 | <build> |
|
130 | 130 | <artifactId>maven-bundle-plugin</artifactId> |
131 | 131 | <configuration> |
132 | 132 | <instructions> |
| 133 | + <Apr-Version>${aprVersion}</Apr-Version> |
133 | 134 | <BoringSSL-Revision>${boringsslCommitSha}</BoringSSL-Revision> |
134 | 135 | <BoringSSL-Branch>${boringsslBranch}</BoringSSL-Branch> |
135 | 136 | </instructions> |
|
317 | 318 | </executions> |
318 | 319 | </plugin> |
319 | 320 |
|
320 | | - <!-- Configure the distribution statically linked against OpenSSL --> |
| 321 | + <!-- Configure the distribution statically linked against OpenSSL and APR --> |
321 | 322 | <plugin> |
322 | 323 | <groupId>org.fusesource.hawtjni</groupId> |
323 | 324 | <artifactId>hawtjni-maven-plugin</artifactId> |
|
340 | 341 | <!-- <verbose>true</verbose> --> |
341 | 342 | <configureArgs> |
342 | 343 | <configureArg>--with-ssl=no</configureArg> |
| 344 | + <configureArg>--with-apr=${aprHome}</configureArg> |
343 | 345 | <configureArg>--with-static-libs</configureArg> |
344 | 346 | <configureArg>--libdir=${project.build.directory}/native-build/target/lib</configureArg> |
345 | 347 | <configureArg>${macOsxDeploymentTarget}</configureArg> |
|
417 | 419 | </files> |
418 | 420 | <content>release 7.6</content> |
419 | 421 | </requireFilesContent> |
| 422 | + <requireProperty> |
| 423 | + <property>aprArmHome</property> |
| 424 | + <message>The folder of APR for aarch64 must be specified by hand. Please try -DaprArmHome=</message> |
| 425 | + </requireProperty> |
420 | 426 | </rules> |
421 | 427 | <ignoreCache>true</ignoreCache> |
422 | 428 | </configuration> |
|
469 | 475 | <artifactId>maven-bundle-plugin</artifactId> |
470 | 476 | <configuration> |
471 | 477 | <instructions> |
| 478 | + <Apr-Version>${aprVersion}</Apr-Version> |
472 | 479 | <BoringSSL-Revision>${boringsslCommitSha}</BoringSSL-Revision> |
473 | 480 | <BoringSSL-Branch>${boringsslBranch}</BoringSSL-Branch> |
474 | 481 | </instructions> |
|
645 | 652 | </executions> |
646 | 653 | </plugin> |
647 | 654 |
|
648 | | - <!-- Configure the distribution statically linked against OpenSSL --> |
| 655 | + <!-- Configure the distribution statically linked against OpenSSL and APR --> |
649 | 656 | <plugin> |
650 | 657 | <groupId>org.fusesource.hawtjni</groupId> |
651 | 658 | <artifactId>hawtjni-maven-plugin</artifactId> |
|
668 | 675 | <!-- <verbose>true</verbose> --> |
669 | 676 | <configureArgs> |
670 | 677 | <configureArg>--with-ssl=no</configureArg> |
| 678 | + <configureArg>--with-apr=${aprArmHome}</configureArg> |
671 | 679 | <configureArg>--with-static-libs</configureArg> |
672 | 680 | <configureArg>--libdir=${project.build.directory}/native-build/target/lib</configureArg> |
673 | 681 | <configureArg>CFLAGS=-O3 -Werror -fno-omit-frame-pointer -fvisibility=hidden -Wunused -Wno-unused-value</configureArg> |
674 | 682 | <configureArg>CPPFLAGS=-DHAVE_OPENSSL -I${boringsslSourceDir}/include</configureArg> |
675 | 683 | <configureArg>LDFLAGS=-L${boringsslHome}/ssl -L${boringsslHome}/crypto -lssl -lcrypto</configureArg> |
676 | 684 | <configureArg>--host=aarch64-linux-gnu</configureArg> |
677 | 685 | <configureArg>CC=aarch64-none-linux-gnu-gcc</configureArg> |
678 | | - <configureArg>CXX=aarch64-none-linux-gnu-g++</configureArg> |
679 | 686 | </configureArgs> |
680 | 687 | </configuration> |
681 | 688 | </execution> |
|
928 | 935 | <artifactId>maven-bundle-plugin</artifactId> |
929 | 936 | <configuration> |
930 | 937 | <instructions> |
| 938 | + <Apr-Version>${aprVersion}</Apr-Version> |
931 | 939 | <BoringSSL-Revision>${boringsslCommitSha}</BoringSSL-Revision> |
932 | 940 | <BoringSSL-Branch>${boringsslBranch}</BoringSSL-Branch> |
933 | 941 | </instructions> |
|
1063 | 1071 | </executions> |
1064 | 1072 | </plugin> |
1065 | 1073 |
|
1066 | | - <!-- Configure the distribution statically linked against OpenSSL --> |
| 1074 | + <!-- Configure the distribution statically linked against OpenSSL and APR --> |
1067 | 1075 | <plugin> |
1068 | 1076 | <groupId>org.fusesource.hawtjni</groupId> |
1069 | 1077 | <artifactId>hawtjni-maven-plugin</artifactId> |
|
1085 | 1093 | <!-- <verbose>true</verbose> --> |
1086 | 1094 | <configureArgs> |
1087 | 1095 | <configureArg>--with-ssl=no</configureArg> |
| 1096 | + <configureArg>--with-apr=${aprHome}</configureArg> |
1088 | 1097 | <configureArg>--with-static-libs</configureArg> |
1089 | 1098 | <configureArg>--libdir=${project.build.directory}/native-build/target/lib</configureArg> |
1090 | 1099 | <configureArg>--host=aarch64-apple-darwin</configureArg> |
|
1173 | 1182 | <artifactId>maven-bundle-plugin</artifactId> |
1174 | 1183 | <configuration> |
1175 | 1184 | <instructions> |
| 1185 | + <Apr-Version>${aprVersion}</Apr-Version> |
1176 | 1186 | <BoringSSL-Revision>${boringsslCommitSha}</BoringSSL-Revision> |
1177 | 1187 | <BoringSSL-Branch>${boringsslBranch}</BoringSSL-Branch> |
1178 | 1188 | </instructions> |
|
1308 | 1318 | </executions> |
1309 | 1319 | </plugin> |
1310 | 1320 |
|
1311 | | - <!-- Configure the distribution statically linked against OpenSSL --> |
| 1321 | + <!-- Configure the distribution statically linked against OpenSSL and APR --> |
1312 | 1322 | <plugin> |
1313 | 1323 | <groupId>org.fusesource.hawtjni</groupId> |
1314 | 1324 | <artifactId>hawtjni-maven-plugin</artifactId> |
|
1330 | 1340 | <!-- <verbose>true</verbose> --> |
1331 | 1341 | <configureArgs> |
1332 | 1342 | <configureArg>--with-ssl=no</configureArg> |
| 1343 | + <configureArg>--with-apr=${aprHome}</configureArg> |
1333 | 1344 | <configureArg>--with-static-libs</configureArg> |
1334 | 1345 | <configureArg>--libdir=${project.build.directory}/native-build/target/lib</configureArg> |
1335 | 1346 | <configureArg>--host=x86_64-apple-darwin</configureArg> |
|