Added CMake generated BuildConfiguration java class.
This commit is contained in:
parent
d7a9add3b4
commit
16936dc061
@ -28,6 +28,14 @@ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/project.properties.cmake
|
||||
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/ant.properties.cmake
|
||||
${CMAKE_CURRENT_BINARY_DIR}/ant.properties @ONLY)
|
||||
|
||||
# Generate a Java class with static members set to the CMake
|
||||
# configuration properties.
|
||||
set(JAVA_CFG "src/com/freerdp/freerdpcore/utils/BuildConfiguration.java")
|
||||
set(JAVA_CFG_OUT "${CMAKE_CURRENT_BINARY_DIR}/${JAVA_CFG}")
|
||||
set(JAVA_CFG_IN "${CMAKE_CURRENT_SOURCE_DIR}/${JAVA_CFG}.in")
|
||||
|
||||
CONFIGURE_FILE(${JAVA_CFG_IN} ${JAVA_CFG_OUT})
|
||||
|
||||
file(COPY res DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
if (ANDROID_SDK)
|
||||
|
@ -0,0 +1,15 @@
|
||||
package com.freerdp.freerdpcore.utils;
|
||||
|
||||
public class BuildConfiguration {
|
||||
public static final String WITH_ANDROID_DEBUG_MENU = "@WITH_ANDROID_DEBUG_MENU@";
|
||||
|
||||
public static final int FREERDP_VERSION_MAJOR = @FREERDP_VERSION_MAJOR@;
|
||||
public static final int FREERDP_VERSION_MINOR = @FREERDP_VERSION_MINOR@;
|
||||
public static final int FREERDP_VERSION_REVISION = @FREERDP_VERSION_REVISION@;
|
||||
|
||||
public static final String FREERDP_VERSION_SUFFIX = "@FREERDP_VERSION_SUFFIX@";
|
||||
public static final String FREERDP_API_VERSION = "@FREERDP_API_VERSION@";
|
||||
public static final String FREERDP_VERSION = "@FREERDP_VERSION@";
|
||||
public static final String FREERDP_VERSION_FULL = "@FREERDP_VERSION_FULL@";
|
||||
public static final String GIT_REVISION = "@GIT_REVISION@";
|
||||
}
|
Loading…
Reference in New Issue
Block a user