merge supersat windows build scripts

This commit is contained in:
George Hotz 2014-08-20 22:54:47 -07:00
commit 68f7f062bb
9 changed files with 86 additions and 12 deletions

View File

@ -1 +0,0 @@
../middleware

View File

@ -1 +0,0 @@
../cda/static/

View File

@ -1 +0,0 @@
../web/client

View File

@ -1 +0,0 @@
../web/favicon.ico

View File

@ -1 +0,0 @@
../web/qira.css

9
ida/build.bat Normal file
View 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

View File

@ -97,11 +97,7 @@ static void update_address(const char *type, ea_t addr) {
ws_send(tmp);
}
#ifdef _WIN32
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 int idaapi hook(void *user_data, int event_id, va_list va) {
static ea_t old_addr = 0;
ea_t addr;
if (event_id == view_curpos) {
@ -133,7 +129,7 @@ static struct libwebsocket_protocols protocols[] = {
qthread_t websockets_thread;
int websockets_running;
int websocket_thread(void *) {
int idaapi websocket_thread(void *) {
struct libwebsocket_context* context;
struct lws_context_creation_info info;
@ -165,7 +161,7 @@ int websocket_thread(void *) {
void start_websocket_thread() {
websockets_running = 1;
websockets_thread = qthread_create((qthread_cb_t)websocket_thread, NULL);
websockets_thread = qthread_create(websocket_thread, NULL);
}
void exit_websocket_thread() {

17
ida/win32/win32.sln Normal file
View 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
View 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>