mirror of
https://github.com/geohot/qira
synced 2025-03-13 10:33:30 +03:00
merge supersat windows build scripts
This commit is contained in:
commit
68f7f062bb
@ -1 +0,0 @@
|
|||||||
../middleware
|
|
@ -1 +0,0 @@
|
|||||||
../cda/static/
|
|
@ -1 +0,0 @@
|
|||||||
../web/client
|
|
@ -1 +0,0 @@
|
|||||||
../web/favicon.ico
|
|
@ -1 +0,0 @@
|
|||||||
../web/qira.css
|
|
9
ida/build.bat
Normal file
9
ida/build.bat
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
@echo off
|
||||||
|
IF "%SDKROOT%"=="" (
|
||||||
|
ECHO SDKROOT is not defined. Please set it to the root directory of the IDA SDK.
|
||||||
|
exit /b
|
||||||
|
)
|
||||||
|
|
||||||
|
PUSHD win32
|
||||||
|
msbuild
|
||||||
|
POPD
|
@ -97,11 +97,7 @@ static void update_address(const char *type, ea_t addr) {
|
|||||||
ws_send(tmp);
|
ws_send(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _WIN32
|
static int idaapi hook(void *user_data, int event_id, va_list va) {
|
||||||
static int __stdcall hook(void *user_data, int event_id, va_list va) {
|
|
||||||
#else
|
|
||||||
static int hook(void *user_data, int event_id, va_list va) {
|
|
||||||
#endif
|
|
||||||
static ea_t old_addr = 0;
|
static ea_t old_addr = 0;
|
||||||
ea_t addr;
|
ea_t addr;
|
||||||
if (event_id == view_curpos) {
|
if (event_id == view_curpos) {
|
||||||
@ -133,7 +129,7 @@ static struct libwebsocket_protocols protocols[] = {
|
|||||||
qthread_t websockets_thread;
|
qthread_t websockets_thread;
|
||||||
int websockets_running;
|
int websockets_running;
|
||||||
|
|
||||||
int websocket_thread(void *) {
|
int idaapi websocket_thread(void *) {
|
||||||
struct libwebsocket_context* context;
|
struct libwebsocket_context* context;
|
||||||
|
|
||||||
struct lws_context_creation_info info;
|
struct lws_context_creation_info info;
|
||||||
@ -165,7 +161,7 @@ int websocket_thread(void *) {
|
|||||||
|
|
||||||
void start_websocket_thread() {
|
void start_websocket_thread() {
|
||||||
websockets_running = 1;
|
websockets_running = 1;
|
||||||
websockets_thread = qthread_create((qthread_cb_t)websocket_thread, NULL);
|
websockets_thread = qthread_create(websocket_thread, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void exit_websocket_thread() {
|
void exit_websocket_thread() {
|
||||||
|
17
ida/win32/win32.sln
Normal file
17
ida/win32/win32.sln
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||||
|
# Visual Studio 2010
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "win32", "win32.vcxproj", "{42AA3BA2-7FA5-408D-8B9D-56175F75D604}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Release|Win32 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{42AA3BA2-7FA5-408D-8B9D-56175F75D604}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{42AA3BA2-7FA5-408D-8B9D-56175F75D604}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
57
ida/win32/win32.vcxproj
Normal file
57
ida/win32/win32.vcxproj
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{42AA3BA2-7FA5-408D-8B9D-56175F75D604}</ProjectGuid>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<RootNamespace>win32</RootNamespace>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<TargetName>qira</TargetName>
|
||||||
|
<TargetExt>.plw</TargetExt>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup>
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>MinSpace</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<PreprocessorDefinitions>__NT__;__IDP__;WIN32;NDEBUG;_WINDOWS;_USRDLL;WIN32_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>$(SDKROOT)\include</AdditionalIncludeDirectories>
|
||||||
|
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<AdditionalDependencies>libcmt.lib;C:\Users\supersat\Documents\Research\external\libwebsockets\build\lib\MinSizeRel\websockets_static.lib;C:\Program Files (x86)\IDA\idasdk63\lib\x86_win_vc_32\ida.lib;C:\Program Files (x86)\IDA\idasdk63\lib\x86_win_vc_32\pro.lib;ws2_32.lib;C:\Program Files (x86)\OpenSSL\lib\VC\static\libeay32MT.lib;C:\Program Files (x86)\OpenSSL\lib\VC\static\ssleay32MT.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<IgnoreSpecificDefaultLibraries>msvcrt.lib</IgnoreSpecificDefaultLibraries>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\template.cpp" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
Loading…
x
Reference in New Issue
Block a user