<commit_before>SET(KIT JavaJNI)
SET(UKIT JAVAJNI)


INCLUDE(${CMAKE_ROOT}/Modules/FindJava.cmake)
INCLUDE(${CMAKE_ROOT}/Modules/FindJNI.cmake)
INCLUDE(${CMAKE_ROOT}/Modules/FindSWIG.cmake)

IF(JAVA_INCLUDE_PATH)

# Run command to generate OpenSimJNI_wrap.cxx
SET(swig_generated_file_fullname ${OpenSim_SOURCE_DIR}/OpenSim/Java/OpenSimJNI/OpenSimJNI_wrap.cxx)
SET(swig_interface_file_fullname ${OpenSim_SOURCE_DIR}/OpenSim/Java/swig/javaWrapOpenSim.i)

ADD_CUSTOM_TARGET(JavaWrap ${SWIG_EXECUTABLE} -v -c++ -java -package org.opensim.modeling -I${OpenSim_SOURCE_DIR} -I${OpenSim_SOURCE_DIR}/OpenSim/Resources/Swig/ -o ${swig_generated_file_fullname} -outdir ${OpenSim_SOURCE_DIR}/OpenSim/Applications/Gui/opensim/modeling/src/org/opensim/modeling ${swig_interface_file_fullname})

FILE(GLOB SOURCE_FILES ${swig_generated_file_fullname} Hooks/*.cpp)

INCLUDE_DIRECTORIES(${OpenSim_SOURCE_DIR} 
					${OpenSim_SOURCE_DIR}/Vendors 
					${XERCES_INCLUDE_DIR}
					${JAVA_INCLUDE_PATH}
					${JAVA_INCLUDE_PATH2}
)

SET(EXPORT_MACRO RD${UKIT}_EXPORTS)

LINK_LIBRARIES( osimCommon osimSimulation osimAnalyses osimTools
		debug xerces-c_2D optimized  xerces-c_2)

ADD_LIBRARY(osim${KIT} SHARED ${SOURCE_FILES}) 

SET_TARGET_PROPERTIES(osim${KIT} PROPERTIES
   DEFINE_SYMBOL ${EXPORT_MACRO}
)

ADD_DEPENDENCIES(osim${KIT} JavaWrap osimTools)

INSTALL_TARGETS(/lib/ RUNTIME_DIRECTORY /lib rd${KIT})


ENDIF (JAVA_INCLUDE_PATH)<commit_msg>Fix prefix of library osimJavaJNI in install target<commit_after>SET(KIT JavaJNI)
SET(UKIT JAVAJNI)


INCLUDE(${CMAKE_ROOT}/Modules/FindJava.cmake)
INCLUDE(${CMAKE_ROOT}/Modules/FindJNI.cmake)
INCLUDE(${CMAKE_ROOT}/Modules/FindSWIG.cmake)

IF(JAVA_INCLUDE_PATH)

# Run command to generate OpenSimJNI_wrap.cxx
SET(swig_generated_file_fullname ${OpenSim_SOURCE_DIR}/OpenSim/Java/OpenSimJNI/OpenSimJNI_wrap.cxx)
SET(swig_interface_file_fullname ${OpenSim_SOURCE_DIR}/OpenSim/Java/swig/javaWrapOpenSim.i)

ADD_CUSTOM_TARGET(JavaWrap ${SWIG_EXECUTABLE} -v -c++ -java -package org.opensim.modeling -I${OpenSim_SOURCE_DIR} -I${OpenSim_SOURCE_DIR}/OpenSim/Resources/Swig/ -o ${swig_generated_file_fullname} -outdir ${OpenSim_SOURCE_DIR}/OpenSim/Applications/Gui/opensim/modeling/src/org/opensim/modeling ${swig_interface_file_fullname})

FILE(GLOB SOURCE_FILES ${swig_generated_file_fullname} Hooks/*.cpp)

INCLUDE_DIRECTORIES(${OpenSim_SOURCE_DIR} 
					${OpenSim_SOURCE_DIR}/Vendors 
					${XERCES_INCLUDE_DIR}
					${JAVA_INCLUDE_PATH}
					${JAVA_INCLUDE_PATH2}
)

SET(EXPORT_MACRO OSIM${UKIT}_EXPORTS)

LINK_LIBRARIES( osimCommon osimSimulation osimAnalyses osimTools
		debug xerces-c_2D optimized  xerces-c_2)

ADD_LIBRARY(osim${KIT} SHARED ${SOURCE_FILES}) 

SET_TARGET_PROPERTIES(osim${KIT} PROPERTIES
   DEFINE_SYMBOL ${EXPORT_MACRO}
)

ADD_DEPENDENCIES(osim${KIT} JavaWrap osimTools)

INSTALL_TARGETS(/lib/ RUNTIME_DIRECTORY /lib osim${KIT})


ENDIF (JAVA_INCLUDE_PATH)
{'fraction_non_alphanumeric': 0.11448275862068966, 'fraction_numerical': 0.0020689655172413794, 'mean_word_length': 7.633928571428571, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '3089821', 'n_tokens_mistral': 1263, 'n_tokens_neox': 1142, 'n_words': 140}