|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 | 2 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
3 | 3 | <ItemGroup Label="ProjectConfigurations">
|
4 |
| - <ProjectConfiguration Include="Debug Dynamic Library|x64"> |
5 |
| - <Configuration>Debug Dynamic Library</Configuration> |
| 4 | + <ProjectConfiguration Include="Debug|x64"> |
| 5 | + <Configuration>Debug</Configuration> |
6 | 6 | <Platform>x64</Platform>
|
7 | 7 | </ProjectConfiguration>
|
8 |
| - <ProjectConfiguration Include="Release Dynamic Library|x64"> |
9 |
| - <Configuration>Release Dynamic Library</Configuration> |
| 8 | + <ProjectConfiguration Include="Release|x64"> |
| 9 | + <Configuration>Release</Configuration> |
10 | 10 | <Platform>x64</Platform>
|
11 | 11 | </ProjectConfiguration>
|
12 | 12 | </ItemGroup>
|
|
17 | 17 | <WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
|
18 | 18 | </PropertyGroup>
|
19 | 19 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
20 |
| - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Dynamic Library|x64'" Label="Configuration"> |
| 20 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> |
21 | 21 | <ConfigurationType>Application</ConfigurationType>
|
22 | 22 | <UseDebugLibraries>true</UseDebugLibraries>
|
23 | 23 | <PlatformToolset>v141</PlatformToolset>
|
24 | 24 | <CharacterSet>MultiByte</CharacterSet>
|
25 | 25 | </PropertyGroup>
|
26 |
| - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Dynamic Library|x64'" Label="Configuration"> |
| 26 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> |
27 | 27 | <ConfigurationType>Application</ConfigurationType>
|
28 | 28 | <UseDebugLibraries>false</UseDebugLibraries>
|
29 | 29 | <PlatformToolset>v141</PlatformToolset>
|
|
35 | 35 | </ImportGroup>
|
36 | 36 | <ImportGroup Label="Shared">
|
37 | 37 | </ImportGroup>
|
38 |
| - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug Dynamic Library|x64'"> |
| 38 | + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
39 | 39 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
40 | 40 | </ImportGroup>
|
41 |
| - <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release Dynamic Library|x64'"> |
| 41 | + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
42 | 42 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
43 | 43 | </ImportGroup>
|
44 | 44 | <PropertyGroup Label="UserMacros" />
|
45 |
| - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Dynamic Library|x64'"> |
46 |
| - <OutDir>$(SolutionDir)bin\$(Platform)\$(Configuration)\$(ProjectName)\</OutDir> |
47 |
| - <IntDir>$(SolutionDir)bin\intermediates\$(Platform)\$(Configuration)\$(ProjectName)\</IntDir> |
48 |
| - <IncludePath>$(ProjectDir)..\..\library\windows\dependencies\;$(ProjectDir)..\..\;$(IncludePath);$(ProjectDir)..\..\library\windows\;$(ProjectDir)..\..\library\include\;$(ProjectDir)..\..\library\common\client_wrapper\include\</IncludePath> |
49 |
| - <LibraryPath>$(ProjectDir)..\..\library\windows\dependencies\GLFW\;$(SolutionDir)bin\$(Platform)\$(Configuration)\GLFW Library\;$(LibraryPath)</LibraryPath> |
| 45 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
| 46 | + <OutDir>$(ProjectDir)..\build\windows_fde\$(Platform)\$(Configuration)\$(ProjectName)\</OutDir> |
| 47 | + <IntDir>$(ProjectDir)..\build\windows_fde\intermediates\$(Platform)\$(Configuration)\$(ProjectName)\</IntDir> |
| 48 | + <IncludePath>$(ProjectDir)..\..\;$(IncludePath);$(ProjectDir)..\..\out\include\;$(ProjectDir)..\..\out\fde_cpp_wrapper\include</IncludePath> |
| 49 | + <LibraryPath>$(ProjectDir)..\..\out;$(ProjectDir)..\..\out\gen\glfw\GLFW\;$(LibraryPath)</LibraryPath> |
50 | 50 | </PropertyGroup>
|
51 |
| - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Dynamic Library|x64'"> |
52 |
| - <OutDir>$(SolutionDir)bin\$(Platform)\$(Configuration)\$(ProjectName)\</OutDir> |
53 |
| - <IntDir>$(SolutionDir)bin\intermediates\$(Platform)\$(Configuration)\$(ProjectName)\</IntDir> |
54 |
| - <IncludePath>$(ProjectDir)..\..\library\windows\dependencies\;$(ProjectDir)..\..\;$(IncludePath);$(ProjectDir)..\..\library\windows\;$(ProjectDir)..\..\library\include\;$(ProjectDir)..\..\library\common\client_wrapper\include\</IncludePath> |
55 |
| - <LibraryPath>$(ProjectDir)..\..\library\windows\dependencies\GLFW\;$(SolutionDir)bin\$(Platform)\$(Configuration)\GLFW Library\;$(LibraryPath)</LibraryPath> |
| 51 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
| 52 | + <OutDir>$(ProjectDir)..\build\windows_fde\$(Platform)\$(Configuration)\$(ProjectName)\</OutDir> |
| 53 | + <IntDir>$(ProjectDir)..\build\windows_fde\intermediates\$(Platform)\$(Configuration)\$(ProjectName)\</IntDir> |
| 54 | + <IncludePath>$(ProjectDir)..\..\;$(IncludePath);$(ProjectDir)..\..\out\include\;$(ProjectDir)..\..\out\fde_cpp_wrapper\include</IncludePath> |
| 55 | + <LibraryPath>$(ProjectDir)..\..\out;$(ProjectDir)..\..\out\gen\glfw\GLFW\;$(LibraryPath)</LibraryPath> |
56 | 56 | </PropertyGroup>
|
57 |
| - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Dynamic Library|x64'"> |
| 57 | + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
58 | 58 | <ClCompile>
|
59 | 59 | <WarningLevel>Level3</WarningLevel>
|
60 | 60 | <Optimization>Disabled</Optimization>
|
61 | 61 | <SDLCheck>true</SDLCheck>
|
62 | 62 | <ConformanceMode>true</ConformanceMode>
|
63 | 63 | <AdditionalIncludeDirectories>
|
64 | 64 | </AdditionalIncludeDirectories>
|
65 |
| - <PreprocessorDefinitions>_MBCS;%(PreprocessorDefinitions);USE_FDE_TREE_PATHS</PreprocessorDefinitions> |
| 65 | + <PreprocessorDefinitions>_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
66 | 66 | </ClCompile>
|
67 | 67 | <Link>
|
68 |
| - <AdditionalDependencies>flutter_embedder.lib;glfw3.lib;opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies> |
| 68 | + <AdditionalDependencies>flutter_embedder.dll.lib;glfw3.lib;opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies> |
69 | 69 | </Link>
|
70 | 70 | <PreBuildEvent>
|
71 |
| - <Command>$(ProjectDir)scripts\build_example_app</Command> |
72 |
| - <Message>Build the example app</Message> |
| 71 | + <Command>$(ProjectDir)scripts\run_gn_build</Command> |
| 72 | + <Message>Run the embedder library's GN build</Message> |
73 | 73 | </PreBuildEvent>
|
74 | 74 | <PreLinkEvent>
|
75 |
| - <Command>xcopy /y /d /q "$(OutputPath)..\GLFW Library\flutter_engine.dll" "$(OutputPath)"</Command> |
76 |
| - <Message>Get the flutter_engine.dll file from GLFW Library bin folder</Message> |
| 75 | + <Command> |
| 76 | + </Command> |
| 77 | + <Message> |
| 78 | + </Message> |
77 | 79 | </PreLinkEvent>
|
78 | 80 | <PostBuildEvent>
|
79 |
| - <Command>xcopy /y /d /q "$(OutputPath)..\GLFW Library\flutter_embedder.dll" "$(OutputPath)"</Command> |
| 81 | + <Command>$(ProjectDir)scripts\build_example_app "$(OutputPath)"</Command> |
80 | 82 | </PostBuildEvent>
|
81 | 83 | <PostBuildEvent>
|
82 |
| - <Message>Copy flutter_embedder.dll from library out to example out dir</Message> |
| 84 | + <Message>Construct a runnable example from the various outputs</Message> |
83 | 85 | </PostBuildEvent>
|
84 | 86 | </ItemDefinitionGroup>
|
85 |
| - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Dynamic Library|x64'"> |
| 87 | + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
86 | 88 | <ClCompile>
|
87 | 89 | <WarningLevel>Level3</WarningLevel>
|
88 | 90 | <Optimization>MaxSpeed</Optimization>
|
|
92 | 94 | <ConformanceMode>true</ConformanceMode>
|
93 | 95 | <AdditionalIncludeDirectories>
|
94 | 96 | </AdditionalIncludeDirectories>
|
95 |
| - <PreprocessorDefinitions>_MBCS;%(PreprocessorDefinitions);USE_FDE_TREE_PATHS</PreprocessorDefinitions> |
| 97 | + <PreprocessorDefinitions>_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
96 | 98 | </ClCompile>
|
97 | 99 | <Link>
|
98 | 100 | <EnableCOMDATFolding>true</EnableCOMDATFolding>
|
99 | 101 | <OptimizeReferences>true</OptimizeReferences>
|
100 |
| - <AdditionalDependencies>flutter_embedder.lib;glfw3.lib;opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies> |
| 102 | + <AdditionalDependencies>flutter_embedder.dll.lib;glfw3.lib;opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies> |
101 | 103 | </Link>
|
102 | 104 | <PreBuildEvent>
|
103 |
| - <Command>$(ProjectDir)scripts\build_example_app</Command> |
104 |
| - <Message>Build the example app</Message> |
| 105 | + <Command>$(ProjectDir)scripts\run_gn_build</Command> |
| 106 | + <Message>Run the embedder library's GN build</Message> |
105 | 107 | </PreBuildEvent>
|
106 | 108 | <PreLinkEvent>
|
107 |
| - <Command>xcopy /y /d /q "$(OutputPath)..\GLFW Library\flutter_engine.dll" "$(OutputPath)"</Command> |
108 |
| - <Message>Get the flutter_engine.dll file from GLFW Library bin folder</Message> |
| 109 | + <Command> |
| 110 | + </Command> |
| 111 | + <Message> |
| 112 | + </Message> |
109 | 113 | </PreLinkEvent>
|
110 | 114 | <PostBuildEvent>
|
111 |
| - <Command>xcopy /y /d /q "$(OutputPath)..\GLFW Library\flutter_embedder.dll" "$(OutputPath)"</Command> |
| 115 | + <Command>$(ProjectDir)scripts\build_example_app "$(OutputPath)"</Command> |
112 | 116 | </PostBuildEvent>
|
113 | 117 | <PostBuildEvent>
|
114 |
| - <Message>Copy flutter_embedder.dll from library out to example out dir</Message> |
| 118 | + <Message>Construct a runnable example from the various outputs</Message> |
115 | 119 | </PostBuildEvent>
|
116 | 120 | </ItemDefinitionGroup>
|
117 | 121 | <ItemGroup>
|
118 |
| - <ClCompile Include="..\..\library\common\client_wrapper\src\engine_method_result.cc" /> |
119 |
| - <ClCompile Include="..\..\library\common\client_wrapper\src\glfw\flutter_window_controller.cc" /> |
120 |
| - <ClCompile Include="..\..\library\common\client_wrapper\src\plugin_handler.cc" /> |
| 122 | + <ClCompile Include="..\..\out\fde_cpp_wrapper\engine_method_result.cc" /> |
| 123 | + <ClCompile Include="..\..\out\fde_cpp_wrapper\flutter_window_controller.cc" /> |
| 124 | + <ClCompile Include="..\..\out\fde_cpp_wrapper\plugin_handler.cc" /> |
121 | 125 | <ClCompile Include="flutter_embedder_example.cpp" />
|
122 | 126 | </ItemGroup>
|
123 |
| - <ItemGroup> |
124 |
| - <ProjectReference Include="..\..\library\windows\GLFW Library.vcxproj"> |
125 |
| - <Project>{90057fd8-9460-43a6-8cdf-3aac1c4255e5}</Project> |
126 |
| - </ProjectReference> |
127 |
| - </ItemGroup> |
128 | 127 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
129 | 128 | <ImportGroup Label="ExtensionTargets">
|
130 | 129 | </ImportGroup>
|
|
0 commit comments