forked from Bananymous/banan-os
				
			BuildSystem: Fix meson toolchain file
sed to replace SYSROOT did not work because paths contain / also add cmake to allow cmake based library detection
This commit is contained in:
		
							parent
							
								
									21009c37b4
								
							
						
					
					
						commit
						f35a6b3922
					
				|  | @ -42,8 +42,9 @@ fi | |||
| export MESON_CROSS_FILE="$BANAN_PORT_DIR/$BANAN_ARCH-banan_os-meson.txt" | ||||
| if [ ! -f "$MESON_CROSS_FILE" ] || [ "$MESON_CROSS_FILE" -ot "$BANAN_TOOLCHAIN_DIR/meson-cross-file.in" ]; then | ||||
| 	cp "$BANAN_TOOLCHAIN_DIR/meson-cross-file.in" "$MESON_CROSS_FILE" | ||||
| 	sed -i "s/ARCH/$BANAN_ARCH/" "$MESON_CROSS_FILE" | ||||
| 	sed -i "s/SYSROOT/$BANAN_SYSROOT/" "$MESON_CROSS_FILE" | ||||
| 	sed -i "s|ARCH|$BANAN_ARCH|" "$MESON_CROSS_FILE" | ||||
| 	sed -i "s|CMAKE|$BANAN_CMAKE|" "$MESON_CROSS_FILE" | ||||
| 	sed -i "s|SYSROOT|$BANAN_SYSROOT|" "$MESON_CROSS_FILE" | ||||
| fi | ||||
| 
 | ||||
| MAKE_BUILD_TARGETS=('all') | ||||
|  |  | |||
|  | @ -11,7 +11,8 @@ ar = 'ARCH-pc-banan_os-ar' | |||
| ld = 'ARCH-pc-banan_os-ld' | ||||
| objcopy = 'ARCH-pc-banan_os-objcopy' | ||||
| strip = 'ARCH-pc-banan_os-strip' | ||||
| pkgconfig = 'pkg-config' | ||||
| pkg-config = 'pkg-config' | ||||
| cmake = 'CMAKE' | ||||
| 
 | ||||
| [properties] | ||||
| sys_root='SYSROOT' | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue