<commit_before>#-------------------------------------------------------------------
# This file is part of the CMake build system for OGRE
#     (Object-oriented Graphics Rendering Engine)
# For the latest info, see http://www.ogre3d.org/
#
# The contents of this file are placed in the public domain. Feel
# free to make use of it in any way you like.
#-------------------------------------------------------------------

# Include the CreateAndroidProj macro to create a basic android setup
# and add_static_libs macro to define additional target static libs
include(AndroidMacros)

if(ANDROID)
    # Setup create_android_proj macro requirements
    SET(ANDROID_MOD_NAME "OgreJNI")
    SET(JNI_PATH ".")
    SET(JNI_SRC_FILES "OgreActivityJNI.cpp")
    
    SET(NDKOUT "${CMAKE_BINARY_DIR}/${ANDROID_MOD_NAME}")
    
    SET(PKG_NAME "org.ogre.jni")
    
    # Set this variable to false if no java code will be present (google android:hasCode for more info)
    SET(HAS_CODE "true")
    
    SET(MAIN_ACTIVITY "org.ogre3d.android.MainActivity")
    SET(HEADERS "")
    SET(SAMPLE_LDLIBS "")
    
    # Copy and create resource files
    file(MAKE_DIRECTORY "${NDKOUT}/src/org")
    file(MAKE_DIRECTORY "${NDKOUT}/src/org/ogre3d")
	file(MAKE_DIRECTORY "${NDKOUT}/src/org/ogre3d/android")	
	file(COPY "${JNI_PATH}/OgreActivityJNI.java" DESTINATION "${NDKOUT}/src/org/ogre3d/android")
	file(COPY "${JNI_PATH}/MainActivity.java" DESTINATION "${NDKOUT}/src/org/ogre3d/android")
	file(COPY "${JNI_PATH}/OgreActivityJNI.cpp" DESTINATION "${NDKOUT}/jni")
	
    copy_assets_to_android_proj()
        
    # Create CMake target
    file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/dummyJNI.cpp "int x = 23;")
    ADD_LIBRARY(OgreJNIDummy MODULE ${CMAKE_CURRENT_BINARY_DIR}/dummyJNI.cpp)
    
    set(JNI_PATH "${NDKOUT}/jni")
    create_android_proj(OgreJNIDummy)
endif()<commit_msg>Android: toolchain does not like MODULE target, use SHARED<commit_after>#-------------------------------------------------------------------
# This file is part of the CMake build system for OGRE
#     (Object-oriented Graphics Rendering Engine)
# For the latest info, see http://www.ogre3d.org/
#
# The contents of this file are placed in the public domain. Feel
# free to make use of it in any way you like.
#-------------------------------------------------------------------

# Include the CreateAndroidProj macro to create a basic android setup
# and add_static_libs macro to define additional target static libs
include(AndroidMacros)

if(ANDROID)
    # Setup create_android_proj macro requirements
    SET(ANDROID_MOD_NAME "OgreJNI")
    SET(JNI_PATH ".")
    SET(JNI_SRC_FILES "OgreActivityJNI.cpp")
    
    SET(NDKOUT "${CMAKE_BINARY_DIR}/${ANDROID_MOD_NAME}")
    
    SET(PKG_NAME "org.ogre.jni")
    
    # Set this variable to false if no java code will be present (google android:hasCode for more info)
    SET(HAS_CODE "true")
    
    SET(MAIN_ACTIVITY "org.ogre3d.android.MainActivity")
    SET(HEADERS "")
    SET(SAMPLE_LDLIBS "")
    
    # Copy and create resource files
    file(MAKE_DIRECTORY "${NDKOUT}/src/org")
    file(MAKE_DIRECTORY "${NDKOUT}/src/org/ogre3d")
	file(MAKE_DIRECTORY "${NDKOUT}/src/org/ogre3d/android")	
	file(COPY "${JNI_PATH}/OgreActivityJNI.java" DESTINATION "${NDKOUT}/src/org/ogre3d/android")
	file(COPY "${JNI_PATH}/MainActivity.java" DESTINATION "${NDKOUT}/src/org/ogre3d/android")
	file(COPY "${JNI_PATH}/OgreActivityJNI.cpp" DESTINATION "${NDKOUT}/jni")
	
    copy_assets_to_android_proj()
        
    # Create CMake target
    file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/dummyJNI.cpp "int x = 23;")
    ADD_LIBRARY(OgreJNIDummy SHARED ${CMAKE_CURRENT_BINARY_DIR}/dummyJNI.cpp)
    
    set(JNI_PATH "${NDKOUT}/jni")
    create_android_proj(OgreJNIDummy)
endif()
{'fraction_non_alphanumeric': 0.1768599417527138, 'fraction_numerical': 0.004236166269526079, 'mean_word_length': 2.997883597883598, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6697933', 'n_tokens_mistral': 1292, 'n_tokens_neox': 1249, 'n_words': 289}