mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-12-26 11:17:44 +01:00
[cmake]: Change to shorter RKPLATFORM macro
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>
This commit is contained in:
parent
81759e832a
commit
b186d04390
9 changed files with 12 additions and 14 deletions
|
|
@ -31,12 +31,10 @@ if(NOT COMMAND find_host_program)
|
|||
endmacro()
|
||||
endif()
|
||||
|
||||
option(RKPLATFORM "Enable RK HW CONFIG" OFF)
|
||||
if(${CMAKE_RKPLATFORM_ENABLE} MATCHES "ON")
|
||||
option(RKPLATFORM "Enable RK HW CONFIG" ON)
|
||||
set(RKPLATFORM True)
|
||||
add_definitions(-DRKPLATFORM)
|
||||
endif()
|
||||
set(RKPLATFORM "" CACHE BOOL "Enable RK HW CONFIG")
|
||||
if (RKPLATFORM)
|
||||
ADD_DEFINITIONS(-DRKPLATFORM)
|
||||
endif(RKPLATFORM)
|
||||
|
||||
project (rk_mpp)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue