blender/extern/glog/CMakeLists.txt
Campbell Barton c434782e3a File headers: SPDX License migration
Use a shorter/simpler license convention, stops the header taking so
much space.

Follow the SPDX license specification: https://spdx.org/licenses

- C/C++/objc/objc++
- Python
- Shell Scripts
- CMake, GNUmakefile

While most of the source tree has been included

- `./extern/` was left out.
- `./intern/cycles` & `./intern/atomic` are also excluded because they
  use different header conventions.

doc/license/SPDX-license-identifiers.txt has been added to list SPDX all
used identifiers.

See P2788 for the script that automated these edits.

Reviewed By: brecht, mont29, sergey

Ref D14069
2022-02-11 09:14:36 +11:00

90 lines
1.6 KiB
CMake

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright 2016 Blender Foundation. All rights reserved.
set(INC
src
../gflags/src
)
set(INC_SYS
)
set(SRC
src/demangle.cc
src/logging.cc
src/raw_logging.cc
src/signalhandler.cc
src/symbolize.cc
src/utilities.cc
src/vlog_is_on.cc
src/demangle.h
src/symbolize.h
src/utilities.h
src/config.h
src/config_freebsd.h
src/config_haiku.h
src/config_hurd.h
src/config_linux.h
src/config_mac.h
src/base/commandlineflags.h
src/base/googleinit.h
src/base/mutex.h
src/stacktrace.h
src/stacktrace_generic-inl.h
src/stacktrace_libunwind-inl.h
src/stacktrace_powerpc-inl.h
src/stacktrace_x86_64-inl.h
src/stacktrace_x86-inl.h
src/stacktrace_windows-inl.h
)
set(LIB
)
if(NOT WITH_SYSTEM_GFLAGS)
list(APPEND LIB
extern_gflags
)
endif()
if(WIN32)
list(APPEND SRC
src/windows/port.cc
src/windows/glog/raw_logging.h
src/windows/glog/vlog_is_on.h
src/windows/glog/logging.h
src/windows/glog/log_severity.h
src/windows/port.h
src/windows/config.h
)
list(APPEND INC
src/windows
)
if(MSVC)
# Suppress warning about google::LogMessageFatal::~LogMessageFatal
# not returning.
add_definitions("/wd4722")
endif()
else()
list(APPEND INC
include
)
list(APPEND SRC
include/glog/logging.h
include/glog/log_severity.h
include/glog/raw_logging.h
include/glog/vlog_is_on.h
)
endif()
add_definitions(${GFLAGS_DEFINES})
add_definitions(${GLOG_DEFINES})
blender_add_lib(extern_glog "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")