Advance Wayland and KDE package bring-up
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
+40
@@ -0,0 +1,40 @@
|
||||
cmake_minimum_required(VERSION 3.0.0)
|
||||
|
||||
# keep version in sync with the one used in consumer/CMakeLists.txt for the library
|
||||
# ideally would be send over by an exported target property,
|
||||
# but exporting custom properties via EXPORT_PROPERTIES only was added in CMake 3.12
|
||||
project(library VERSION 2.40.0)
|
||||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../modules)
|
||||
include(ECMGenerateExportHeader)
|
||||
|
||||
set(_public_includedir "include/library")
|
||||
|
||||
add_library(library library.cpp)
|
||||
target_include_directories(library
|
||||
PUBLIC
|
||||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>"
|
||||
"$<INSTALL_INTERFACE:${_public_includedir}>"
|
||||
)
|
||||
|
||||
if(SET_GROUP)
|
||||
set(_group_args GROUP_BASE_NAME LIBGROUP)
|
||||
endif()
|
||||
|
||||
ecm_generate_export_header(library
|
||||
${_group_args}
|
||||
VERSION ${library_VERSION}
|
||||
DEPRECATION_VERSIONS 2.0 2.12
|
||||
EXCLUDE_DEPRECATED_BEFORE_AND_AT ${EXCLUDE_DEPRECATED_BEFORE_AND_AT}
|
||||
)
|
||||
|
||||
install(TARGETS library DESTINATION lib EXPORT library_targets)
|
||||
|
||||
install(EXPORT library_targets FILE LibraryTargets.cmake DESTINATION lib/library)
|
||||
install(FILES
|
||||
library.hpp
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/library_export.h"
|
||||
DESTINATION ${_public_includedir}
|
||||
)
|
||||
|
||||
add_executable(dummy main.cpp)
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
#include "library.hpp"
|
||||
|
||||
#if LIBRARY_BUILD_DEPRECATED_SINCE(2, 0)
|
||||
void function_deprecatedAt2_0()
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#if LIBRARY_BUILD_DEPRECATED_SINCE(2, 12)
|
||||
void function_deprecatedAt2_12()
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
void function_not_deprecated()
|
||||
{
|
||||
}
|
||||
|
||||
#if LIBRARY_BUILD_DEPRECATED_SINCE(2, 0)
|
||||
void Class::method_deprecatedAt2_0()
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#if LIBRARY_BUILD_DEPRECATED_SINCE(2, 12)
|
||||
void Class::method_deprecatedAt2_12()
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
void Class::method_not_deprecated()
|
||||
{
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
#include <library_export.h>
|
||||
|
||||
enum Enum {
|
||||
#if LIBRARY_BUILD_DEPRECATED_SINCE(2, 0)
|
||||
Enumerator_deprecatedAt2_0 LIBRARY_ENUMERATOR_DEPRECATED_VERSION(2, 0, "Deprecated at 2.0"),
|
||||
#endif
|
||||
Enumerator_not_deprecated,
|
||||
#if LIBRARY_ENABLE_DEPRECATED_SINCE(2, 12)
|
||||
Enumerator_deprecatedAt2_12 LIBRARY_ENUMERATOR_DEPRECATED_VERSION(2, 12, "Deprecated at 2.12"),
|
||||
#endif
|
||||
};
|
||||
|
||||
#if LIBRARY_ENABLE_DEPRECATED_SINCE(2, 0)
|
||||
LIBRARY_EXPORT
|
||||
LIBRARY_DEPRECATED_VERSION(2, 0, "Deprecated at 2.0")
|
||||
void function_deprecatedAt2_0();
|
||||
#endif
|
||||
|
||||
#if LIBRARY_ENABLE_DEPRECATED_SINCE(2, 12)
|
||||
LIBRARY_EXPORT
|
||||
LIBRARY_DEPRECATED_VERSION(2, 12, "Deprecated at 2.12")
|
||||
void function_deprecatedAt2_12();
|
||||
#endif
|
||||
|
||||
LIBRARY_EXPORT void function_not_deprecated();
|
||||
|
||||
class LIBRARY_EXPORT Class {
|
||||
public:
|
||||
#if LIBRARY_BUILD_DEPRECATED_SINCE(2, 0)
|
||||
LIBRARY_DEPRECATED_VERSION(2, 0, "Deprecated at 2.0")
|
||||
virtual void method_deprecatedAt2_0();
|
||||
#endif
|
||||
|
||||
#if LIBRARY_BUILD_DEPRECATED_SINCE(2, 12)
|
||||
LIBRARY_DEPRECATED_VERSION(2, 12, "Deprecated at 2.12")
|
||||
virtual void method_deprecatedAt2_12();
|
||||
#endif
|
||||
|
||||
virtual void method_not_deprecated();
|
||||
};
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
int main(int, char**)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user