GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — netty/codec-native-quic/pom.xml at 4.2 · Raghuvardhan-Reddy78/netty Expand file tree/ Copy pathpom.xmlMore file actions 1441 lines (1394 loc) · 68.3 KB / Copy pathpom.xmlFile metadata and controls1441 lines (1394 loc) · 68.3 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 <?xml version="1.0" encoding="UTF-8"?> <!-- ~ Copyright 2021 The Netty Project ~ ~ The Netty Project licenses this file to you under the Apache License, ~ version 2.0 (the "License"); you may not use this file except in compliance ~ with the License. You may obtain a copy of the License at: ~ ~ https://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT ~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the ~ License for the specific language governing permissions and limitations ~ under the License. --> <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 https://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>io.netty</groupId> <artifactId>netty-parent</artifactId> <version>4.2.22.Final-SNAPSHOT</version> </parent> <artifactId>netty-codec-native-quic</artifactId> <packaging>${packaging.type}</packaging> <name>Netty/Codec/Native/Quic</name> <properties> <javaModuleNameClassifier>${os.detected.name}.${os.detected.arch}</javaModuleNameClassifier> <javaModuleNameWithClassifier>${javaModuleName}.${javaModuleNameClassifier}</javaModuleNameWithClassifier> <fallbackModuleName>io.netty.codec.quic</fallbackModuleName> <javaModuleName>${fallbackModuleName}.${javaModuleNameClassifier}</javaModuleName> <fragmentHost>io.netty.codec-classes-quic</fragmentHost> <logging.config>${project.basedir}/../codec-native-quic/src/test/resources/logback-test.xml</logging.config> <nativeSourceDirectory>${project.basedir}/src/main/c</nativeSourceDirectory> <fallbackOutputDirectory>${project.build.directory}/fallback-classes</fallbackOutputDirectory> <nativeLibOnlyDir>${project.build.directory}/native-lib-only</nativeLibOnlyDir> <skipTests>false</skipTests> <packaging.type>jar</packaging.type> <jni.classifier>${os.detected.name}-${os.detected.arch}</jni.classifier> <jniLibPrefix>netty_quiche42</jniLibPrefix> <jniLibName>${jniLibPrefix}_${os.detected.name}_${os.detected.arch}</jniLibName> <jniUtilIncludeDir>${project.build.directory}/netty-jni-util/</jniUtilIncludeDir> <boringsslSourceDir>${project.build.directory}/boringssl-source</boringsslSourceDir> <boringsslBuildDir>${boringsslSourceDir}/build-target</boringsslBuildDir> <boringsslHomeDir>${project.build.directory}/boringssl</boringsslHomeDir> <boringsslHomeBuildDir>${boringsslHomeDir}/build</boringsslHomeBuildDir> <boringsslHomeIncludeDir>${boringsslHomeDir}/include</boringsslHomeIncludeDir> <boringsslRepository>https://boringssl.googlesource.com/boringssl</boringsslRepository> <!-- Lets use what we use in netty-tcnative-boringssl-static. Bumped forward from 0226f30467f540a3f62ef48d453f93927da199b6 (2025-09-07) to d03dbc3e5d7de44183ff17018af22323af650fbc (2026-05-12): boring 5.x (see quicheBoringVersionReplacement below) unconditionally calls SSL_get_signature_algorithm_used, which BoringSSL only added upstream on 2026-05-12. --> <boringsslBranch>main</boringsslBranch> <boringsslCommitSha>d03dbc3e5d7de44183ff17018af22323af650fbc</boringsslCommitSha> <quicheSourceDir>${project.build.directory}/quiche-source</quicheSourceDir> <quicheBuildDir>${quicheSourceDir}/target/release</quicheBuildDir> <quicheHomeDir>${project.build.directory}/quiche</quicheHomeDir> <quicheHomeBuildDir>${quicheHomeDir}/build</quicheHomeBuildDir> <quicheHomeIncludeDir>${quicheHomeDir}/quiche/include</quicheHomeIncludeDir> <quicheRepository>https://github.com/cloudflare/quiche</quicheRepository> <quicheBranch>master</quicheBranch> <quicheCommitSha>be47c5011215b9f13bad06bd7627d3ae49888a19</quicheCommitSha> <generatedSourcesDir>${project.build.directory}/generated-sources</generatedSourcesDir> <templateDir>${project.build.directory}/template</templateDir> <cargoTarget /> <cflags /> <ldflags /> <extraCmakeFlags /> <extraCflags /> <extraCxxflags /> <extraLdflags /> <extraConfigureArg /> <extraConfigureArg2 /> <macosxDeploymentTarget /> <bundleNativeCode /> <crossCompile /> <!-- The native library links quiche, BoringSSL and the Rust standard library, whose glibc symbol versions we don't control, so it is exempt from the check-native-glibc-versions profile in the parent pom. --> <skipNativeGlibcVersionsCheck>true</skipNativeGlibcVersionsCheck> </properties> <profiles> <profile> <id>oss-fuzz</id> <properties> <cflags>-std=c99 ${env.CFLAGS} -I${quicheHomeIncludeDir} -I${boringsslHomeIncludeDir}</cflags> </properties> </profile> <profile> <id>windows</id> <activation> <os> <family>windows</family> </os> </activation> <properties> <boringsslHomeBuildDir>${boringsslHomeDir}/build/RelWithDebInfo</boringsslHomeBuildDir> <quicheTarget>x86_64-pc-windows-msvc</quicheTarget> <cargoTarget>--target=${quicheTarget}</cargoTarget> <quicheBuildDir>${quicheSourceDir}/target/${quicheTarget}/release</quicheBuildDir> <cmakeAsmFlags /> <cmakeCFlags /> <!-- Disable one warning to be able to build on windows --> <cmakeCxxFlags>/wd4091</cmakeCxxFlags> <libssl>ssl.lib</libssl> <libcrypto>crypto.lib</libcrypto> <libquiche>quiche.lib</libquiche> <bundleNativeCode>META-INF/native/${jniLibName}.dll;osname=win32;processor=${os.detected.arch}</bundleNativeCode> </properties> </profile> <profile> <id>mac</id> <activation> <os> <family>mac</family> </os> </activation> <properties> <!-- We need 11 as minimum to compile quiche and boringssl --> <macosxDeploymentTarget>11</macosxDeploymentTarget> <!-- On *nix, add ASM flags to disable executable stack --> <cmakeAsmFlags>-Wa,--noexecstack -mmacosx-version-min=${macosxDeploymentTarget}</cmakeAsmFlags> <extraCflags>-mmacosx-version-min=${macosxDeploymentTarget}</extraCflags> <cmakeCFlags>${extraCflags} -O3 -fno-omit-frame-pointer</cmakeCFlags> <!-- We need to define __STDC_CONSTANT_MACROS and __STDC_FORMAT_MACROS when building boringssl on centos 6 --> <cmakeCxxFlags>${extraCxxflags} -O3 -fno-omit-frame-pointer -Wno-error=range-loop-analysis</cmakeCxxFlags> <libssl>libssl.a</libssl> <libcrypto>libcrypto.a</libcrypto> <libquiche>libquiche.a</libquiche> <extraLdflags>-platform_version,macos,${macosxDeploymentTarget},${macosxDeploymentTarget} -mmacosx-version-min=${macosxDeploymentTarget}</extraLdflags> <extraConfigureArg>MACOSX_DEPLOYMENT_TARGET=${macosxDeploymentTarget}</extraConfigureArg> <bundleNativeCode>META-INF/native/lib${jniLibName}.jnilib;osname=macos;osname=macosx;processor=${os.detected.arch}</bundleNativeCode> </properties> </profile> <profile> <id>mac-m1-cross-compile</id> <properties> <jniLibName>${jniLibPrefix}_osx_aarch_64</jniLibName> <jni.classifier>osx-aarch_64</jni.classifier> <javaModuleNameClassifier>osx.aarch_64</javaModuleNameClassifier> <macosxDeploymentTarget>11</macosxDeploymentTarget> <extraCflags>-target arm64-apple-macos11</extraCflags> <extraCxxflags>-target arm64-apple-macos11</extraCxxflags> <!-- On *nix, add ASM flags to disable executable stack --> <cmakeAsmFlags>-Wa,--noexecstack -target arm64-apple-macos11</cmakeAsmFlags> <extraCmakeFlags>-DCMAKE_SYSTEM_PROCESSOR=arm64 -DCMAKE_OSX_ARCHITECTURES=arm64</extraCmakeFlags> <cmakeCFlags>${extraCflags} -O3 -fno-omit-frame-pointer</cmakeCFlags> <!-- We need to define __STDC_CONSTANT_MACROS and __STDC_FORMAT_MACROS when building boringssl on centos 6 --> <cmakeCxxFlags>${extraCxxflags} -O3 -fno-omit-frame-pointer -Wno-error=range-loop-analysis</cmakeCxxFlags> <libssl>libssl.a</libssl> <libcrypto>libcrypto.a</libcrypto> <libquiche>libquiche.a</libquiche> <extraLdflags>-arch arm64 -platform_version,macos,${macosxDeploymentTarget},${macosxDeploymentTarget}</extraLdflags> <extraConfigureArg>--host=aarch64-apple-darwin</extraConfigureArg> <extraConfigureArg2>MACOSX_DEPLOYMENT_TARGET=${macosxDeploymentTarget}</extraConfigureArg2> <bundleNativeCode>META-INF/native/lib${jniLibName}.jnilib;osname=macos;osname=macosx;processor=aarch64</bundleNativeCode> <!-- Don't run tests as we can't load the aarch64 lib on a x86_64 system --> <skipTests>true</skipTests> <crossCompile>mac</crossCompile> <quicheTarget>aarch64-apple-darwin</quicheTarget> <cargoTarget>--target=${quicheTarget}</cargoTarget> <quicheBuildDir>${quicheSourceDir}/target/${quicheTarget}/release</quicheBuildDir> </properties> </profile> <profile> <id>mac-intel-cross-compile</id> <properties> <jniLibName>${jniLibPrefix}_osx_x86_64</jniLibName> <jni.classifier>osx-x86_64</jni.classifier> <javaModuleNameClassifier>osx.x86_64</javaModuleNameClassifier> <macosxDeploymentTarget>11</macosxDeploymentTarget> <extraCflags>-target x86_64-apple-macos11 -mmacosx-version-min=${macosxDeploymentTarget}</extraCflags> <extraCxxflags>-target x86_64-apple-macos11</extraCxxflags> <!-- On *nix, add ASM flags to disable executable stack --> <cmakeAsmFlags>-Wa,--noexecstack -target x86_64-apple-macos11 -mmacosx-version-min=${macosxDeploymentTarget}</cmakeAsmFlags> <extraCmakeFlags>-DCMAKE_SYSTEM_PROCESSOR=x86_64 -DCMAKE_OSX_ARCHITECTURES=x86_64</extraCmakeFlags> <cmakeCFlags>${extraCflags} -O3 -fno-omit-frame-pointer</cmakeCFlags> <!-- We need to define __STDC_CONSTANT_MACROS and __STDC_FORMAT_MACROS when building boringssl on centos 6 --> <cmakeCxxFlags>${extraCxxflags} -O3 -fno-omit-frame-pointer -Wno-error=range-loop-analysis</cmakeCxxFlags> <libssl>libssl.a</libssl> <libcrypto>libcrypto.a</libcrypto> <libquiche>libquiche.a</libquiche> <extraLdflags>-arch x86_64 -platform_version,macos,${macosxDeploymentTarget},${macosxDeploymentTarget} -mmacosx-version-min=${macosxDeploymentTarget}</extraLdflags> <extraConfigureArg>--host=x86_64-apple-darwin</extraConfigureArg> <extraConfigureArg2>MACOSX_DEPLOYMENT_TARGET=${macosxDeploymentTarget}</extraConfigureArg2> <bundleNativeCode>META-INF/native/lib${jniLibName}.jnilib;osname=macos;osname=macosx;processor=x86_64</bundleNativeCode> <!-- Don't run tests as we can't load the x86_64 lib on a aarch64 system --> <skipTests>true</skipTests> <crossCompile>mac</crossCompile> <quicheTarget>x86_64-apple-darwin</quicheTarget> <cargoTarget>--target=${quicheTarget}</cargoTarget> <quicheBuildDir>${quicheSourceDir}/target/${quicheTarget}/release</quicheBuildDir> </properties> </profile> <profile> <id>linux</id> <activation> <os> <family>linux</family> </os> <property> <name>!android</name> </property> </activation> <properties> <extraCflags>-O3 -fno-omit-frame-pointer</extraCflags> <extraCxxflags>-O3 -fno-omit-frame-pointer</extraCxxflags> <!-- On *nix, add ASM flags to disable executable stack --> <cmakeAsmFlags>-Wa,--noexecstack</cmakeAsmFlags> <cmakeCFlags>${extraCflags}</cmakeCFlags> <!-- We need to define __STDC_CONSTANT_MACROS and __STDC_FORMAT_MACROS when building boringssl on centos 6 --> <cmakeCxxFlags>${extraCxxflags} -Wno-error=maybe-uninitialized -Wno-error=shadow -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS</cmakeCxxFlags> <libssl>libssl.a</libssl> <libcrypto>libcrypto.a</libcrypto> <libquiche>libquiche.a</libquiche> <!-- The libgcc archives must come *after* libstdc++.a and libquiche.a: those are what pull in the _Unwind_* symbols, and libgcc_eh.a is what defines them. Linking them statically is what keeps libgcc_s.so.1 out of DT_NEEDED - `gcc_s.` is not one of the names musl reserves, so on Alpine that entry is a real file lookup, and it fails on any image without the `libgcc` package. Alpine JDK images disagree about shipping it: eclipse-temurin does, amazoncorretto and a good number of vendor images do not, so the dependency is not safe, merely invisible on some bases. NOTE: spell this as `-l:` and never `-static-libgcc`. GNU libtool links the shared library via archive_cmds, which expands only $libobjs $deplibs $compiler_flags; `-l*` is parsed into deplibs, but `-static-lib*` falls into func_mode_link's catch-all `-* | +*)` branch and reaches only the *program* link path, so gcc never sees it. That is also why the -static-libstdc++ that used to sit here was doing nothing. `grep dependency_libs target/native-build/lib${jniLibName}.la` shows what survived. --> <extraLdflags>-l:libstdc++.a -l:libgcc.a -l:libgcc_eh.a -Wl,--strip-debug -Wl,--exclude-libs,ALL -Wl,-lrt</extraLdflags> <bundleNativeCode>META-INF/native/lib${jniLibName}.so;osname=linux;processor=${os.detected.arch}</bundleNativeCode> </properties> <dependencies> <dependency> <groupId>${project.groupId}</groupId> <artifactId>netty-transport-native-epoll</artifactId> <version>${project.version}</version> <classifier>${jni.classifier}</classifier> <scope>test</scope> </dependency> </dependencies> </profile> <profile> <id>android-armeabi-v7a</id> <activation> <os> <family>linux</family> </os> <property> <name>android</name> </property> </activation> <properties> <!-- https://developer.android.com/ndk/guides/other_build_systems --> <!-- https://github.com/android/ndk/issues/1324 --> <androidAbi>armeabi-v7a</androidAbi> <androidTriple>armv7a-linux-androideabi</androidTriple> <quicheTarget>armv7-linux-androideabi</quicheTarget> </properties> </profile> <profile> <id>android-arm64-v8a</id> <properties> <androidAbi>arm64-v8a</androidAbi> <androidTriple>aarch64-linux-android</androidTriple> <quicheTarget>aarch64-linux-android</quicheTarget> </properties> </profile> <profile> <id>android-x86</id> <properties> <androidAbi>x86</androidAbi> <androidTriple>i686-linux-android</androidTriple> <quicheTarget>i686-linux-android</quicheTarget> </properties> </profile> <profile> <id>android-x86_64</id> <properties> <androidAbi>x86_64</androidAbi> <androidTriple>x86_64-linux-android</androidTriple> <quicheTarget>x86_64-linux-android</quicheTarget> </properties> </profile> <profile> <id>android</id> <activation> <os> <family>linux</family> </os> <property> <name>android</name> </property> </activation> <properties> <packaging.type>aar</packaging.type> <skipTests>true</skipTests> <platform>android</platform> <androidNdkVersion>21</androidNdkVersion> <androidMinSdkVersion>21</androidMinSdkVersion> <cargoTarget>--target=${quicheTarget}</cargoTarget> <skipIteration>false</skipIteration> <nativeLibOnlyDir>${project.build.directory}/native-lib-only/${androidAbi}</nativeLibOnlyDir> <quicheBuildDir>${quicheSourceDir}/target/${quicheTarget}/release</quicheBuildDir> <extraCflags>-O3 -fno-omit-frame-pointer</extraCflags> <extraCxxflags>-O3 -fno-omit-frame-pointer</extraCxxflags> <!-- On *nix, add ASM flags to disable executable stack --> <cmakeAsmFlags>-Wa,--noexecstack</cmakeAsmFlags> <cmakeCFlags>${extraCflags}</cmakeCFlags> <!-- We need to define __STDC_CONSTANT_MACROS and __STDC_FORMAT_MACROS when building boringssl on centos 6 --> <cmakeCxxFlags>${extraCxxflags} -Wno-error=shadow -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS</cmakeCxxFlags> <libssl>libssl.a</libssl> <libcrypto>libcrypto.a</libcrypto> <libquiche>libquiche.a</libquiche> <!-- https://developer.android.com/ndk/guides/other_build_systems --> <jniLibName>netty_quiche</jniLibName> <jni.classifier>${platform}</jni.classifier> <javaModuleNameClassifier>android</javaModuleNameClassifier> <cflags>-std=c99 -Werror -fno-omit-frame-pointer -fvisibility=hidden -Wunused -Wno-unused-value -O3 -I${quicheHomeIncludeDir} -I${boringsslHomeIncludeDir}</cflags> <ldflags>-L${quicheHomeBuildDir} -lquiche -L${boringsslHomeBuildDir} -lssl -lcrypto</ldflags> <bundleNativeCode>META-INF/native/${jniLibName}.dll;osname=android;processor=${androidAbi}</bundleNativeCode> <ndkToolchain>${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64</ndkToolchain> <extraLdflags>-Wl,-soname=${jniLibName}.so -Wl,--build-id=sha1 -Wl,--strip-debug -Wl,--exclude-libs,ALL -lm</extraLdflags> <extraConfigureArg>--host=${androidTriple}</extraConfigureArg> <boringsslBuildDir>${boringsslSourceDir}/build/${androidAbi}</boringsslBuildDir> <boringsslHomeDir>${project.build.directory}/boringssl/${androidAbi}</boringsslHomeDir> <quicheHomeDir>${project.build.directory}/quiche/${androidAbi}</quicheHomeDir> <hawtjniBuildDir>${project.build.directory}/native-build/${androidAbi}</hawtjniBuildDir> </properties> <build> <plugins> <plugin> <groupId>com.soebes.maven.plugins</groupId> <artifactId>iterator-maven-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> <goal>invoker</goal> </goals> <configuration> <itemsWithProperties> <itemWithProperty> <name>arm64-v8a</name> <properties> <android>${android}</android> <skipIteration>true</skipIteration> </properties> </itemWithProperty> <itemWithProperty> <name>x86</name> <properties> <android>${android}</android> <skipIteration>true</skipIteration> </properties> </itemWithProperty> <itemWithProperty> <name>x86_64</name> <properties> <android>${android}</android> <skipIteration>true</skipIteration> </properties> </itemWithProperty> </itemsWithProperties> <baseDirectory>${project.basedir}</baseDirectory> <goals> <goal>package</goal> </goals> <profiles>android-@item@,android</profiles> <skip>${skipIteration}</skip> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.fusesource.hawtjni</groupId> <artifactId>hawtjni-maven-plugin</artifactId> <executions> <execution> <id>generate-native-lib</id> <configuration> <configureArgs> <configureArg>${extraConfigureArg}</configureArg> <configureArg>${extraConfigureArg2}</configureArg> <configureArg>CFLAGS=${cflags}</configureArg> <configureArg>LDFLAGS=${ldflags} ${extraLdflags}</configureArg> <configureArg>--libdir=${hawtjniBuildDir}/native-build/target/lib</configureArg> <configureArg>TOOLCHAIN=${ndkToolchain}</configureArg> <configureArg>TARGET=${androidTriple}</configureArg> <configureArg>API=${androidMinSdkVersion}</configureArg> <configureArg>AR=${ndkToolchain}/bin/llvm-ar</configureArg> <configureArg>CC=${ndkToolchain}/bin/${androidTriple}${androidMinSdkVersion}-clang</configureArg> <configureArg>AS=${ndkToolchain}/bin/${androidTriple}${androidMinSdkVersion}-clang</configureArg> <configureArg>CXX=${ndkToolchain}/bin/${androidTriple}${androidMinSdkVersion}-clang++</configureArg> <configureArg>LD=${ndkToolchain}/bin/ld</configureArg> <configureArg>RANLIB=${ndkToolchain}/bin/llvm-ranlib</configureArg> <configureArg>STRIP=${ndkToolchain}/bin/llvm-strip</configureArg> </configureArgs> <buildDirectory>${hawtjniBuildDir}</buildDirectory> </configuration> <goals> <goal>generate</goal> <goal>build</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>io.github.dmlloyd.module-info</groupId> <artifactId>module-info</artifactId> <executions> <execution> <id>module-info</id> </execution> <execution> <id>fallback-module-info</id> <phase>process-classes</phase> <configuration> <moduleName>${fallbackModuleName}</moduleName> <outputDirectory>${fallbackOutputDirectory}/META-INF/versions/11/</outputDirectory> </configuration> <goals> <goal>generate</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-jar-plugin</artifactId> <executions> <execution> <id>native-jar</id> <phase>none</phase> </execution> </executions> </plugin> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <executions> <execution> <id>generate-manifest</id> <phase>none</phase> </execution> </executions> </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId> <!-- Copy the native lib that was generated and the license material for attribution --> <executions> <execution> <id>copy-android-native-lib</id> <phase>initialize</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <!-- Add the ant tasks from ant-contrib --> <taskdef resource="net/sf/antcontrib/antcontrib.properties" /> <filter token="JAVA_MODULE_NAME" value="${javaModuleNameWithClassifier}" /> <filter token="MIN_SDK_VERSION" value="${androidMinSdkVersion}" /> <copy file="src/main/AndroidManifest.xml" todir="${project.build.directory}/android-build/" filtering="true" /> <!-- Create an empty MANIFEST.MF file --> <touch file="${project.build.outputDirectory}/META-INF/MANIFEST.MF" mkdirs="true" /> </target> </configuration> </execution> <!-- Copy the native lib that was generated and the license material for attribution --> <execution> <id>copy-native-lib-and-license</id> <phase>none</phase> </execution> <!-- Copy the native android lib that was generated and the license material for attribution --> <execution> <id>copy-android-native-libs</id> <phase>process-test-resources</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <!-- Add the ant tasks from ant-contrib --> <taskdef resource="net/sf/antcontrib/antcontrib.properties" /> <copy todir="${project.build.directory}/android-build/native-libs/${androidAbi}" includeEmptyDirs="false"> <zipfileset dir="${nativeLibOnlyDir}/META-INF/native" /> <regexpmapper handledirsep="yes" from="^(?:[^/]+/)*([^/]+)$" to="\1" /> </copy> </target> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>linux-aarch64</id> <properties> <extraCflags>-O3 -fno-omit-frame-pointer</extraCflags> <extraCxxflags>-O3 -fno-omit-frame-pointer</extraCxxflags> <!-- On *nix, add ASM flags to disable executable stack --> <cmakeAsmFlags>-Wa,--noexecstack</cmakeAsmFlags> <cmakeCFlags>${extraCflags}</cmakeCFlags> <!-- We need to define __STDC_CONSTANT_MACROS and __STDC_FORMAT_MACROS when building boringssl on centos 6 --> <cmakeCxxFlags>${extraCxxflags} -Wno-error=maybe-uninitialized -Wno-error=shadow -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS</cmakeCxxFlags> <libssl>libssl.a</libssl> <libcrypto>libcrypto.a</libcrypto> <libquiche>libquiche.a</libquiche> <!-- Same static unwinder as the `linux` profile above; see the note there. --> <extraLdflags>-l:libstdc++.a -l:libgcc.a -l:libgcc_eh.a -Wl,--strip-debug -Wl,--exclude-libs,ALL</extraLdflags> <bundleNativeCode>META-INF/native/lib${jniLibName}.so;osname=linux;processor=aarch64</bundleNativeCode> <jniLibName>${jniLibPrefix}_linux_aarch_64</jniLibName> <jni.classifier>linux-aarch_64</jni.classifier> <javaModuleNameClassifier>linux.aarch_64</javaModuleNameClassifier> <extraConfigureArg>--host=aarch64-linux-gnu</extraConfigureArg> <extraConfigureArg2>CC=aarch64-none-linux-gnu-gcc</extraConfigureArg2> <extraCmakeFlags>-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DCMAKE_C_COMPILER=aarch64-none-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-none-linux-gnu-g++</extraCmakeFlags> <!-- Don't run tests as we can't load the aarch64 lib on a x86_64 system --> <skipTests>true</skipTests> <crossCompile>linux</crossCompile> <quicheTarget>aarch64-unknown-linux-gnu</quicheTarget> <cargoTarget>--target=${quicheTarget}</cargoTarget> <quicheBuildDir>${quicheSourceDir}/target/${quicheTarget}/release</quicheBuildDir> </properties> </profile> <profile> <id>leak</id> <properties> <test.argLine>-Dio.netty.leakDetectionLevel=paranoid -Dio.netty.leakDetection.targetRecords=32</test.argLine> </properties> </profile> <!-- Build with unsafe disabled which also means the memory address cant be accessed--> <profile> <id>noUnsafe</id> <properties> <test.argLine>-Dio.netty.noUnsafe=true</test.argLine> </properties> </profile> <!-- Profile related to native-image --> <!-- ./mvnw -Pnative-image-agent -pl codec-native-quic test --> <profile> <id>native-image-agent</id> <dependencies> <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcpkix-jdk18on</artifactId> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>17</source> <target>17</target> </configuration> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <excludes> <exclude>io.netty.handler.codec.quic.QuicChannelEchoTest</exclude> </excludes> </configuration> </plugin> <plugin> <groupId>org.graalvm.buildtools</groupId> <artifactId>native-maven-plugin</artifactId> <version>${native.maven.plugin.version}</version> <dependencies> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-utils</artifactId> <version>4.0.3</version> </dependency> </dependencies> <extensions>true</extensions> <executions> <execution> <id>test-native</id> <goals> <goal>test</goal> </goals> <phase>test</phase> </execution> </executions> <configuration> <skipNativeTests>true</skipNativeTests> <metadataRepository> <enabled>true</enabled> </metadataRepository> <agent> <enabled>true</enabled> <defaultMode>Conditional</defaultMode> <modes> <conditional> <userCodeFilterPath>${project.basedir}/src/test/resources/netty-filter.json</userCodeFilterPath> <extraFilterPath>${project.basedir}/src/test/resources/test-class-filter.json</extraFilterPath> <parallel>true</parallel> </conditional> </modes> <options> <builtinCallerFilter>true</builtinCallerFilter> <builtinHeuristicFilter>true</builtinHeuristicFilter> <enableExperimentalPredefinedClasses>false</enableExperimentalPredefinedClasses> <enableExperimentalUnsafeAllocationTracing>false</enableExperimentalUnsafeAllocationTracing> <trackReflectionMetadata>true</trackReflectionMetadata> </options> <metadataCopy> <disabledStages> <stage>main</stage> </disabledStages> <merge>true</merge> </metadataCopy> </agent> </configuration> </plugin> </plugins> </build> </profile> </profiles> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>flatten-maven-plugin</artifactId> <configuration> <flattenDependencyMode>direct</flattenDependencyMode> <embedBuildProfileDependencies>true</embedBuildProfileDependencies> <flattenMode>ossrh</flattenMode> </configuration> <executions> <!-- enable flattening --> <execution> <id>flatten</id> <phase>process-resources</phase> <goals> <goal>flatten</goal> </goals> </execution> <!-- ensure proper cleanup --> <execution> <id>flatten.clean</id> <phase>clean</phase> <goals> <goal>clean</goal> </goals> </execution> </executions> </plugin> <!-- Also include c files in source jar --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <phase>generate-sources</phase> <goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>${nativeSourceDirectory}</source> </sources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <!-- unpack netty-jni-util files --> <execution> <id>unpack</id> <phase>generate-sources</phase> <goals> <goal>unpack-dependencies</goal> </goals> <configuration> <includeGroupIds>io.netty</includeGroupIds> <includeArtifactIds>netty-jni-util</includeArtifactIds> <classifier>sources</classifier> <outputDirectory>${jniUtilIncludeDir}</outputDirectory> <includes>**.h,**.c</includes> <overWriteReleases>false</overWriteReleases> <overWriteSnapshots>true</overWriteSnapshots> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <!-- Build the BoringSSL static libs --> <execution> <id>build-boringssl</id> <phase>generate-sources</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <!-- Add the ant tasks from ant-contrib --> <taskdef resource="net/sf/antcontrib/antcontrib.properties" /> <property environment="env" /> <if> <available file="${boringsslHomeDir}" /> <then> <echo message="BoringSSL was already build, skipping the build step." /> </then> <else> <if> <available file="${boringsslSourceDir}" /> <then> <echo message="BoringSSL was already cloned, skipping the clone step." /> </then> <else> <echo message="Clone BoringSSL" /> <exec executable="git" failonerror="true" dir="${project.build.directory}" resolveexecutable="true"> <arg value="clone" /> <arg value="--branch" /> <arg value="${boringsslBranch}" /> <arg value="--single-branch" /> <arg value="${boringsslRepository}" /> <arg value="${boringsslSourceDir}" /> </exec> </else> </if> <echo message="Building BoringSSL" /> <!-- Use the known SHA of the commit --> <exec executable="git" failonerror="true" dir="${boringsslSourceDir}" resolveexecutable="true"> <arg value="checkout" /> <arg value="${boringsslCommitSha}" /> </exec> <mkdir dir="${boringsslBuildDir}" /> <if> <equals arg1="${platform}" arg2="android" /> <then> <!-- https://boringssl.googlesource.com/boringssl/+/HEAD/BUILDING.md#building-for-android --> <exec executable="cmake" failonerror="true" dir="${boringsslBuildDir}" resolveexecutable="true"> <arg value="-DANDROID_ABI=${androidAbi}" /> <arg value="-DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake" /> <arg value="-DANDROID_NATIVE_API_LEVEL=${androidNdkVersion}" /> <arg value="-DCMAKE_POSITION_INDEPENDENT_CODE=TRUE" /> <arg value="-DCMAKE_BUILD_TYPE=Release" /> <arg value="-DCMAKE_ASM_FLAGS=${cmakeAsmFlags}" /> <arg value="-DCMAKE_C_FLAGS_RELEASE=${cmakeCFlags}" /> <arg value="-DCMAKE_CXX_FLAGS_RELEASE=${cmakeCxxFlags}" /> <arg value="-GNinja" /> <arg value="${boringsslSourceDir}" /> </exec> </then> <else> <exec executable="cmake" failonerror="true" dir="${boringsslBuildDir}" resolveexecutable="true"> <env key="MACOSX_DEPLOYMENT_TARGET" value="${macosxDeploymentTarget}" /> <arg value="-DCMAKE_POSITION_INDEPENDENT_CODE=TRUE" /> <arg value="-DCMAKE_BUILD_TYPE=Release" /> <arg value="-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded" /> <arg value="-DCMAKE_ASM_FLAGS=${cmakeAsmFlags}" /> <arg value="-DCMAKE_C_FLAGS_RELEASE=${cmakeCFlags}" /> <arg value="-DCMAKE_CXX_FLAGS_RELEASE=${cmakeCxxFlags}" /> <arg value="-DCMAKE_CXX_FLAGS_RELEASE=${cmakeCxxFlags}" /> <arg line="${extraCmakeFlags}" /> <arg value="-GNinja" /> <arg value="${boringsslSourceDir}" /> </exec> </else> </if> <if> <!-- may be called ninja-build or ninja --> <!-- See https://github.com/netty/netty-tcnative/issues/475 --> <available file="ninja-build" filepath="${PATH}" /> <then> <property name="ninjaExecutable" value="ninja-build" /> </then> <else> <property name="ninjaExecutable" value="ninja" /> </else> </if> <exec executable="${ninjaExecutable}" failonerror="true" dir="${boringsslBuildDir}" resolveexecutable="true"> <arg value="crypto" /> <arg value="ssl" /> </exec> <!-- Only copy the libs and header files we need --> <mkdir dir="${boringsslHomeBuildDir}" /> <copy file="${boringsslBuildDir}/${libssl}" todir="${boringsslHomeBuildDir}" verbose="true" /> <copy file="${boringsslBuildDir}/${libcrypto}" todir="${boringsslHomeBuildDir}" verbose="true" /> <copy todir="${boringsslHomeIncludeDir}" verbose="true"> <fileset dir="${boringsslSourceDir}/include" /> </copy> <!-- Delete boringssl source directory after build to free up space --> <delete dir="${boringsslSourceDir}" failonerror="false" /> </else> </if> </target> </configuration> </execution> <!-- Build the Quiche static lib --> <execution> <id>build-quiche</id> <phase>generate-sources</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <!-- Add the ant tasks from ant-contrib --> <taskdef resource="net/sf/antcontrib/antcontrib.properties" /> <property environment="env" /> <if> <available file="${quicheHomeDir}" /> <then> <echo message="Quiche was already build, skipping the build step." /> </then> <else> <if> <available file="${quicheSourceDir}" /> <then> <echo message="Quiche was already cloned, skipping the clone step." /> </then> <else> <echo message="Clone Quiche" /> <exec executable="git" failonerror="true" dir="${project.build.directory}" resolveexecutable="true"> <arg value="clone" /> <arg value="--branch" /> <arg value="${quicheBranch}" /> <arg value="--single-branch" /> <arg value="${quicheRepository}" /> <arg value="${quicheSourceDir}" /> </exec> <!-- Use the known SHA of the commit --> <exec executable="git" failonerror="true" dir="${quicheSourceDir}" resolveexecutable="true"> <arg value="checkout" /> <arg value="${quicheCommitSha}" /> </exec> </else> </if> <echo message="Building Quiche" /> <if> <equals arg1="${platform}" arg2="android" /> <then> <exec executable="cargo" failonerror="true" dir="${quicheSourceDir}" resolveexecutable="true"> <arg line="ndk ${cargoTarget} --platform ${androidNdkVersion} -- build -p quiche --features "ffi qlog custom-client-dcid" --release" /> <env key="CFLAGS" value="${extraCflags}" /> <env key="CXXFLAGS" value="${extraCxxflags}" /> <env key="BORING_BSSL_PATH" value="${boringsslHomeBuildDir}" /> <env key="BORING_BSSL_INCLUDE_PATH" value="${boringsslHomeIncludeDir}" /> </exec> </then> <else> <if> <equals arg1="${os.detected.name}" arg2="windows" /> <then> <exec executable="cargo" failonerror="true" dir="${quicheSourceDir}" resolveexecutable="true"> <arg line="build -p quiche --features "ffi qlog custom-client-dcid" --release" /> <arg value="${cargoTarget}" /> <!-- See https://github.com/cloudflare/quiche/blob/0.7.0/src/build.rs#L73 --> <env key="DEBUG" value="true" /> <env key="OPT_LEVEL" value="3" /> <env key="BORING_BSSL_PATH" value="${boringsslHomeBuildDir}" /> <env key="BORING_BSSL_INCLUDE_PATH" value="${boringsslHomeIncludeDir}" /> </exec> </then> <elseif> <equals arg1="${crossCompile}" arg2="linux" /> <then> <exec executable="cargo" failonerror="true" dir="${quicheSourceDir}" resolveexecutable="true"> <arg line="build -p quiche --features "ffi qlog custom-client-dcid" --release" /> <arg value="${cargoTarget}" /> <env key="BORING_BSSL_PATH" value="${boringsslHomeBuildDir}" /> <env key="BORING_BSSL_INCLUDE_PATH" value="${boringsslHomeIncludeDir}" /> <!-- Lets enable frame-pointers so we can profile better --> <env key="RUSTFLAGS" value="-Cforce-frame-pointers=yes" /> <env key="TARGET_CC" value="aarch64-none-linux-gnu-gcc" /> </exec> </then> </elseif> <elseif> <equals arg1="${crossCompile}" arg2="mac" /> <then> <exec executable="cargo" failonerror="true" dir="${quicheSourceDir}" resolveexecutable="true"> <arg line="build -p quiche --features "ffi qlog custom-client-dcid" --release" /> <env key="CFLAGS" value="${extraCflags}" /> <env key="CXXFLAGS" value="${extraCxxflags}" /> <arg value="${cargoTarget}" /> <env key="BORING_BSSL_PATH" value="${boringsslHomeBuildDir}" /> <env key="BORING_BSSL_INCLUDE_PATH" value="${boringsslHomeIncludeDir}" /> <!-- Lets enable frame-pointers so we can profile better --> <env key="RUSTFLAGS" value="-Cforce-frame-pointers=yes" /> <env key="MACOSX_DEPLOYMENT_TARGET" value="${macosxDeploymentTarget}" /> </exec> </then> </elseif> <else> <exec executable="cargo" failonerror="true" dir="${quicheSourceDir}" resolveexecutable="true"> <arg line="build -p quiche --features "ffi qlog custom-client-dcid" --release" /> <env key="CFLAGS" value="${extraCflags}" /> <env key="CXXFLAGS" value="${extraCxxflags}" /> <env key="BORING_BSSL_PATH" value="${boringsslHomeBuildDir}" /> <env key="BORING_BSSL_INCLUDE_PATH" value="${boringsslHomeIncludeDir}" /> <!-- Lets enable frame-pointers so we can profile better --> <env key="RUSTFLAGS" value="-Cforce-frame-pointers=yes" /> <env key="MACOSX_DEPLOYMENT_TARGET" value="${macosxDeploymentTarget}" /> </exec> </else> </if> </else> </if> <!-- Only copy the libs and header files we need --> <mkdir dir="${quicheHomeDir}" /> <copy file="${quicheBuildDir}/${libquiche}" todir="${quicheHomeBuildDir}/" /> <copy todir="${quicheHomeIncludeDir}"> <fileset dir="${quicheSourceDir}/quiche/include" /> </copy> <!-- Delete quiche source directory after build to free up space --> <delete dir="${quicheSourceDir}" failonerror="false" /> </else> </if> </target> </configuration> </execution> <execution> <id>copy-src</id> <phase>generate-sources</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <!-- Copy all of the c code --> <delete dir="${generatedSourcesDir}" quiet="true" /> <copy todir="${generatedSourcesDir}/c"> <fileset dir="${project.basedir}/src/main/c" /> </copy> <copy todir="${generatedSourcesDir}/c"> <fileset dir="${jniUtilIncludeDir}" /> </copy> </target> </configuration> </execution> <execution> <!-- Adjust our template and copy it over so it can be used when compiling on windows --> <id>setup-template</id> <phase>generate-sources</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <!-- Add the ant tasks from ant-contrib --> <taskdef resource="net/sf/antcontrib/antcontrib.properties" /> <property environment="env" /> <!-- Convert the paths to windows format --> <pathconvert property="boringsslHomeIncludeWindowsDir" targetos="windows"> <path location="${boringsslHomeIncludeDir}" /> </pathconvert> <pathconvert property="quicheHomeIncludeWindowsDir" targetos="windows"> <path location="${quicheHomeIncludeDir}" /> </pathconvert> <pathconvert property="boringsslHomeBuildWindowsDir" targetos="windows"> <path location="${boringsslHomeBuildDir}" /> </pathconvert> <pathconvert property="quicheHomeBuildWindowsDir" targetos="windows"> <path location="${quicheHomeBuildDir}" /> </pathconvert> <!-- Copy custom.m4 to fix building library without version-suffix on Android --> <if> <equals arg1="${platform}" arg2="android" /> <then> |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |