1# Copyright 2020 The SwiftShader Authors. All Rights Reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of te License at
6#
7#    http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# This file sets configuration values for CMake's GraphViz generation.
16# See https://cmake.org/cmake/help/latest/module/CMakeGraphVizOptions.html
17
18# Defaults
19set(GRAPHVIZ_EXECUTABLES TRUE)
20set(GRAPHVIZ_STATIC_LIBS TRUE)
21set(GRAPHVIZ_SHARED_LIBS TRUE)
22set(GRAPHVIZ_MODULE_LIBS TRUE)
23set(GRAPHVIZ_INTERFACE_LIBS TRUE)
24set(GRAPHVIZ_OBJECT_LIBS TRUE)
25set(GRAPHVIZ_UNKNOWN_LIBS TRUE)
26set(GRAPHVIZ_CUSTOM_TARGETS TRUE)
27
28# Below are non-defaults
29
30# Render larger and with a nicer font. Default clips bottom of some characters.
31set(GRAPHVIZ_GRAPH_HEADER "node [ fontsize=16; fontname=Helvetica ];")
32
33# Don't show external lib targets
34set(GRAPHVIZ_EXTERNAL_LIBS FALSE)
35
36# Don't generate per-target dot files
37set(GRAPHVIZ_GENERATE_PER_TARGET FALSE)
38
39# Don't generate per-target depender dot files
40set(GRAPHVIZ_GENERATE_DEPENDERS FALSE)
41
42# List of targets to ignore
43set(GRAPHVIZ_IGNORE_TARGETS
44    core_tables
45    enum_string_mapping
46    extinst_tables
47    gmock_main
48    gtest_main
49    spirv-*
50    SPIRV-Tools-*
51    spv-*
52)
53