File tree Expand file tree Collapse file tree 2 files changed +28
-4
lines changed Expand file tree Collapse file tree 2 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 444
444
echo $src_directory
445
445
destination_header_path=$cfg_platform_name /$original_arch_name /include/$library_include_folder_name
446
446
447
- if [ $cfg_platform_name = " ios" ] || [ $cfg_platform_name = " mac" ]; then
448
- destination_header_path=$cfg_platform_name /include/$library_include_folder_name
449
- fi
450
447
451
448
if [ -d " $src_directory " ]; then
452
449
cp -r $src_directory /* $destination_header_path
453
450
else
454
451
cp $src_directory $destination_header_path
455
452
fi
453
+
454
+ if [ $cfg_platform_name = " ios" ] || [ $cfg_platform_name = " mac" ]; then
455
+ if [ " ${lib} " = " curl" ]; then
456
+ if [ " ${arch} " = " i386" ]; then
457
+ mv $destination_header_path /curlbuild.h $destination_header_path /curlbuild-32.h
458
+ fi
459
+
460
+ if [ " ${arch} " = " x86_64" ]; then
461
+ mv $destination_header_path /curlbuild.h $destination_header_path /curlbuild-64.h
462
+ fi
463
+ fi
464
+ fi
456
465
fi
457
466
458
467
485
494
486
495
done
487
496
497
+ # patch 32bit & 64bit header files for CURL
498
+ # now only iOS platform need to patch
499
+ if [ $cfg_platform_name = " ios" ]; then
500
+ if [ -d " ${cfg_platform_name} /include/curl" ]; then
501
+ cp -r ${cfg_platform_name} /i386/include/curl/ ${cfg_platform_name} /include/curl
502
+ cp -r ${cfg_platform_name} /x86_64/include/curl/ ${cfg_platform_name} /include/curl
503
+ cp ../contrib/src/curl/curlbuild.h ${cfg_platform_name} /include/curl
504
+ fi
505
+ fi
506
+
488
507
# do some cleanup work
489
508
if [ $cfg_platform_name = " ios" ] || [ $cfg_platform_name = " mac" ]; then
490
- build_arches=( " arm64 " " armv7 " " armv7s " " i386 " " x86_64 " )
509
+ build_arches=$cfg_all_supported_arches
491
510
for arch in ${build_arches[@]}
492
511
do
493
512
rm -rf $cfg_platform_name /$arch
Original file line number Diff line number Diff line change
1
+ #if defined(__LP64__ ) && __LP64__
2
+ #include "curlbuild-64.h"
3
+ #else
4
+ #include "curlbuild-32.h"
5
+ #endif
You can’t perform that action at this time.
0 commit comments