cmake: Generate cvc4_export.h and set visibility to hidden. (#6139)
authorMathias Preiner <mathias.preiner@gmail.com>
Tue, 16 Mar 2021 17:56:01 +0000 (10:56 -0700)
committerGitHub <noreply@github.com>
Tue, 16 Mar 2021 17:56:01 +0000 (10:56 -0700)
commitd6890791897ddebf1212d3e3147bf7aeb2415b27
tree51c69ba48a7550b6a7660e2488b4b39cbedba539
parent0d3ea6f2dcaf80d386c7765ee8a708c18e3ed574
cmake: Generate cvc4_export.h and set visibility to hidden. (#6139)

The build system (cmake) will automatically generate an export header
cvc4_export.h, which makes sure that the correct export features are
defined depending on the compiler and target platform. The macro CVC4_EXPORT
replaces CVC4_PUBLIC and its usage is reduced by 2/3.

Co-authored-by: Gereon Kremer <nafur42@gmail.com>
81 files changed:
CMakeLists.txt
cmake/ConfigDebug.cmake
src/CMakeLists.txt
src/api/cvc4cpp.h
src/api/cvc4cppkind.h
src/api/python/CMakeLists.txt
src/api/python/genkinds.py
src/base/check.h
src/base/configuration.h
src/base/exception.h
src/base/listener.h
src/base/modal_exception.h
src/base/output.cpp
src/base/output.h
src/expr/array_store_all.h
src/expr/ascription_type.h
src/expr/datatype_index.h
src/expr/emptybag.h
src/expr/emptyset.h
src/expr/expr_iomanip.h
src/expr/kind_template.h
src/expr/record.h
src/expr/symbol_manager.h
src/expr/symbol_table.h
src/expr/uninterpreted_constant.h
src/include/cvc4_public.h
src/main/driver_unified.cpp
src/main/interactive_shell.h
src/options/language.h
src/options/mkoptions.py
src/options/option_exception.h
src/options/options.h
src/options/printer_modes.h
src/options/set_language.h
src/parser/input.h
src/parser/parse_op.h
src/parser/parser.h
src/parser/parser_builder.h
src/parser/parser_exception.h
src/prop/minisat/core/Solver.h
src/prop/minisat/simp/SimpSolver.h
src/prop/prop_engine.h
src/smt/command.h
src/smt/dump.cpp
src/smt/dump.h
src/smt/logic_exception.h
src/smt/optimization_solver.h
src/smt/smt_engine.h
src/theory/bags/make_bag_op.h
src/theory/datatypes/tuple_project_op.h
src/theory/logic_info.h
src/theory/sets/singleton_op.h
src/theory/theory_id.h
src/util/abstract_value.h
src/util/bitvector.h
src/util/cardinality.h
src/util/divisible.h
src/util/floatingpoint.h
src/util/floatingpoint_size.h
src/util/iand.h
src/util/indexed_root_predicate.h
src/util/integer_cln_imp.h
src/util/integer_gmp_imp.h
src/util/maybe.h
src/util/rational_cln_imp.h
src/util/rational_gmp_imp.h
src/util/real_algebraic_number_poly_imp.h
src/util/regexp.h
src/util/resource_manager.h
src/util/result.h
src/util/roundingmode.h
src/util/safe_print.h
src/util/sexpr.h
src/util/statistics.h
src/util/statistics_registry.h
src/util/stats_base.h
src/util/stats_timer.h
src/util/stats_utils.h
src/util/string.h
src/util/tuple.h
src/util/unsafe_interrupt_exception.h