Skip to content

Commit

Permalink
Added cmd runner
Browse files Browse the repository at this point in the history
  • Loading branch information
ForserX committed Mar 28, 2023
1 parent 090193f commit 7951617
Show file tree
Hide file tree
Showing 7 changed files with 232 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ data/repo/onnx.venv
data/repo/shark.venv
data/repo/cuda.venv
data/nodai_SHARK.egg-info/

.vs/

ui-src/bin/
ui-src/obj/

XUI/x64/
x64/

*.vmfb
*.csv
*.pyc
Expand Down
30 changes: 30 additions & 0 deletions SD-FXUI.sln
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,48 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
EndProject
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "diffusion_scripts", "data\diffusion_scripts.pyproj", "{92159991-7FDC-4656-8745-1D7FD165109F}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "XUI", "XUI\XUI.vcxproj", "{93726EB0-B5D8-4806-865A-38EA0C214474}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BE276484-F06F-418A-9F7C-BE1448545B66}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BE276484-F06F-418A-9F7C-BE1448545B66}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BE276484-F06F-418A-9F7C-BE1448545B66}.Debug|x64.ActiveCfg = Debug|Any CPU
{BE276484-F06F-418A-9F7C-BE1448545B66}.Debug|x64.Build.0 = Debug|Any CPU
{BE276484-F06F-418A-9F7C-BE1448545B66}.Debug|x86.ActiveCfg = Debug|Any CPU
{BE276484-F06F-418A-9F7C-BE1448545B66}.Debug|x86.Build.0 = Debug|Any CPU
{BE276484-F06F-418A-9F7C-BE1448545B66}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BE276484-F06F-418A-9F7C-BE1448545B66}.Release|Any CPU.Build.0 = Release|Any CPU
{BE276484-F06F-418A-9F7C-BE1448545B66}.Release|x64.ActiveCfg = Release|Any CPU
{BE276484-F06F-418A-9F7C-BE1448545B66}.Release|x64.Build.0 = Release|Any CPU
{BE276484-F06F-418A-9F7C-BE1448545B66}.Release|x86.ActiveCfg = Release|Any CPU
{BE276484-F06F-418A-9F7C-BE1448545B66}.Release|x86.Build.0 = Release|Any CPU
{92159991-7FDC-4656-8745-1D7FD165109F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{92159991-7FDC-4656-8745-1D7FD165109F}.Debug|x64.ActiveCfg = Debug|Any CPU
{92159991-7FDC-4656-8745-1D7FD165109F}.Debug|x86.ActiveCfg = Debug|Any CPU
{92159991-7FDC-4656-8745-1D7FD165109F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{92159991-7FDC-4656-8745-1D7FD165109F}.Release|x64.ActiveCfg = Release|Any CPU
{92159991-7FDC-4656-8745-1D7FD165109F}.Release|x86.ActiveCfg = Release|Any CPU
{93726EB0-B5D8-4806-865A-38EA0C214474}.Debug|Any CPU.ActiveCfg = Debug|x64
{93726EB0-B5D8-4806-865A-38EA0C214474}.Debug|Any CPU.Build.0 = Debug|x64
{93726EB0-B5D8-4806-865A-38EA0C214474}.Debug|x64.ActiveCfg = Debug|x64
{93726EB0-B5D8-4806-865A-38EA0C214474}.Debug|x64.Build.0 = Debug|x64
{93726EB0-B5D8-4806-865A-38EA0C214474}.Debug|x86.ActiveCfg = Debug|Win32
{93726EB0-B5D8-4806-865A-38EA0C214474}.Debug|x86.Build.0 = Debug|Win32
{93726EB0-B5D8-4806-865A-38EA0C214474}.Release|Any CPU.ActiveCfg = Release|x64
{93726EB0-B5D8-4806-865A-38EA0C214474}.Release|Any CPU.Build.0 = Release|x64
{93726EB0-B5D8-4806-865A-38EA0C214474}.Release|x64.ActiveCfg = Release|x64
{93726EB0-B5D8-4806-865A-38EA0C214474}.Release|x64.Build.0 = Release|x64
{93726EB0-B5D8-4806-865A-38EA0C214474}.Release|x86.ActiveCfg = Release|Win32
{93726EB0-B5D8-4806-865A-38EA0C214474}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
25 changes: 25 additions & 0 deletions XUI/XUI.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// XUI.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы.
//

#include <Windows.h>
#include <filesystem>
#include <string>

std::string GetTryFileDirectory()
{
char buffer[MAX_PATH];
GetModuleFileNameA(NULL, buffer, MAX_PATH);
std::string::size_type pos = std::string(buffer).find_last_of("\\/");

return std::string(buffer).substr(0, pos);
}

int main()
{
std::string Dir = std::move(GetTryFileDirectory());

std::filesystem::current_path(Dir); //setting path
system("@start bins\\SD-FXUI.exe");

return 0;
}
137 changes: 137 additions & 0 deletions XUI/XUI.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>16.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{93726eb0-b5d8-4806-865a-38ea0c214474}</ProjectGuid>
<RootNamespace>XUI</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp20</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp20</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="XUI.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
22 changes: 22 additions & 0 deletions XUI/XUI.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Исходные файлы">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Файлы заголовков">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
</Filter>
<Filter Include="Файлы ресурсов">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="XUI.cpp">
<Filter>Исходные файлы</Filter>
</ClCompile>
</ItemGroup>
</Project>
11 changes: 11 additions & 0 deletions ui-src/App.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>

<runtime>
<!-- XMLNS is a necessary feature. Specifies the XML namespace required for the assembly binding. Use strings "URN: Architecture-Microsoft-COM: ASM.v1" as a value. -->
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<PublisherPolicy Apply = "YES" />
<!-- Specify whether to use the Publisher Policy -->
<!-- Specifies the subdirectory for the public language runtime when loading the assembly, where privatepath is relative to the * .exe.config file, multiple folders separated by a semicolon. -->
<probing privatePath="binaries;"/>
</assemblyBinding>
</runtime>

</configuration>
4 changes: 2 additions & 2 deletions ui-src/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ public partial class App : Application
{
}



}

0 comments on commit 7951617

Please sign in to comment.