зеркало из https://github.com/Azure/c-pal.git
fixed up linux reals
This commit is contained in:
Родитель
ef9a0a6bc6
Коммит
ad0b3b477c
|
@ -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 $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/tests/reals>)
|
|
||||||
target_link_libraries(azure_c_util_reals azure_c_logging)
|
|
|
@ -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"
|
|
|
@ -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"
|
|
|
@ -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"
|
|
|
@ -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"
|
|
|
@ -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"
|
|
|
@ -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"
|
|
|
@ -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"
|
|
|
@ -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"
|
|
|
@ -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"
|
|
|
@ -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"
|
|
|
@ -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"
|
|
|
@ -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
|
|
|
@ -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"
|
|
|
@ -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"
|
|
|
@ -1,9 +1,11 @@
|
||||||
#Copyright (C) Microsoft Corporation. All rights reserved.
|
#Copyright (C) Microsoft Corporation. All rights reserved.
|
||||||
|
|
||||||
|
add_subdirectory(reals_linux)
|
||||||
# unit tests
|
# unit tests
|
||||||
if(${run_unittests})
|
if(${run_unittests})
|
||||||
add_subdirectory(interlocked_linux_ut)
|
add_subdirectory(interlocked_linux_ut)
|
||||||
add_subdirectory(uniqueid_ut)
|
add_subdirectory(uniqueid_ut)
|
||||||
|
add_subdirectory(reals_linux_ut)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${run_int_tests})
|
if(${run_int_tests})
|
||||||
|
|
Загрузка…
Ссылка в новой задаче