diff --git a/linux/src/reals_linux/CMakeLists.txt b/linux/src/reals_linux/CMakeLists.txt deleted file mode 100644 index 5de3737..0000000 --- a/linux/src/reals_linux/CMakeLists.txt +++ /dev/null @@ -1,65 +0,0 @@ -#Copyright (c) Microsoft. All rights reserved. -#Licensed under the MIT license. See LICENSE file in the project root for full license information. - -cmake_minimum_required(VERSION 2.8.11) - -set(azure_c_util_reals_c_files - real_constbuffer.c - real_constbuffer_array.c - real_constbuffer_array_batcher_nv.c - real_crt_abstractions.c - real_doublylinkedlist.c - real_memory_data.c - real_singlylinkedlist.c - real_threadapi.c - real_uuid.c -) - -set(azure_c_util_reals_h_files - real_constbuffer.h - real_constbuffer_renames.h - real_constbuffer_array.h - real_constbuffer_array_renames.h - real_constbuffer_array_batcher_nv.h - real_constbuffer_array_batcher_nv_renames.h - real_crt_abstractions.h - real_crt_abstractions_renames.h - real_doublylinkedlist.h - real_doublylinkedlist_renames.h - real_memory_data.h - real_memory_data_renames.h - real_singlylinkedlist.h - real_uuid.h - real_uuid_renames.h - real_threadapi.h - real_threadapi_renames.h -) - -if(WIN32) -set(azure_c_util_reals_c_files ${azure_c_util_reals_c_files} - real_interlocked_hl.c - real_srw_lock.c - real_string_utils.c - real_timer.c - real_sm.c -) - -set(azure_c_util_reals_h_files ${azure_c_util_reals_h_files} - real_interlocked_hl.h - real_interlocked_hl_renames.h - real_srw_lock.h - real_srw_lock_renames.h - real_string_utils.h - real_string_utils_renames.h - real_timer.h - real_timer_renames.h - real_sm.h - real_sm_renames.h -) -endif() - - -include_directories(${CMAKE_CURRENT_LIST_DIR}/../../src) -add_library(azure_c_util_reals ${azure_c_util_reals_c_files} ${azure_c_util_reals_h_files}) -target_include_directories(azure_c_util_reals PUBLIC $) -target_link_libraries(azure_c_util_reals azure_c_logging) diff --git a/linux/src/reals_linux/real_constbuffer_array_batcher_nv_linux.c b/linux/src/reals_linux/real_constbuffer_array_batcher_nv_linux.c deleted file mode 100644 index 7ba9f2b..0000000 --- a/linux/src/reals_linux/real_constbuffer_array_batcher_nv_linux.c +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright (c) Microsoft. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -#define GBALLOC_H - -#include "real_constbuffer_array_batcher_nv_renames.h" -#include "real_constbuffer_array_renames.h" -#include "real_constbuffer_renames.h" -#include "real_memory_data_renames.h" - -#include "constbuffer_array_batcher_nv.c" diff --git a/linux/src/reals_linux/real_constbuffer_array_linux.c b/linux/src/reals_linux/real_constbuffer_array_linux.c deleted file mode 100644 index aaf45e3..0000000 --- a/linux/src/reals_linux/real_constbuffer_array_linux.c +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) Microsoft. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -#define GBALLOC_H - -#include "real_constbuffer_array_renames.h" -#include "real_constbuffer_renames.h" - -#include "../src/constbuffer_array.c" diff --git a/linux/src/reals_linux/real_constbuffer_linux.c b/linux/src/reals_linux/real_constbuffer_linux.c deleted file mode 100644 index 372bbb7..0000000 --- a/linux/src/reals_linux/real_constbuffer_linux.c +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -#include "real_constbuffer_renames.h" - -#define GBALLOC_H - -#include "../src/constbuffer.c" diff --git a/linux/src/reals_linux/real_crt_abstractions_linux.c b/linux/src/reals_linux/real_crt_abstractions_linux.c deleted file mode 100644 index cbf19f2..0000000 --- a/linux/src/reals_linux/real_crt_abstractions_linux.c +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -#include "real_crt_abstractions_renames.h" - -#define GBALLOC_H - -#include "crt_abstractions.c" diff --git a/linux/src/reals_linux/real_doublylinkedlist_linux.c b/linux/src/reals_linux/real_doublylinkedlist_linux.c deleted file mode 100644 index 354297a..0000000 --- a/linux/src/reals_linux/real_doublylinkedlist_linux.c +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -#include "real_doublylinkedlist_renames.h" - -#define GBALLOC_H - -#include "doublylinkedlist.c" diff --git a/linux/src/reals_linux/real_interlocked_hl_linux.c b/linux/src/reals_linux/real_interlocked_hl_linux.c deleted file mode 100644 index 6fea9c6..0000000 --- a/linux/src/reals_linux/real_interlocked_hl_linux.c +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright (c) Microsoft. All rights reserved. - -#define GBALLOC_H - -#include "real_interlocked_hl_renames.h" - -#include "../../adapters/interlocked_hl_win32.c" diff --git a/linux/src/reals_linux/real_memory_data_linux.c b/linux/src/reals_linux/real_memory_data_linux.c deleted file mode 100644 index 601f073..0000000 --- a/linux/src/reals_linux/real_memory_data_linux.c +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -#define GBALLOC_H - -#include "real_memory_data_renames.h" - -#include "../../src/memory_data.c" diff --git a/linux/src/reals_linux/real_singlylinkedlist_linux.c b/linux/src/reals_linux/real_singlylinkedlist_linux.c deleted file mode 100644 index 3195379..0000000 --- a/linux/src/reals_linux/real_singlylinkedlist_linux.c +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) Microsoft. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -#define GBALLOC_H - -#define singlylinkedlist_create real_singlylinkedlist_create -#define singlylinkedlist_destroy real_singlylinkedlist_destroy -#define singlylinkedlist_add real_singlylinkedlist_add -#define singlylinkedlist_add_head real_singlylinkedlist_add_head -#define singlylinkedlist_remove real_singlylinkedlist_remove -#define singlylinkedlist_get_head_item real_singlylinkedlist_get_head_item -#define singlylinkedlist_get_next_item real_singlylinkedlist_get_next_item -#define singlylinkedlist_find real_singlylinkedlist_find -#define singlylinkedlist_item_get_value real_singlylinkedlist_item_get_value -#define singlylinkedlist_remove_if real_singlylinkedlist_remove_if -#define singlylinkedlist_foreach real_singlylinkedlist_foreach - -#include "singlylinkedlist.c" diff --git a/linux/src/reals_linux/real_sm_linux.c b/linux/src/reals_linux/real_sm_linux.c deleted file mode 100644 index 3e8eca3..0000000 --- a/linux/src/reals_linux/real_sm_linux.c +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) Microsoft. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -#define GBALLOC_H - -#include "real_interlocked_hl_renames.h" - -#include "real_sm_renames.h" - -#include "../../src/sm.c" diff --git a/linux/src/reals_linux/real_srw_lock_linux.c b/linux/src/reals_linux/real_srw_lock_linux.c deleted file mode 100644 index a45bbfb..0000000 --- a/linux/src/reals_linux/real_srw_lock_linux.c +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright (c) Microsoft. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -#define GBALLOC_H - -#include "real_string_utils_renames.h" -#include "real_timer_renames.h" - -#include "real_srw_lock_renames.h" - -#include "../../adapters/srw_lock.c" diff --git a/linux/src/reals_linux/real_string_utils_linux.c b/linux/src/reals_linux/real_string_utils_linux.c deleted file mode 100644 index a0b5632..0000000 --- a/linux/src/reals_linux/real_string_utils_linux.c +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -#define GBALLOC_H - -#include "real_string_utils_renames.h" - -#include "../../adapters/string_utils.c" diff --git a/linux/src/reals_linux/real_threadapi_linux.c b/linux/src/reals_linux/real_threadapi_linux.c deleted file mode 100644 index added1b..0000000 --- a/linux/src/reals_linux/real_threadapi_linux.c +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright (c) Microsoft. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -#define GBALLOC_H - -#include "real_threadapi_renames.h" - -#if _MSC_VER -#include "../../adapters/threadapi_win32.c" -#else -#include "../../adapters/threadapi_pthreads.c" -#endif diff --git a/linux/src/reals_linux/real_timer_linux.c b/linux/src/reals_linux/real_timer_linux.c deleted file mode 100644 index 72bec88..0000000 --- a/linux/src/reals_linux/real_timer_linux.c +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -#define GBALLOC_H - -#include "real_timer_renames.h" - -#include "../../adapters/timer.c" diff --git a/linux/src/reals_linux/real_uuid_linux.c b/linux/src/reals_linux/real_uuid_linux.c deleted file mode 100644 index 05a1352..0000000 --- a/linux/src/reals_linux/real_uuid_linux.c +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -#define GBALLOC_H - -#include "real_uuid_renames.h" - -#include "uuid.c" diff --git a/linux/tests/CMakeLists.txt b/linux/tests/CMakeLists.txt index 843a064..a8477ce 100644 --- a/linux/tests/CMakeLists.txt +++ b/linux/tests/CMakeLists.txt @@ -1,9 +1,11 @@ #Copyright (C) Microsoft Corporation. All rights reserved. +add_subdirectory(reals_linux) # unit tests if(${run_unittests}) add_subdirectory(interlocked_linux_ut) add_subdirectory(uniqueid_ut) + add_subdirectory(reals_linux_ut) endif() if(${run_int_tests})