~alan-griffiths/mir/knee-jerk-mir_surface_state_automatic

« back to all changes in this revision

Viewing changes to cmake/AndroidCrossCompile.cmake

  • Committer: Kevin DuBois
  • Date: 2012-11-13 01:36:29 UTC
  • mfrom: (245 trunk)
  • mto: This revision was merged to the branch mainline in revision 246.
  • Revision ID: kevin.dubois@canonical.com-20121113013629-q4496w4mp5e33auk
merge in base branch. move the demo clients to a new directory, examples/

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
set(CMAKE_SYSTEM_NAME Linux)
 
2
set(CMAKE_SYSTEM_VERSION 1)
 
3
 
 
4
set(MIR_NDK_PATH $ENV{MIR_NDK_PATH} CACHE STRING "path of mir android ndk")
 
5
 
 
6
set(CMAKE_C_COMPILER   ${MIR_NDK_PATH}/bin/arm-linux-androideabi-gcc)
 
7
set(CMAKE_CXX_COMPILER ${MIR_NDK_PATH}/bin/arm-linux-androideabi-g++)
 
8
 
 
9
# where too look to find dependencies in the target environment 
 
10
set(CMAKE_FIND_ROOT_PATH  ${MIR_NDK_PATH}/sysroot)
 
11
 
 
12
#use only the cross compile system
 
13
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
 
14
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
 
15
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
 
16