mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-02 01:32:14 +02:00
46 lines
1.2 KiB
JSON
46 lines
1.2 KiB
JSON
{
|
|
"targets": {
|
|
"lib": {
|
|
"buildenv": "xenial-amd64",
|
|
"builddeps": [
|
|
"wget", "p7zip-full", "build-essential", "git"
|
|
],
|
|
|
|
"environment": {
|
|
"DEVKITPATH": "/project/devkitA64_a6",
|
|
"DEVKITURL": "https://downloads.sourceforge.net/project/devkitpro/devkitA64/alpha6/devkitA64_a6-x86_64-linux.7z"
|
|
},
|
|
|
|
"buildcmd": [
|
|
"[ ! -d ${DEVKITPATH} ] && (rm -rf ${DEVKITPATH} && mkdir ${DEVKITPATH} && wget -O /tmp/devkita64.7z ${DEVKITURL} && cd ${DEVKITPATH} && 7z x -y /tmp/devkita64.7z) || /bin/true",
|
|
|
|
"DEVKITPRO=${DEVKITPATH} make -j${PARALLEL} install",
|
|
"git clone --depth 1 https://github.com/switchbrew/switch-examples",
|
|
"DEVKITPRO=${DEVKITPATH} make -C switch-examples/"
|
|
]
|
|
},
|
|
|
|
"docs": {
|
|
// Only invoke docs target when building from master branch
|
|
"branch": "master",
|
|
|
|
"buildenv": "xenial-amd64",
|
|
"builddeps": [
|
|
"doxygen"
|
|
],
|
|
|
|
"buildcmd": [
|
|
"cd nx", "doxygen"
|
|
],
|
|
|
|
"artifacts": [{
|
|
"source": "nx/docs/html",
|
|
"destination": {
|
|
"type": "git",
|
|
"branch": "gh-pages"
|
|
}
|
|
}]
|
|
}
|
|
}
|
|
}
|