Skip to content

Commit

Permalink
Fixed duplicated symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
akallabeth committed Mar 3, 2022
1 parent 9b08f44 commit d1f8c00
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 36 deletions.
4 changes: 2 additions & 2 deletions include/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config/config.h.in ${CMAKE_CURRENT_BI
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config/buildflags.h.in ${CMAKE_CURRENT_BINARY_DIR}/freerdp/buildflags.h)


install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/freerdp
DESTINATION ${FREERDP_INCLUDE_DIR}
FILES_MATCHING PATTERN "*.h")

install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/freerdp
DESTINATION ${FREERDP_INCLUDE_DIR}
FILES_MATCHING PATTERN "*.h")
12 changes: 6 additions & 6 deletions include/config/buildflags.h.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#ifndef FREERDP_BUILD_FLAGS_H
#define FREERDP_BUILD_FLAGS_H

#define CFLAGS "${CMAKE_C_FLAGS}"
#define COMPILER_ID "${CMAKE_C_COMPILER_ID}"
#define COMPILER_VERSION "${CMAKE_C_COMPILER_VERSION}"
#define TARGET_ARCH "${TARGET_ARCH}"
#define BUILD_CONFIG "${FREERDP_BUILD_CONFIG}"
#define BUILD_TYPE "${CMAKE_BUILD_TYPE}"
#define FREERDP_CFLAGS "${CMAKE_C_FLAGS}"
#define FREERDP_COMPILER_ID "${CMAKE_C_COMPILER_ID}"
#define FREERDP_COMPILER_VERSION "${CMAKE_C_COMPILER_VERSION}"
#define FREERDP_TARGET_ARCH "${TARGET_ARCH}"
#define FREERDP_BUILD_CONFIG "${FREERDP_BUILD_CONFIG}"
#define FREERDP_BUILD_TYPE "${CMAKE_BUILD_TYPE}"

#endif /* FREERDP_BUILD_FLAGS_H */
10 changes: 5 additions & 5 deletions libfreerdp/core/freerdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,11 +588,11 @@ const char* freerdp_get_version_string(void)
const char* freerdp_get_build_config(void)
{
static const char build_config[] =
"Build configuration: " BUILD_CONFIG "\n"
"Build type: " BUILD_TYPE "\n"
"CFLAGS: " CFLAGS "\n"
"Compiler: " COMPILER_ID ", " COMPILER_VERSION "\n"
"Target architecture: " TARGET_ARCH "\n";
"Build configuration: " FREERDP_BUILD_CONFIG "\n"
"Build type: " FREERDP_BUILD_TYPE "\n"
"CFLAGS: " FREERDP_CFLAGS "\n"
"Compiler: " FREERDP_COMPILER_ID ", " FREERDP_COMPILER_VERSION "\n"
"Target architecture: " FREERDP_TARGET_ARCH "\n";
return build_config;
}

Expand Down
12 changes: 6 additions & 6 deletions rdtk/templates/buildflags.h.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#ifndef RDTK_BUILD_FLAGS_H
#define RDTK_BUILD_FLAGS_H

#define CFLAGS "${CMAKE_C_FLAGS}"
#define COMPILER_ID "${CMAKE_C_COMPILER_ID}"
#define COMPILER_VERSION "${CMAKE_C_COMPILER_VERSION}"
#define TARGET_ARCH "${TARGET_ARCH}"
#define BUILD_CONFIG "${RDTK_BUILD_CONFIG}"
#define BUILD_TYPE "${CMAKE_BUILD_TYPE}"
#define RDTK_CFLAGS "${CMAKE_C_FLAGS}"
#define RDTK_COMPILER_ID "${CMAKE_C_COMPILER_ID}"
#define RDTK_COMPILER_VERSION "${CMAKE_C_COMPILER_VERSION}"
#define RDTK_TARGET_ARCH "${TARGET_ARCH}"
#define RDTK_BUILD_CONFIG "${RDTK_BUILD_CONFIG}"
#define RDTK_BUILD_TYPE "${CMAKE_BUILD_TYPE}"

#endif /* RDTK_BUILD_FLAGS_H */
12 changes: 6 additions & 6 deletions uwac/templates/buildflags.h.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#ifndef UWAC_BUILD_FLAGS_H
#define UWAC_BUILD_FLAGS_H

#define CFLAGS "${CMAKE_C_FLAGS}"
#define COMPILER_ID "${CMAKE_C_COMPILER_ID}"
#define COMPILER_VERSION "${CMAKE_C_COMPILER_VERSION}"
#define TARGET_ARCH "${TARGET_ARCH}"
#define BUILD_CONFIG "${UWAC_BUILD_CONFIG}"
#define BUILD_TYPE "${CMAKE_BUILD_TYPE}"
#define UWAC_CFLAGS "${CMAKE_C_FLAGS}"
#define UWAC_COMPILER_ID "${CMAKE_C_COMPILER_ID}"
#define UWAC_COMPILER_VERSION "${CMAKE_C_COMPILER_VERSION}"
#define UWAC_TARGET_ARCH "${TARGET_ARCH}"
#define UWAC_BUILD_CONFIG "${UWAC_BUILD_CONFIG}"
#define UWAC_BUILD_TYPE "${CMAKE_BUILD_TYPE}"

#endif /* UWAC_BUILD_FLAGS_H */
12 changes: 6 additions & 6 deletions winpr/include/config/buildflags.h.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#ifndef WINPR_BUILD_FLAGS_H
#define WINPR_BUILD_FLAGS_H

#define CFLAGS "${CMAKE_C_FLAGS}"
#define COMPILER_ID "${CMAKE_C_COMPILER_ID}"
#define COMPILER_VERSION "${CMAKE_C_COMPILER_VERSION}"
#define TARGET_ARCH "${TARGET_ARCH}"
#define BUILD_CONFIG "${WINPR_BUILD_CONFIG}"
#define BUILD_TYPE "${CMAKE_BUILD_TYPE}"
#define WINPR_CFLAGS "${CMAKE_C_FLAGS}"
#define WINPR_COMPILER_ID "${CMAKE_C_COMPILER_ID}"
#define WINPR_COMPILER_VERSION "${CMAKE_C_COMPILER_VERSION}"
#define WINPR_TARGET_ARCH "${TARGET_ARCH}"
#define WINPR_BUILD_CONFIG "${WINPR_BUILD_CONFIG}"
#define WINPR_BUILD_TYPE "${CMAKE_BUILD_TYPE}"

#endif /* WINPR_BUILD_FLAGS_H */
10 changes: 5 additions & 5 deletions winpr/libwinpr/utils/winpr.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ const char* winpr_get_build_revision(void)
const char* winpr_get_build_config(void)
{
static const char build_config[] =
"Build configuration: " BUILD_CONFIG "\n"
"Build type: " BUILD_TYPE "\n"
"CFLAGS: " CFLAGS "\n"
"Compiler: " COMPILER_ID ", " COMPILER_VERSION "\n"
"Target architecture: " TARGET_ARCH "\n";
"Build configuration: " WINPR_BUILD_CONFIG "\n"
"Build type: " WINPR_BUILD_TYPE "\n"
"CFLAGS: " WINPR_CFLAGS "\n"
"Compiler: " WINPR_COMPILER_ID ", " WINPR_COMPILER_VERSION "\n"
"Target architecture: " WINPR_TARGET_ARCH "\n";

return build_config;
}

0 comments on commit d1f8c00

Please sign in to comment.