Skip to content

Commit

Permalink
Added CHIP target
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Nov 18, 2016
1 parent 7560f36 commit b83629a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Expand Up @@ -11,6 +11,7 @@ link_directories(${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
option(PANDORA "Set to ON if targeting an OpenPandora device" ${PANDORA})
option(BCMHOST "Set to ON if targeting an RPi(2) device" ${BCMHOST})
option(ODROID "Set to ON if targeting an ODroid device" ${ODROID})
option(CHIP "Set to ON if targeting an C.H.I.P. device" ${CHIP})

option(USE_DRAWTEX "Set to ON to use the glDrawTexiOES extension" ${USE_DRAWTEX})

Expand All @@ -31,6 +32,11 @@ if(ODROID)
add_definitions(-DODROID)
endif()

if(CHIP)
add_definitions(-DCHIP)
add_definitions(-mcpu=cortex-a8 -mfpu=neon -mfloat-abi=hard -ftree-vectorize -fsingle-precision-constant -ffast-math)
endif()

if(USE_DRAWTEX)
add_definitions(-DUSE_DRAWTEX)
endif()
Expand Down

0 comments on commit b83629a

Please sign in to comment.