Skip to content

Commit

Permalink
Merge pull request #245 from jkloetzke/ninja-cross-compile
Browse files Browse the repository at this point in the history
devel/ninja: enable cross compilation
  • Loading branch information
jkloetzke authored Dec 20, 2024
2 parents c64b455 + a6e2b09 commit 46ad661
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions recipes/devel/ninja.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,28 @@ checkoutSCM:
digestSHA256: d00033813993116a4e14f835df813daee9916b107333d88dbb798a22f8671b1f
stripComponents: 1

buildVars: [AR, CC, CXX]
buildVars: [AR, CC, CXX, CFLAGS, CXXFLAGS, LDFLAGS]
buildToolsWeak: [python3]
buildScript: |
python3 "$1/configure.py" --bootstrap
./ninja
mkdir -p install/usr/bin
cp ninja install/usr/bin/
multiPackage:
"":
depends:
- name: devel::ninja-bootstrap
use: [tools]
tools:
target-toolchain: host-compat-toolchain

buildToolsWeak: [ninja]
buildScript: |
python3 "$1/configure.py"
ninja
mkdir -p install/usr/bin
cp ninja install/usr/bin/
bootstrap:
buildScript: |
python3 "$1/configure.py" --bootstrap
mkdir -p install/usr/bin
cp ninja install/usr/bin/
packageScript: |
installPackageTgt "$1/install/"
Expand Down

0 comments on commit 46ad661

Please sign in to comment.