|
420 | 420 |
|
421 | 421 |
|
422 | 422 | echo "Copying needed header files..."
|
423 |
| - #determine the real folder name |
424 |
| - parse_original_library_folder_name=${lib}_header_files_folder |
425 |
| - library_include_folder_name=${!parse_original_library_folder_name} |
426 |
| - if [ -z $library_include_folder_name ];then |
427 |
| - library_include_folder_name=$archive_name |
428 |
| - fi |
429 |
| - |
430 |
| - |
431 |
| - #copy header files for ios & mac |
432 |
| - if [ $cfg_platform_name = "ios" ] || [ $cfg_platform_name = "mac" ];then |
433 |
| - if [ ! -d $top_dir/build/$cfg_platform_name/include/$library_include_folder_name ];then |
434 |
| - mkdir -p $top_dir/build/$cfg_platform_name/include/$library_include_folder_name |
| 423 | + parse_ignore_header_files=${lib}_ignore_header_files |
| 424 | + original_ignore_header_files=${!parse_ignore_header_files} |
| 425 | + if [ "${original_ignore_header_files}" != "yes" ];then |
| 426 | + #determine the real folder name |
| 427 | + parse_original_library_folder_name=${lib}_header_files_folder |
| 428 | + library_include_folder_name=${!parse_original_library_folder_name} |
| 429 | + if [ -z $library_include_folder_name ];then |
| 430 | + library_include_folder_name=$archive_name |
| 431 | + fi |
| 432 | + |
| 433 | + |
| 434 | + #copy header files for ios & mac |
| 435 | + if [ $cfg_platform_name = "ios" ] || [ $cfg_platform_name = "mac" ];then |
| 436 | + if [ ! -d $top_dir/build/$cfg_platform_name/include/$library_include_folder_name ];then |
| 437 | + mkdir -p $top_dir/build/$cfg_platform_name/include/$library_include_folder_name |
| 438 | + fi |
| 439 | + fi |
| 440 | + |
| 441 | + mkdir -p $cfg_platform_name/$original_arch_name/include/$library_include_folder_name |
| 442 | + copy_include_file_path=${lib}_header_files |
| 443 | + src_directory=$top_dir/contrib/$install_library_path/$arch/include/${!copy_include_file_path} |
| 444 | + echo $src_directory |
| 445 | + destination_header_path=$cfg_platform_name/$original_arch_name/include/$library_include_folder_name |
| 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 | + |
| 451 | + if [ -d "$src_directory" ];then |
| 452 | + cp -r $src_directory/* $destination_header_path |
| 453 | + else |
| 454 | + cp $src_directory $destination_header_path |
435 | 455 | fi
|
436 |
| - fi |
437 |
| - |
438 |
| - mkdir -p $cfg_platform_name/$original_arch_name/include/$library_include_folder_name |
439 |
| - copy_include_file_path=${lib}_header_files |
440 |
| - src_directory=$top_dir/contrib/$install_library_path/$arch/include/${!copy_include_file_path} |
441 |
| - echo $src_directory |
442 |
| - destination_header_path=$cfg_platform_name/$original_arch_name/include/$library_include_folder_name |
443 |
| - |
444 |
| - if [ $cfg_platform_name = "ios" ] || [ $cfg_platform_name = "mac" ];then |
445 |
| - destination_header_path=$cfg_platform_name/include/$library_include_folder_name |
446 |
| - fi |
447 |
| - |
448 |
| - if [ -d "$src_directory" ];then |
449 |
| - cp -r $src_directory/* $destination_header_path |
450 |
| - else |
451 |
| - cp $src_directory $destination_header_path |
452 | 456 | fi
|
453 | 457 |
|
454 | 458 |
|
@@ -490,4 +494,13 @@ if [ $cfg_platform_name = "ios" ] || [ $cfg_platform_name = "mac" ];then
|
490 | 494 | done
|
491 | 495 | fi
|
492 | 496 |
|
| 497 | +#check ios & mac library architecture |
| 498 | +if [ $cfg_platform_name = "ios" ] || [ $cfg_platform_name = "mac" ];then |
| 499 | + for file in `ls ${cfg_platform_name}/libs` |
| 500 | + do |
| 501 | + lipo -info ${cfg_platform_name}/libs/$file |
| 502 | + done |
| 503 | +fi |
| 504 | + |
| 505 | + |
493 | 506 | echo "done!"
|
0 commit comments