mirror of
				https://github.com/nyanmisaka/mpp.git
				synced 2025-10-31 12:36:44 +08:00 
			
		
		
		
	 b186d04390
			
		
	
	b186d04390
	
	
	
		
			
			Change Android and Linux branches to use RKPLATFORM macro. RKPLATFORM is shorter and it is not a cmake variable. Change-Id: I09a6fe72e7dacedbb4b2b8e1a66b6f7ca625f019 Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
		
			
				
	
	
		
			29 lines
		
	
	
		
			561 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			561 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| # Run this from within a bash shell
 | |
| 
 | |
| set +e
 | |
| 
 | |
| MPP_PWD=`pwd`
 | |
| MPP_TOP=${MPP_PWD}/../../..
 | |
| 
 | |
| # toolchain detection
 | |
| check_cmd(){
 | |
|     "$@" >> /dev/null 2>&1
 | |
| }
 | |
| check_system_arm_linux_gcc(){
 | |
|     check_cmd arm-linux-gcc -v
 | |
| }
 | |
| 
 | |
| check_system_arm_linux_gcc
 | |
| if [ $? -eq 127 ];then
 | |
|     MPP_TOOLCHAIN=${MPP_TOP}/../prebuilts/toolschain/usr/bin
 | |
|     export PATH=$PATH:${MPP_TOOLCHAIN}
 | |
| fi
 | |
| 
 | |
| # generate Makefile
 | |
| cmake -DCMAKE_BUILD_TYPE=Release \
 | |
|       -DCMAKE_TOOLCHAIN_FILE=./arm.linux.cross.cmake \
 | |
|       -DRKPLATFORM=ON \
 | |
|       -G "Unix Makefiles" \
 | |
|       ${MPP_TOP}
 |