Skip to content

Commit 58b4397

Browse files
authored
Merge pull request #95 from d3m3vilurr/split-db
Use build.py of vita-headers
2 parents 9ed7e21 + d90fe60 commit 58b4397

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
sudo apt-get install -y software-properties-common
1919
sudo add-apt-repository ppa:george-edison55/cmake-3.x
2020
sudo apt-get update
21-
sudo apt-get install -y cmake cmake-data git build-essential autoconf texinfo bison flex pkg-config
21+
sudo apt-get install -y cmake cmake-data git build-essential autoconf texinfo bison flex pkg-config python
2222
- name: Build
2323
run: |
2424
git config --global user.email "builds@travis-ci.com"
@@ -37,6 +37,7 @@ jobs:
3737
runs-on: macos-10.15
3838
steps:
3939
- uses: actions/checkout@v2
40+
- uses: actions/setup-python@v2
4041
- name: Build
4142
run: |
4243
git config --global user.email "builds@travis-ci.com"
@@ -62,7 +63,7 @@ jobs:
6263
sudo apt-get install -y software-properties-common
6364
sudo add-apt-repository ppa:george-edison55/cmake-3.x
6465
sudo apt-get update
65-
sudo apt-get install -y cmake cmake-data git build-essential autoconf texinfo bison flex pkg-config g++-mingw-w64
66+
sudo apt-get install -y cmake cmake-data git build-essential autoconf texinfo bison flex pkg-config g++-mingw-w64 python
6667
- name: Build
6768
run: |
6869
git config --global user.email "builds@travis-ci.com"

CMakeLists.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)