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:
anporumb 2024-10-11 09:04:19 -07:00 коммит произвёл GitHub
Родитель 9cb38908e3
Коммит aa1f616a01
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 7 добавлений и 4 удалений

Просмотреть файл

@ -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