Skip to content

Commit

Permalink
build: relocated src/common/spdlog to third_party
Browse files Browse the repository at this point in the history
  • Loading branch information
vpirogov committed Jan 15, 2025
1 parent c33f7d1 commit 1326f7c
Show file tree
Hide file tree
Showing 56 changed files with 7 additions and 29 deletions.
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#===============================================================================
# Copyright 2016-2024 Intel Corporation
# Copyright 2016-2025 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -23,6 +23,7 @@ file(GLOB HEADERS_SUBDIR
${CMAKE_CURRENT_SOURCE_DIR}/../include/oneapi/dnnl/*.h
${CMAKE_CURRENT_SOURCE_DIR}/../include/oneapi/dnnl/*.hpp
)
include_directories_with_host_compiler(${PROJECT_SOURCE_DIR}/third_party)
include_directories_with_host_compiler(${CMAKE_CURRENT_SOURCE_DIR})

if (DNNL_LIBRARY_TYPE STREQUAL "SHARED")
Expand Down
9 changes: 2 additions & 7 deletions src/common/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#===============================================================================
# Copyright 2019-2024 Intel Corporation
# Copyright 2019-2025 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -48,13 +48,8 @@ if(NOT DNNL_CPU_RUNTIME STREQUAL "THREADPOOL")
list(REMOVE_ITEM SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/stream_threadpool.cpp")
endif()

if(DNNL_EXPERIMENTAL_LOGGING)
include_directories(${CMAKE_CURRENT_LIST_DIR})
else()
# avoid building and linking spdlog if logging support is not enabled
list(REMOVE_ITEM SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/spdlog/*")
if(NOT DNNL_EXPERIMENTAL_LOGGING)
list(REMOVE_ITEM SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/logging.cpp")
list(REMOVE_ITEM SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/logging.hpp")
endif()

set(OBJ_LIB ${LIB_PACKAGE_NAME}_common)
Expand Down
6 changes: 3 additions & 3 deletions src/common/logging.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2024 Intel Corporation
* Copyright 2024-2025 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -17,8 +17,8 @@
#include "common/logging.hpp"
#include "common/utils.hpp"

#include "common/spdlog/sinks/rotating_file_sink.h"
#include "common/spdlog/spdlog.h"
#include "spdlog/sinks/rotating_file_sink.h"
#include "spdlog/spdlog.h"

namespace dnnl {
namespace impl {
Expand Down
18 changes: 0 additions & 18 deletions src/common/spdlog/.clang-format

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1326f7c

Please sign in to comment.