project_files/Android-build/CMakeLists.txt
changeset 6590 5f15b4026b19
parent 6589 2fa0a274a1e3
child 6591 2abf9ea19a38
equal deleted inserted replaced
6589:2fa0a274a1e3 6590:5f15b4026b19
    70                  "--target android-${ANDROID_SDK_API_LVL}"
    70                  "--target android-${ANDROID_SDK_API_LVL}"
    71                  OUTPUT_VARIABLE dontcare
    71                  OUTPUT_VARIABLE dontcare
    72                 ) 
    72                 ) 
    73 endif(ANDROID)
    73 endif(ANDROID)
    74 
    74 
    75 if(SDL_DIR_TEMP_DISABLE)
    75 exec_program(${HGCOMMAND}
    76     MESSAGE("Moving Android port of SDL to the proper directories")
    76     ARGS revert ${CMAKE_CURRENT_SOURCE_DIR}/SDL-android-project/jni/SDL/src/core/android/SDL_android.cpp
    77     set(DirsToCopy
    77     OUTPUT_VARIABLE dontcare
    78         SDL
    78 )
    79         SDL_image
       
    80         SDL_mixer
       
    81         SDL_ttf
       
    82 	jpeg
       
    83 	png
       
    84          mikmod
       
    85         ) 
       
    86     foreach(DIR ${DirsToCopy})
       
    87         exec_program( 
       
    88             ${CMAKE_COMMAND} 
       
    89             ARGS -E copy_directory 
       
    90             ${SDL_DIR}/jni/${DIR}
       
    91             ${CMAKE_CURRENT_SOURCE_DIR}/SDL-android-project/jni/${DIR}
       
    92         )
       
    93         MESSAGE(STATUS "Moved ${DIR}")
       
    94     endforeach(DIR)
       
    95     exec_program(${HGCOMMAND}
    79     exec_program(${HGCOMMAND}
    96         ARGS revert ${CMAKE_CURRENT_SOURCE_DIR}/SDL-android-project/jni/SDL/src/core/android/SDL_android.cpp
    80     ARGS revert ${CMAKE_CURRENT_SOURCE_DIR}/SDL-android-project/jni/SDL/src/main/android/SDL_android_main.cpp
    97 	)
    81     OUTPUT_VARIABLE dontcare
    98     exec_program(${HGCOMMAND}
    82 )
    99         ARGS revert ${CMAKE_CURRENT_SOURCE_DIR}/SDL-android-project/jni/SDL/src/main/android/SDL_android_main.cpp
       
   100 	)
       
   101     exec_program(${HGCOMMAND}
       
   102         ARGS revert ${CMAKE_CURRENT_SOURCE_DIR}/SDL-android-project/jni/SDL/src/video/android/SDL_androidtouch.c
       
   103         )
       
   104 
       
   105     exec_program(${HGCOMMAND}
       
   106         ARGS revert ${CMAKE_CURRENT_SOURCE_DIR}/SDL-android-project/jni/SDL/src/video/android/SDL_androidtouch.h
       
   107 	)
       
   108 endif(SDL_DIR_TEMP_DISABLE)