Explicitly specify encoding for javac and javadoc.
This commit is contained in:
parent
cfe5c4a43b
commit
3edf14b64e
@ -59,13 +59,13 @@ set(JAVA_SOURCE_PATH "${TD_API_JAVA_PATH}/${TD_API_JAVA_PACKAGE}")
|
|||||||
get_filename_component(JAVA_OUTPUT_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin REALPATH BASE_DIR "${CMAKE_CURRENT_BINARY_DIR}")
|
get_filename_component(JAVA_OUTPUT_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin REALPATH BASE_DIR "${CMAKE_CURRENT_BINARY_DIR}")
|
||||||
file(MAKE_DIRECTORY ${JAVA_OUTPUT_DIRECTORY})
|
file(MAKE_DIRECTORY ${JAVA_OUTPUT_DIRECTORY})
|
||||||
add_custom_target(build_java
|
add_custom_target(build_java
|
||||||
COMMAND ${Java_JAVAC_EXECUTABLE} -d ${JAVA_OUTPUT_DIRECTORY} ${JAVA_SOURCE_PATH}/example/Example.java ${JAVA_SOURCE_PATH}/Client.java ${JAVA_SOURCE_PATH}/Log.java ${JAVA_SOURCE_PATH}/TdApi.java
|
COMMAND ${Java_JAVAC_EXECUTABLE} -encoding UTF-8 -d ${JAVA_OUTPUT_DIRECTORY} ${JAVA_SOURCE_PATH}/example/Example.java ${JAVA_SOURCE_PATH}/Client.java ${JAVA_SOURCE_PATH}/Log.java ${JAVA_SOURCE_PATH}/TdApi.java
|
||||||
COMMENT "Building Java code"
|
COMMENT "Building Java code"
|
||||||
DEPENDS td_generate_java_api
|
DEPENDS td_generate_java_api
|
||||||
)
|
)
|
||||||
|
|
||||||
add_custom_target(generate_javadoc
|
add_custom_target(generate_javadoc
|
||||||
COMMAND ${Java_JAVADOC_EXECUTABLE} -d ${JAVA_OUTPUT_DIRECTORY}/../docs org.drinkless.tdlib
|
COMMAND ${Java_JAVADOC_EXECUTABLE} -encoding UTF-8 -d ${JAVA_OUTPUT_DIRECTORY}/../docs org.drinkless.tdlib
|
||||||
WORKING_DIRECTORY ${TD_API_JAVA_PATH}
|
WORKING_DIRECTORY ${TD_API_JAVA_PATH}
|
||||||
COMMENT "Generating Javadoc documentation"
|
COMMENT "Generating Javadoc documentation"
|
||||||
DEPENDS td_generate_java_api
|
DEPENDS td_generate_java_api
|
||||||
|
Loading…
Reference in New Issue
Block a user