-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extract patch from code file. this might make it easier to apply it on updated versions. not yet tested.
- Loading branch information
1 parent
197b67a
commit abadda1
Showing
3 changed files
with
32 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
lib/native/source/libboolector/include_interface_and_jni.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
index e2781eb..b838d8e 100644 | ||
--- a/src/CMakeLists.txt | ||
+++ b/src/CMakeLists.txt | ||
@@ -1,6 +1,7 @@ | ||
set(libboolector_src_files | ||
aigprop.c | ||
boolector.c | ||
+ interface_wrap.c | ||
boolectormc.c | ||
btorabort.c | ||
btoraig.c | ||
@@ -96,6 +97,14 @@ target_include_directories(boolector | ||
target_include_directories(boolector PRIVATE ${Btor2Tools_INCLUDE_DIR}) | ||
target_link_libraries(boolector ${Btor2Tools_LIBRARIES}) | ||
|
||
+find_package(JNI) | ||
+if(JNI_FOUND) | ||
+ message (STATUS "JNI_INCLUDE_DIRS=${JNI_INCLUDE_DIRS}") | ||
+ message (STATUS "JNI_LIBRARIES=${JNI_LIBRARIES}") | ||
+ target_include_directories(boolector PRIVATE ${JNI_INCLUDE_DIRS}) | ||
+ target_link_libraries(boolector ${JNI_LIBRARIES}) | ||
+endif() | ||
+ | ||
if(GMP_FOUND) | ||
target_include_directories(boolector PRIVATE ${GMP_INCLUDE_DIR}) | ||
target_link_libraries(boolector ${GMP_LIBRARIES}) |