Skip to content

Commit

Permalink
Add missing/new files for HEAD release (#228)
Browse files Browse the repository at this point in the history
* Add new files to HEAD source list(s)

* Install missing headers

* Add extra headers that were missing
  • Loading branch information
ekilmer authored Dec 25, 2023
1 parent ee82a39 commit b4f479a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ set(public_include_header_list
)
if(sleigh_RELEASE_IS_HEAD)
list(APPEND public_include_header_list
"${library_root}/analyzesigs.hh"
"${library_root}/modelrules.hh"
"${library_root}/signature.hh"
"${library_root}/signature_ghidra.hh"
)
endif()
# Create custom target so that IDEs know these files are part of the sources
Expand Down
6 changes: 6 additions & 0 deletions src/setup-ghidra-source.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ set(sleigh_deccore_source_list
if("${sleigh_RELEASE_TYPE}" STREQUAL "HEAD")
list(APPEND sleigh_deccore_source_list
"${library_root}/modelrules.cc"
"${library_root}/signature.cc"
)
endif()

Expand Down Expand Up @@ -211,6 +212,11 @@ set(sleigh_ghidra_source_list
"${library_root}/comment_ghidra.cc"
"${library_root}/string_ghidra.cc"
)
if("${sleigh_RELEASE_TYPE}" STREQUAL "HEAD")
list(APPEND sleigh_ghidra_source_list
"${library_root}/signature_ghidra.cc"
)
endif()

set(sleigh_slacomp_source_list
"${library_root}/slgh_compile.cc"
Expand Down
7 changes: 7 additions & 0 deletions support/include/sleigh/libsleigh.hh
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ namespace ghidra {
#include <sleigh/unionresolve.hh>
#include <sleigh/marshal.hh>

#ifdef sleigh_RELEASE_IS_HEAD
#include <sleigh/analyzesigs.hh>
#include <sleigh/modelrules.hh>
#include <sleigh/signature.hh>
#include <sleigh/signature_ghidra.hh>
#endif

#ifndef _MSC_VER
#pragma GCC diagnostic pop
#endif
Expand Down

0 comments on commit b4f479a

Please sign in to comment.