Swig输出行结尾

时间:2015-10-19 23:36:11

标签: swig

我使用cmake运行swig,用java连接一些c ++库。想知道是否有一个选项来指定swig生成的java输出文件的行结尾?

set(swig_interface "swig/my_swig.i")

set_source_files_properties("${swig_interface}" PROPERTIES CPLUSPLUS ON)

set(jni_output "${SWIG_WRAPPER_OUTPUT}/com/domain/group")

# Hoping theres a flag I can add here which will set the line endings
set(CMAKE_SWIG_FLAGS "-package" "com.domain.group"
                     "-I${CMAKE_CURRENT_SOURCE_DIR}/include")
set(CMAKE_SWIG_OUTDIR "${jni_output}")

swig_add_module(jni_wrapper java "${swig_interface}" ${lib_src_files})
swig_link_libraries(jni_wrapper other_lib)

0 个答案:

没有答案