Loading .gitignore +19 Changes for .gitignore: 19 added lines, 0 removed lines. Original line number Diff line number Diff line CMakeLists.txt.user CMakeCache.txt CMakeFiles CMakeScripts Testing Makefile cmake_install.cmake install_manifest.txt compile_commands.json CTestTestfile.cmake _deps node_modules .vscode */build/* EtsiClientGen/* !EtsiClientGen/CMakeLists.txt !EtsiClientGen/.openapi-generator-ignore !EtsiClientGen/patches !EtsiClientGen/conanfile.txt No newline at end of file EtsiClientGen/.openapi-generator-ignore +27 Changes for EtsiClientGen/.openapi-generator-ignore: 27 added lines, 0 removed lines. Original line number Diff line number Diff line # OpenAPI Generator Ignore # Generated by openapi-generator https://github.com/openapitools/openapi-generator # Use this file to prevent files from being overwritten by the generator. # The patterns follow closely to .gitignore or .dockerignore. # As an example, the C# client generator defines ApiClient.cs. # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: #ApiClient.cs # You can match any string of characters against a directory, file or extension with a single asterisk (*): #foo/*/qux # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux # You can recursively match patterns against a directory, file or extension with a double asterisk (**): #foo/**/qux # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux # You can also negate patterns with an exclamation (!). # For example, you can ignore all files in a docs folder with the file extension .md: #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md CMakeLists.txt conanfile.txt patches No newline at end of file EtsiClientGen/CMakeLists.txt +222 Changes for EtsiClientGen/CMakeLists.txt: 222 added lines, 0 removed lines. Original line number Diff line number Diff line cmake_minimum_required (VERSION 2.6...3.10.2) project (CGenerator) cmake_policy(SET CMP0063 NEW) set(CMAKE_C_VISIBILITY_PRESET default) set(CMAKE_CXX_VISIBILITY_PRESET default) set(CMAKE_VISIBILITY_INLINES_HIDDEN OFF) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON) option(BUILD_SHARED_LIBS "Build using shared libraries" OFF) find_package(OpenSSL) find_package(CURL REQUIRED) #if (OPENSSL_FOUND) # message (STATUS "OPENSSL found") # set(CMAKE_C_FLAGS "-DOPENSSL") # if(CMAKE_VERSION VERSION_LESS 3.4) # include_directories(${OPENSSL_INCLUDE_DIR}) # include_directories(${OPENSSL_INCLUDE_DIRS}) # link_directories(${OPENSSL_LIBRARIES}) # endif() # message(STATUS "Using OpenSSL ${OPENSSL_VERSION}") #else() # message (STATUS "OpenSSL Not found.") #endif() set(pkgName "worldStorageCClient") # this default version can be overridden in PreTarget.cmake set(PROJECT_VERSION_MAJOR 2) set(PROJECT_VERSION_MINOR 1) set(PROJECT_VERSION_PATCH 0) #if( (DEFINED CURL_INCLUDE_DIR) AND (DEFINED CURL_LIBRARIES)) # include_directories(${CURL_INCLUDE_DIR}) # set(PLATFORM_LIBRARIES ${PLATFORM_LIBRARIES} ${CURL_LIBRARIES} ) #else() # find_package(CURL 7.58.0 REQUIRED) # if(CURL_FOUND) # include_directories(${CURL_INCLUDE_DIR}) # set(PLATFORM_LIBRARIES ${PLATFORM_LIBRARIES} ${CURL_LIBRARIES} ) # else(CURL_FOUND) # message(FATAL_ERROR "Could not find the CURL library and development files.") # endif() #endif() set(SRCS src/list.c src/apiKey.c src/apiClient.c src/binary.c external/cJSON.c model/object.c model/capability.c model/encoding_information_structure.c model/error.c model/get_relocalization_information_200_response.c model/get_relocalization_information_uuids_parameter_inner.c model/mode_world_storage.c model/relocalization_information.c model/relocalization_information_reloc_objects_inner.c model/trackable.c model/trackable_type.c model/type_world_storage.c model/unit_system.c model/world_anchor.c model/world_link.c api/DefaultAPI.c api/RelocalizationInformationAPI.c api/TrackablesAPI.c api/WorldAnchorsAPI.c api/WorldLinksAPI.c ) set(HDRS include/apiClient.h include/list.h include/binary.h include/keyValuePair.h external/cJSON.h model/object.h model/capability.h model/encoding_information_structure.h model/error.h model/get_relocalization_information_200_response.h model/get_relocalization_information_uuids_parameter_inner.h model/mode_world_storage.h model/relocalization_information.h model/relocalization_information_reloc_objects_inner.h model/trackable.h model/trackable_type.h model/type_world_storage.h model/unit_system.h model/world_anchor.h model/world_link.h api/DefaultAPI.h api/RelocalizationInformationAPI.h api/TrackablesAPI.h api/WorldAnchorsAPI.h api/WorldLinksAPI.h ) include(PreTarget.cmake OPTIONAL) set(PROJECT_VERSION_STRING "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}") # Add library with project file with project name as library name add_library(${pkgName} STATIC ${SRCS} ${HDRS}) # Link dependent libraries #if(NOT CMAKE_VERSION VERSION_LESS 3.4) # target_link_libraries(${pkgName} PRIVATE OpenSSL::SSL OpenSSL::Crypto) #endif() #target_link_libraries(${pkgName} PUBLIC ${CURL_LIBRARIES} ) target_link_libraries(${pkgName} PUBLIC openssl::openssl CURL::libcurl -lpthread ) target_include_directories( ${pkgName} PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}> $<INSTALL_INTERFACE:include> ) #include(PostTarget.cmake OPTIONAL) # installation of libraries, headers, and config files #if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in) # install(TARGETS ${pkgName} DESTINATION lib) # foreach(HDR_FILE ${HDRS}) # get_filename_component(HDR_DIRECTORY ${HDR_FILE} DIRECTORY) # get_filename_component(ABSOLUTE_HDR_DIRECTORY ${HDR_DIRECTORY} ABSOLUTE) # file(RELATIVE_PATH RELATIVE_HDR_PATH ${CMAKE_CURRENT_SOURCE_DIR} ${ABSOLUTE_HDR_DIRECTORY}) # install(FILES ${HDR_FILE} DESTINATION include/${pkgName}/${RELATIVE_HDR_PATH}) # endforeach() #else() # include(GNUInstallDirs) # install(TARGETS ${pkgName} DESTINATION lib EXPORT ${pkgName}Targets) install(TARGETS ${pkgName} DESTINATION lib) foreach(HDR_FILE ${HDRS}) get_filename_component(HDR_DIRECTORY ${HDR_FILE} DIRECTORY) get_filename_component(ABSOLUTE_HDR_DIRECTORY ${HDR_DIRECTORY} ABSOLUTE) file(RELATIVE_PATH RELATIVE_HDR_PATH ${CMAKE_CURRENT_SOURCE_DIR} ${ABSOLUTE_HDR_DIRECTORY}) install(FILES ${HDR_FILE} DESTINATION include/${pkgName}/${RELATIVE_HDR_PATH}) endforeach() # include(CMakePackageConfigHelpers) # write_basic_package_version_file( # "${CMAKE_CURRENT_BINARY_DIR}/${pkgName}/${pkgName}ConfigVersion.cmake" # VERSION "${PROJECT_VERSION_STRING}" # COMPATIBILITY AnyNewerVersion # ) # export(EXPORT ${pkgName}Targets # FILE "${CMAKE_CURRENT_BINARY_DIR}/${pkgName}/${pkgName}Targets.cmake" # NAMESPACE ${pkgName}:: # ) # configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in # "${CMAKE_CURRENT_BINARY_DIR}/${pkgName}/${pkgName}Config.cmake" # @ONLY # ) # set(ConfigPackageLocation lib/cmake/${pkgName}) # install(EXPORT ${pkgName}Targets # FILE # ${pkgName}Targets.cmake # NAMESPACE # ${pkgName}:: # DESTINATION # ${ConfigPackageLocation} # ) # install( # FILES # "${CMAKE_CURRENT_BINARY_DIR}/${pkgName}/${pkgName}Config.cmake" # "${CMAKE_CURRENT_BINARY_DIR}/${pkgName}/${pkgName}ConfigVersion.cmake" # DESTINATION # ${ConfigPackageLocation} # ) #endif() # make installation packages #include(Packing.cmake OPTIONAL) # Setting file variables to null #set(SRCS "") #set(HDRS "") ## This section shows how to use the above compiled library to compile the source files ## set source files #set(SRCS # unit-tests/manual-DefaultAPI.c # unit-tests/manual-RelocalizationInformationAPI.c # unit-tests/manual-TrackablesAPI.c # unit-tests/manual-WorldAnchorsAPI.c # unit-tests/manual-WorldLinksAPI.c #) ##set header files #set(HDRS #) ## loop over all files in SRCS variable #foreach(SOURCE_FILE ${SRCS}) # # Get only the file name from the file as add_executable does not support executable with slash("/") # get_filename_component(FILE_NAME_ONLY ${SOURCE_FILE} NAME_WE) # # Remove .c from the file name and set it as executable name # string( REPLACE ".c" "" EXECUTABLE_FILE ${FILE_NAME_ONLY}) # # Add executable for every source file in SRCS # add_executable(unit-${EXECUTABLE_FILE} ${SOURCE_FILE}) # # Link above created library to executable and dependent library curl # target_link_libraries(unit-${EXECUTABLE_FILE} ${CURL_LIBRARIES} ${pkgName} ) #endforeach(SOURCE_FILE ${SRCS}) EtsiClientGen/conanfile.txt +12 Changes for EtsiClientGen/conanfile.txt: 12 added lines, 0 removed lines. Original line number Diff line number Diff line [requires] openssl/3.2.1 libcurl/8.6.0 [generators] CMakeDeps CMakeToolchain [layout] cmake_layout [options] EtsiClientGen/patches/applyPatches.sh +x+21 Changes for EtsiClientGen/patches/applyPatches.sh: 21 added lines, 0 removed lines. Original line number Diff line number Diff line #!/bin/bash patch -u ../model/encoding_information_structure.c -i fixCEncodingInformationStructure.patch patch -u ../model/error.c -i fixCError.patch patch -u ../model/trackable.c -i fixCTrackable.patch patch -u ../api/TrackablesAPI.c -i fixCTrackableAPI.patch patch -u ../model/trackable_type.c -i fixCTrackableType.patch patch -u ../api/WorldAnchorsAPI.c -i fixCWorldAnchorAPI.patch patch -u ../model/world_link.c -i fixCWorldLink.patch patch -u ../api/WorldLinksAPI.c -i fixCWorldLinkAPI.patch patch -u ../model/error.h -i fixHeaderError.patch patch -u ../model/trackable.h -i fixHeaderTrackable.patch patch -u ../model/trackable_type.h -i fixHeaderTrackableType.patch patch -u ../model/unit_system.h -i fixHeaderUnitSystem.patch patch -u ../model/world_link.h -i fixHeaderWorldLink.patch Loading
.gitignore +19 Changes for .gitignore: 19 added lines, 0 removed lines. Original line number Diff line number Diff line CMakeLists.txt.user CMakeCache.txt CMakeFiles CMakeScripts Testing Makefile cmake_install.cmake install_manifest.txt compile_commands.json CTestTestfile.cmake _deps node_modules .vscode */build/* EtsiClientGen/* !EtsiClientGen/CMakeLists.txt !EtsiClientGen/.openapi-generator-ignore !EtsiClientGen/patches !EtsiClientGen/conanfile.txt No newline at end of file
EtsiClientGen/.openapi-generator-ignore +27 Changes for EtsiClientGen/.openapi-generator-ignore: 27 added lines, 0 removed lines. Original line number Diff line number Diff line # OpenAPI Generator Ignore # Generated by openapi-generator https://github.com/openapitools/openapi-generator # Use this file to prevent files from being overwritten by the generator. # The patterns follow closely to .gitignore or .dockerignore. # As an example, the C# client generator defines ApiClient.cs. # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: #ApiClient.cs # You can match any string of characters against a directory, file or extension with a single asterisk (*): #foo/*/qux # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux # You can recursively match patterns against a directory, file or extension with a double asterisk (**): #foo/**/qux # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux # You can also negate patterns with an exclamation (!). # For example, you can ignore all files in a docs folder with the file extension .md: #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md CMakeLists.txt conanfile.txt patches No newline at end of file
EtsiClientGen/CMakeLists.txt +222 Changes for EtsiClientGen/CMakeLists.txt: 222 added lines, 0 removed lines. Original line number Diff line number Diff line cmake_minimum_required (VERSION 2.6...3.10.2) project (CGenerator) cmake_policy(SET CMP0063 NEW) set(CMAKE_C_VISIBILITY_PRESET default) set(CMAKE_CXX_VISIBILITY_PRESET default) set(CMAKE_VISIBILITY_INLINES_HIDDEN OFF) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON) option(BUILD_SHARED_LIBS "Build using shared libraries" OFF) find_package(OpenSSL) find_package(CURL REQUIRED) #if (OPENSSL_FOUND) # message (STATUS "OPENSSL found") # set(CMAKE_C_FLAGS "-DOPENSSL") # if(CMAKE_VERSION VERSION_LESS 3.4) # include_directories(${OPENSSL_INCLUDE_DIR}) # include_directories(${OPENSSL_INCLUDE_DIRS}) # link_directories(${OPENSSL_LIBRARIES}) # endif() # message(STATUS "Using OpenSSL ${OPENSSL_VERSION}") #else() # message (STATUS "OpenSSL Not found.") #endif() set(pkgName "worldStorageCClient") # this default version can be overridden in PreTarget.cmake set(PROJECT_VERSION_MAJOR 2) set(PROJECT_VERSION_MINOR 1) set(PROJECT_VERSION_PATCH 0) #if( (DEFINED CURL_INCLUDE_DIR) AND (DEFINED CURL_LIBRARIES)) # include_directories(${CURL_INCLUDE_DIR}) # set(PLATFORM_LIBRARIES ${PLATFORM_LIBRARIES} ${CURL_LIBRARIES} ) #else() # find_package(CURL 7.58.0 REQUIRED) # if(CURL_FOUND) # include_directories(${CURL_INCLUDE_DIR}) # set(PLATFORM_LIBRARIES ${PLATFORM_LIBRARIES} ${CURL_LIBRARIES} ) # else(CURL_FOUND) # message(FATAL_ERROR "Could not find the CURL library and development files.") # endif() #endif() set(SRCS src/list.c src/apiKey.c src/apiClient.c src/binary.c external/cJSON.c model/object.c model/capability.c model/encoding_information_structure.c model/error.c model/get_relocalization_information_200_response.c model/get_relocalization_information_uuids_parameter_inner.c model/mode_world_storage.c model/relocalization_information.c model/relocalization_information_reloc_objects_inner.c model/trackable.c model/trackable_type.c model/type_world_storage.c model/unit_system.c model/world_anchor.c model/world_link.c api/DefaultAPI.c api/RelocalizationInformationAPI.c api/TrackablesAPI.c api/WorldAnchorsAPI.c api/WorldLinksAPI.c ) set(HDRS include/apiClient.h include/list.h include/binary.h include/keyValuePair.h external/cJSON.h model/object.h model/capability.h model/encoding_information_structure.h model/error.h model/get_relocalization_information_200_response.h model/get_relocalization_information_uuids_parameter_inner.h model/mode_world_storage.h model/relocalization_information.h model/relocalization_information_reloc_objects_inner.h model/trackable.h model/trackable_type.h model/type_world_storage.h model/unit_system.h model/world_anchor.h model/world_link.h api/DefaultAPI.h api/RelocalizationInformationAPI.h api/TrackablesAPI.h api/WorldAnchorsAPI.h api/WorldLinksAPI.h ) include(PreTarget.cmake OPTIONAL) set(PROJECT_VERSION_STRING "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}") # Add library with project file with project name as library name add_library(${pkgName} STATIC ${SRCS} ${HDRS}) # Link dependent libraries #if(NOT CMAKE_VERSION VERSION_LESS 3.4) # target_link_libraries(${pkgName} PRIVATE OpenSSL::SSL OpenSSL::Crypto) #endif() #target_link_libraries(${pkgName} PUBLIC ${CURL_LIBRARIES} ) target_link_libraries(${pkgName} PUBLIC openssl::openssl CURL::libcurl -lpthread ) target_include_directories( ${pkgName} PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}> $<INSTALL_INTERFACE:include> ) #include(PostTarget.cmake OPTIONAL) # installation of libraries, headers, and config files #if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in) # install(TARGETS ${pkgName} DESTINATION lib) # foreach(HDR_FILE ${HDRS}) # get_filename_component(HDR_DIRECTORY ${HDR_FILE} DIRECTORY) # get_filename_component(ABSOLUTE_HDR_DIRECTORY ${HDR_DIRECTORY} ABSOLUTE) # file(RELATIVE_PATH RELATIVE_HDR_PATH ${CMAKE_CURRENT_SOURCE_DIR} ${ABSOLUTE_HDR_DIRECTORY}) # install(FILES ${HDR_FILE} DESTINATION include/${pkgName}/${RELATIVE_HDR_PATH}) # endforeach() #else() # include(GNUInstallDirs) # install(TARGETS ${pkgName} DESTINATION lib EXPORT ${pkgName}Targets) install(TARGETS ${pkgName} DESTINATION lib) foreach(HDR_FILE ${HDRS}) get_filename_component(HDR_DIRECTORY ${HDR_FILE} DIRECTORY) get_filename_component(ABSOLUTE_HDR_DIRECTORY ${HDR_DIRECTORY} ABSOLUTE) file(RELATIVE_PATH RELATIVE_HDR_PATH ${CMAKE_CURRENT_SOURCE_DIR} ${ABSOLUTE_HDR_DIRECTORY}) install(FILES ${HDR_FILE} DESTINATION include/${pkgName}/${RELATIVE_HDR_PATH}) endforeach() # include(CMakePackageConfigHelpers) # write_basic_package_version_file( # "${CMAKE_CURRENT_BINARY_DIR}/${pkgName}/${pkgName}ConfigVersion.cmake" # VERSION "${PROJECT_VERSION_STRING}" # COMPATIBILITY AnyNewerVersion # ) # export(EXPORT ${pkgName}Targets # FILE "${CMAKE_CURRENT_BINARY_DIR}/${pkgName}/${pkgName}Targets.cmake" # NAMESPACE ${pkgName}:: # ) # configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in # "${CMAKE_CURRENT_BINARY_DIR}/${pkgName}/${pkgName}Config.cmake" # @ONLY # ) # set(ConfigPackageLocation lib/cmake/${pkgName}) # install(EXPORT ${pkgName}Targets # FILE # ${pkgName}Targets.cmake # NAMESPACE # ${pkgName}:: # DESTINATION # ${ConfigPackageLocation} # ) # install( # FILES # "${CMAKE_CURRENT_BINARY_DIR}/${pkgName}/${pkgName}Config.cmake" # "${CMAKE_CURRENT_BINARY_DIR}/${pkgName}/${pkgName}ConfigVersion.cmake" # DESTINATION # ${ConfigPackageLocation} # ) #endif() # make installation packages #include(Packing.cmake OPTIONAL) # Setting file variables to null #set(SRCS "") #set(HDRS "") ## This section shows how to use the above compiled library to compile the source files ## set source files #set(SRCS # unit-tests/manual-DefaultAPI.c # unit-tests/manual-RelocalizationInformationAPI.c # unit-tests/manual-TrackablesAPI.c # unit-tests/manual-WorldAnchorsAPI.c # unit-tests/manual-WorldLinksAPI.c #) ##set header files #set(HDRS #) ## loop over all files in SRCS variable #foreach(SOURCE_FILE ${SRCS}) # # Get only the file name from the file as add_executable does not support executable with slash("/") # get_filename_component(FILE_NAME_ONLY ${SOURCE_FILE} NAME_WE) # # Remove .c from the file name and set it as executable name # string( REPLACE ".c" "" EXECUTABLE_FILE ${FILE_NAME_ONLY}) # # Add executable for every source file in SRCS # add_executable(unit-${EXECUTABLE_FILE} ${SOURCE_FILE}) # # Link above created library to executable and dependent library curl # target_link_libraries(unit-${EXECUTABLE_FILE} ${CURL_LIBRARIES} ${pkgName} ) #endforeach(SOURCE_FILE ${SRCS})
EtsiClientGen/conanfile.txt +12 Changes for EtsiClientGen/conanfile.txt: 12 added lines, 0 removed lines. Original line number Diff line number Diff line [requires] openssl/3.2.1 libcurl/8.6.0 [generators] CMakeDeps CMakeToolchain [layout] cmake_layout [options]
EtsiClientGen/patches/applyPatches.sh +x+21 Changes for EtsiClientGen/patches/applyPatches.sh: 21 added lines, 0 removed lines. Original line number Diff line number Diff line #!/bin/bash patch -u ../model/encoding_information_structure.c -i fixCEncodingInformationStructure.patch patch -u ../model/error.c -i fixCError.patch patch -u ../model/trackable.c -i fixCTrackable.patch patch -u ../api/TrackablesAPI.c -i fixCTrackableAPI.patch patch -u ../model/trackable_type.c -i fixCTrackableType.patch patch -u ../api/WorldAnchorsAPI.c -i fixCWorldAnchorAPI.patch patch -u ../model/world_link.c -i fixCWorldLink.patch patch -u ../api/WorldLinksAPI.c -i fixCWorldLinkAPI.patch patch -u ../model/error.h -i fixHeaderError.patch patch -u ../model/trackable.h -i fixHeaderTrackable.patch patch -u ../model/trackable_type.h -i fixHeaderTrackableType.patch patch -u ../model/unit_system.h -i fixHeaderUnitSystem.patch patch -u ../model/world_link.h -i fixHeaderWorldLink.patch