mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-22 23:36:46 +08:00
...
This commit is contained in:
@@ -71,12 +71,13 @@ int wmain(int argc, const wchar_t* argv[])
|
||||
// the loop exist because x64 binaries are stored in ../x64/Debug instead of ../Debug
|
||||
cppFolder = cppFolder.GetFolder();
|
||||
}
|
||||
cppFolder = cppFolder / L"W05_DynamicRun" / L"Generated";
|
||||
cppFolder = cppFolder / L"W05_StaticRun" / L"Generated";
|
||||
|
||||
auto cppInput = MakePtr<WfCppInput>(L"W05Script");
|
||||
cppInput->comment = L"THIS FILE IS GENERATED BY W05_COMPILE";
|
||||
cppInput->headerGuardPrefix = L"W05_SCRIPT_";
|
||||
cppInput->normalIncludes.Add(L"../../W05_Lib/W05_Lib.h");
|
||||
cppInput->normalIncludes.Add(L"VlppWorkflowLibrary.h");
|
||||
|
||||
auto cppOutput = GenerateCppFiles(cppInput, &manager);
|
||||
for (vint i = 0; i < cppOutput->cppFiles.Count(); i++)
|
||||
|
||||
+1
@@ -11,6 +11,7 @@ https://github.com/vczh-libraries
|
||||
#define W05_SCRIPT_W05SCRIPT
|
||||
|
||||
#include "../../W05_Lib/W05_Lib.h"
|
||||
#include "VlppWorkflowLibrary.h"
|
||||
|
||||
#if defined( _MSC_VER)
|
||||
#pragma warning(push)
|
||||
@@ -0,0 +1,14 @@
|
||||
#include "Generated/W05ScriptIncludes.h"
|
||||
|
||||
using namespace myscript;
|
||||
|
||||
int main()
|
||||
{
|
||||
// VCZH_DEBUG_NO_REFLECTION is on
|
||||
// so we don't need, and are not allowed, to start reflection
|
||||
auto myapp = MakePtr<MyApp>();
|
||||
myapp->CreateScripting()->Execute(L"Gaclib");
|
||||
|
||||
// we need to call this because we use generated code from Workflow script
|
||||
FinalizeGlobalStorage();
|
||||
}
|
||||
@@ -152,9 +152,9 @@
|
||||
<ClInclude Include="..\..\..\Import\VlppReflection.h" />
|
||||
<ClInclude Include="..\..\..\Import\VlppRegex.h" />
|
||||
<ClInclude Include="..\..\..\Import\VlppWorkflowLibrary.h" />
|
||||
<ClInclude Include="..\W05_DynamicRun\Generated\W05Script.h" />
|
||||
<ClInclude Include="..\W05_DynamicRun\Generated\W05ScriptIncludes.h" />
|
||||
<ClInclude Include="..\W05_Lib\W05_Lib.h" />
|
||||
<ClInclude Include="Generated\W05Script.h" />
|
||||
<ClInclude Include="Generated\W05ScriptIncludes.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\Import\Vlpp.cpp">
|
||||
@@ -187,8 +187,9 @@
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">/bigobj %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">/bigobj %(AdditionalOptions)</AdditionalOptions>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\W05_DynamicRun\Generated\W05Script.cpp" />
|
||||
<ClCompile Include="..\W05_Lib\W05_Lib.cpp" />
|
||||
<ClCompile Include="Generated\W05Script.cpp" />
|
||||
<ClCompile Include="Main.cpp" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
|
||||
@@ -39,10 +39,10 @@
|
||||
<ClInclude Include="..\W05_Lib\W05_Lib.h">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\W05_DynamicRun\Generated\W05ScriptIncludes.h">
|
||||
<ClInclude Include="Generated\W05Script.h">
|
||||
<Filter>Generated</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\W05_DynamicRun\Generated\W05Script.h">
|
||||
<ClInclude Include="Generated\W05ScriptIncludes.h">
|
||||
<Filter>Generated</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
@@ -65,7 +65,10 @@
|
||||
<ClCompile Include="..\W05_Lib\W05_Lib.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\W05_DynamicRun\Generated\W05Script.cpp">
|
||||
<ClCompile Include="Main.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Generated\W05Script.cpp">
|
||||
<Filter>Generated</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user