Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ortools/sat/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ add_library(${NAME} OBJECT ${_SRCS})
set_target_properties(${NAME} PROPERTIES
POSITION_INDEPENDENT_CODE ON
)
if(MSVC AND BUILD_SHARED_LIBS)
target_compile_definitions(${NAME} PUBLIC "OR_BUILD_DLL")
target_compile_definitions(${NAME} PRIVATE "OR_EXPORT")
endif()
target_include_directories(${NAME} PRIVATE
${PROJECT_SOURCE_DIR}
${PROJECT_BINARY_DIR})
Expand Down
7 changes: 4 additions & 3 deletions ortools/sat/cp_model_solver.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@

#include "absl/flags/declare.h"
#include "absl/strings/string_view.h"
#include "ortools/base/base_export.h"
#include "ortools/sat/cp_model.pb.h"
#include "ortools/sat/model.h"
#include "ortools/sat/sat_parameters.pb.h"

ABSL_DECLARE_FLAG(bool, cp_model_dump_response);
ABSL_DECLARE_FLAG(bool, cp_model_drat_check);
ABSL_DECLARE_FLAG(bool, cp_model_lrat_check);
OR_DLL ABSL_DECLARE_FLAG(bool, cp_model_dump_response);
OR_DLL ABSL_DECLARE_FLAG(bool, cp_model_drat_check);
OR_DLL ABSL_DECLARE_FLAG(bool, cp_model_lrat_check);

namespace operations_research {
namespace sat {
Expand Down
9 changes: 5 additions & 4 deletions ortools/sat/cp_model_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,17 @@
#include "absl/types/span.h"
#include "google/protobuf/message.h"
#include "google/protobuf/text_format.h"
#include "ortools/base/base_export.h"
#include "ortools/base/hash.h"
#include "ortools/base/options.h"
#include "ortools/sat/cp_model.pb.h"
#include "ortools/util/bitset.h"
#include "ortools/util/sorted_interval_list.h"

ABSL_DECLARE_FLAG(bool, cp_model_dump_models);
ABSL_DECLARE_FLAG(std::string, cp_model_dump_prefix);
ABSL_DECLARE_FLAG(bool, cp_model_dump_problematic_lns);
ABSL_DECLARE_FLAG(bool, cp_model_dump_submodels);
OR_DLL ABSL_DECLARE_FLAG(bool, cp_model_dump_models);
OR_DLL ABSL_DECLARE_FLAG(std::string, cp_model_dump_prefix);
OR_DLL ABSL_DECLARE_FLAG(bool, cp_model_dump_problematic_lns);
OR_DLL ABSL_DECLARE_FLAG(bool, cp_model_dump_submodels);

namespace operations_research {
namespace sat {
Expand Down
3 changes: 2 additions & 1 deletion ortools/sat/presolve_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "ortools/base/base_export.h"
#include "ortools/base/logging.h"
#include "ortools/sat/cp_model.pb.h"
#include "ortools/sat/cp_model_utils.h"
Expand All @@ -44,7 +45,7 @@
#include "ortools/util/sorted_interval_list.h"
#include "ortools/util/time_limit.h"

ABSL_DECLARE_FLAG(bool, cp_model_debug_postsolve);
OR_DLL ABSL_DECLARE_FLAG(bool, cp_model_debug_postsolve);

namespace operations_research {
namespace sat {
Expand Down
Loading