Skip to content

Commit

Permalink
Fix IDA plugin build (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexodia authored and Mattiwatti committed May 23, 2019
1 parent 761ba53 commit 2764afe
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions 3rdparty/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
To build the IDA plugin, extract the contents of idasdk695.zip in the directory "idasdk"
2 changes: 1 addition & 1 deletion PluginGeneric/AttachDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <ollydbg2/plugin.h>
#elif __IDP__
#include "..\ScyllaHideIDAProPlugin\resource.h"
#include <idasdk/idp.hpp>
#include <idp.hpp>
#elif X64DBG
#include "..\ScyllaHideX64DBGPlugin\resource.h"
#endif
Expand Down
6 changes: 3 additions & 3 deletions PluginGeneric/OptionsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@

#elif defined(__IDP__)
//#define BUILD_IDA_64BIT 1
#include <idasdk/ida.hpp>
#include <idasdk/idp.hpp>
#include <idasdk/dbg.hpp>
#include <ida.hpp>
#include <idp.hpp>
#include <dbg.hpp>
#include "..\ScyllaHideIDAProPlugin\IdaServerClient.h"
#include "..\PluginGeneric\AttachDialog.h"
#include "..\ScyllaHideIDAProPlugin\resource.h"
Expand Down
4 changes: 2 additions & 2 deletions Scylla/scylla.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<AdditionalIncludeDirectories>$(SolutionDir);$(SolutionDir)3rdparty;$(SolutionDir)3rdparty\idasdk;</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SolutionDir);$(SolutionDir)3rdparty;$(SolutionDir)3rdparty\idasdk\include;</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32_NO_STATUS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<DiagnosticsFormat>Caret</DiagnosticsFormat>
<FunctionLevelLinking>true</FunctionLevelLinking>
Expand All @@ -26,7 +26,7 @@
<AdditionalOptions>/Gw /Zc:threadSafeInit- %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<AdditionalLibraryDirectories>$(SolutionDir)3rdparty;$(OutDir)</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories>$(SolutionDir)3rdparty;$(SolutionDir)3rdparty\idasdk\lib;$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>Scylla.lib;ntdll\ntdll_$(PlatformShortName).lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
<AdditionalOptions>/NOVCFEATURE /NOCOFFGRPINFO %(AdditionalOptions)</AdditionalOptions>
Expand Down
14 changes: 7 additions & 7 deletions ScyllaHideIDAProPlugin/ScyllaHideIDAProPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
//for 64bit - p64
#ifdef BUILD_IDA_64BIT
#define __EA64__
#pragma comment(lib, "idasdk/x86_win_vc_64/ida.lib")
#pragma comment(lib, "x86_win_vc_64/ida.lib")
#else
//for 32bit - plw
#pragma comment(lib, "idasdk/x86_win_vc_32/ida.lib")
#pragma comment(lib, "x86_win_vc_32/ida.lib")
#endif

#include <Windows.h>
#include <idasdk/ida.hpp>
#include <idasdk/idp.hpp>
#include <idasdk/dbg.hpp>
#include <idasdk/loader.hpp>
#include <idasdk/kernwin.hpp>
#include <ida.hpp>
#include <idp.hpp>
#include <dbg.hpp>
#include <loader.hpp>
#include <kernwin.hpp>
#include <Scylla/Logger.h>
#include <Scylla/Settings.h>
#include <Scylla/Version.h>
Expand Down

0 comments on commit 2764afe

Please sign in to comment.