зеркало из https://github.com/Azure/umock-c.git
Be more verbose about generating mock library (#368)
* propagate_all_repos anporumb/pchmock3 * propagate_all_repos anporumb/pchmock3 * propagate_all_repos anporumb/pchmock3 * propagate_all_repos anporumb/pchmock3 * propagate_all_repos anporumb/pchmock3 * propagate_all_repos anporumb/pchmock3 * propagate_all_repos anporumb/pchmock3 * propagate_all_repos anporumb/pchmock3 * use latest dependencies 10 Oct 2024 * remove INC_FOLDER * propagate_all_repos anporumb/pchmock3 * use latest dependencies 10 Oct 2024 * saving from code is always in doubt * test * if you insist ? * removed include_directories(deps/c-logging/v2/inc) * umock_c depend on c_logging_v2 * horrible typo * more emportu lines removes * remove umock_c_2_int * update CMakeLists.txt to not overwrite its own messages * propagate_all_repos anporumb/pchmock3 * use latest dependencies 10 Oct 2024
This commit is contained in:
Родитель
9cb38908e3
Коммит
aa1f616a01
|
@ -93,9 +93,9 @@ function(add_mock_library LIBRARY_NAME)
|
|||
set(MOCKS_SOURCE_FILE ${CMAKE_CURRENT_BINARY_DIR}/${LIBRARY_NAME_UPPER}_mocks.c)
|
||||
|
||||
file(WRITE ${MOCKS_HEADER_FILE} "// Copyright (c) Microsoft. All rights reserved.\n")
|
||||
file(WRITE ${MOCKS_HEADER_FILE} "// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n")
|
||||
file(WRITE ${MOCKS_HEADER_FILE} "// THIS IS A GENERATED FILE, DO NOT EDIT.\n\n")
|
||||
file(WRITE ${MOCKS_HEADER_FILE} "#ifndef ${LIBRARY_NAME_UPPER}_MOCKS_H\n")
|
||||
file(APPEND ${MOCKS_HEADER_FILE} "// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n")
|
||||
file(APPEND ${MOCKS_HEADER_FILE} "// THIS IS A GENERATED FILE, DO NOT EDIT. It was generated using function add_mock_library from CMakeLists.txt in umock-c.\n\n")
|
||||
file(APPEND ${MOCKS_HEADER_FILE} "#ifndef ${LIBRARY_NAME_UPPER}_MOCKS_H\n")
|
||||
file(APPEND ${MOCKS_HEADER_FILE} "#define ${LIBRARY_NAME_UPPER}_MOCKS_H\n\n")
|
||||
|
||||
file(APPEND ${MOCKS_HEADER_FILE} "#define ENABLE_MOCKS\n")
|
||||
|
@ -111,7 +111,10 @@ function(add_mock_library LIBRARY_NAME)
|
|||
file(APPEND ${MOCKS_HEADER_FILE} "#endif // ${LIBRARY_NAME_UPPER}_MOCKS_H\n")
|
||||
|
||||
|
||||
file(WRITE ${MOCKS_SOURCE_FILE} "#define ENABLE_MOCKS\n")
|
||||
file(WRITE ${MOCKS_SOURCE_FILE} "// Copyright (c) Microsoft. All rights reserved.\n")
|
||||
file(APPEND ${MOCKS_SOURCE_FILE} "// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n")
|
||||
file(APPEND ${MOCKS_SOURCE_FILE} "// THIS IS A GENERATED FILE, DO NOT EDIT. It was generated using function add_mock_library from CMakeLists.txt in umock-c.\n\n")
|
||||
file(APPEND ${MOCKS_SOURCE_FILE} "#define ENABLE_MOCKS\n")
|
||||
foreach(HEADER_FILE ${ARG_HEADER_FILES})
|
||||
#note: if CMAKE error "file failed to open for writing (Permission denied):" around these lines "... then just close Visual Studio.
|
||||
#it seems Visual Studio is aggressively scanning precompiled headers and CMake might find the file being opened by cl.exe
|
||||
|
|
Загрузка…
Ссылка в новой задаче