Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commit923ce72
committed
Simplify version checks for freetype and libpng.
Currently, setupext.py replicates a lot of work done by the compiler tocheck whether header files are present, and whether freetype and libpnghave sufficiently recent versions.Instead, we can just add a small stub source file at the top of theextension sources which just tries to include the header and checks theversion macros. If the header is not found, compilation willimmediately abort with `foo.h: No such file or directory`; if theversion is too old, we can emit an appropriate error message (`#pragmamessage` is supported by all major compilers and allows expanding ofmacros in the error message).1 parent9e7650e commit923ce72
3 files changed
+28
-73
lines changedLines changed: 10 additions & 73 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
814 | 814 |
| |
815 | 815 |
| |
816 | 816 |
| |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
817 | 824 |
| |
818 | 825 |
| |
819 | 826 |
| |
| |||
825 | 832 |
| |
826 | 833 |
| |
827 | 834 |
| |
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 | 835 |
| |
| 836 | + | |
881 | 837 |
| |
882 | 838 |
| |
883 | 839 |
| |
| |||
1058 | 1014 |
| |
1059 | 1015 |
| |
1060 | 1016 |
| |
1061 |
| - | |
1062 |
| - | |
1063 |
| - | |
1064 |
| - | |
1065 |
| - | |
1066 |
| - | |
1067 |
| - | |
1068 |
| - | |
1069 |
| - | |
1070 |
| - | |
1071 |
| - | |
1072 |
| - | |
1073 |
| - | |
1074 |
| - | |
1075 |
| - | |
1076 |
| - | |
1077 |
| - | |
1078 |
| - | |
1079 |
| - | |
1080 |
| - | |
1081 | 1017 |
| |
1082 | 1018 |
| |
| 1019 | + | |
1083 | 1020 |
| |
1084 |
| - | |
| 1021 | + | |
1085 | 1022 |
| |
1086 | 1023 |
| |
1087 | 1024 |
| |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + |
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + |
0 commit comments
Comments
(0)