@@ -493,11 +493,13 @@ ExternalProject_add(vita-headers
493493 GIT_REPOSITORY https://github.com/vitasdk/vita-headers
494494 GIT_TAG ${HEADERS_TAG}
495495 ${GIT_SHALLOW_SUPPORT}
496- # TODO: vita-libs-gen should generate a proper makefile so this can be simplified
497- CONFIGURE_COMMAND ${vita_libs_gen_command} <SOURCE_DIR >/db.yml <BINARY_DIR >
498- BUILD_COMMAND $(MAKE) ARCH=${binutils_prefix}
496+ CONFIGURE_COMMAND ""
497+ BUILD_COMMAND VITA_LIBS_GEN=${vita_libs_gen_command}
498+ ARCH=${binutils_prefix}
499+ BYPASS_INSTALL=1
500+ python <SOURCE_DIR >/build.py <BINARY_DIR >
499501 # Copy the generated .a files to the install directory
500- INSTALL_COMMAND ${CMAKE_COMMAND} -DGLOB_PATTERN=<BINARY_DIR >/*a
502+ INSTALL_COMMAND ${CMAKE_COMMAND} -DGLOB_PATTERN=<BINARY_DIR >/*/*/* a
501503 -DINSTALL_DIR=${CMAKE_INSTALL_PREFIX} /${target_arch} /lib
502504 -P ${CMAKE_SOURCE_DIR} /cmake/install_files.cmake
503505 # Copy the include headers to the installation directory
@@ -507,8 +509,8 @@ ExternalProject_add(vita-headers
507509 COMMAND ${CMAKE_COMMAND} -E make_directory ${toolchain_build_install_dir} /${target_arch} /include
508510 COMMAND ${CMAKE_COMMAND} -E copy_directory <SOURCE_DIR >/include ${toolchain_build_install_dir} /${target_arch} /include
509511 # Copy the yml database to the installation directory
510- COMMAND ${CMAKE_COMMAND} -DGLOB_PATTERN=<SOURCE_DIR >/db.yml -DINSTALL_DIR=${CMAKE_INSTALL_PREFIX} /share
511- -P ${CMAKE_SOURCE_DIR} /cmake/install_files.cmake
512+ # COMMAND ${CMAKE_COMMAND} -DGLOB_PATTERN=<SOURCE_DIR>/db.yml -DINSTALL_DIR=${CMAKE_INSTALL_PREFIX}/share
513+ # -P ${CMAKE_SOURCE_DIR}/cmake/install_files.cmake
512514 # Save the commit id for tracking purposes
513515 COMMAND ${GIT_EXECUTABLE} -C <SOURCE_DIR > rev-parse HEAD > ${CMAKE_BINARY_DIR} /vita-headers-version.txt
514516 ${UPDATE_DISCONNECTED_SUPPORT}
0 commit comments