Skip to content

Commit dc16ebf

Browse files
committed
add android build project for visual studio 2017
1 parent 69a2f47 commit dc16ebf

3 files changed

Lines changed: 253 additions & 0 deletions

File tree

tmxlite-android/pch.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include <jni.h>
2+
#include <errno.h>
3+
4+
#include <string.h>
5+
#include <unistd.h>
6+
#include <sys/resource.h>
7+
8+
#include <android/log.h>
Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|ARM">
5+
<Configuration>Debug</Configuration>
6+
<Platform>ARM</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|ARM">
9+
<Configuration>Release</Configuration>
10+
<Platform>ARM</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Debug|ARM64">
13+
<Configuration>Debug</Configuration>
14+
<Platform>ARM64</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|ARM64">
17+
<Configuration>Release</Configuration>
18+
<Platform>ARM64</Platform>
19+
</ProjectConfiguration>
20+
<ProjectConfiguration Include="Debug|x64">
21+
<Configuration>Debug</Configuration>
22+
<Platform>x64</Platform>
23+
</ProjectConfiguration>
24+
<ProjectConfiguration Include="Release|x64">
25+
<Configuration>Release</Configuration>
26+
<Platform>x64</Platform>
27+
</ProjectConfiguration>
28+
<ProjectConfiguration Include="Debug|x86">
29+
<Configuration>Debug</Configuration>
30+
<Platform>x86</Platform>
31+
</ProjectConfiguration>
32+
<ProjectConfiguration Include="Release|x86">
33+
<Configuration>Release</Configuration>
34+
<Platform>x86</Platform>
35+
</ProjectConfiguration>
36+
</ItemGroup>
37+
<PropertyGroup Label="Globals">
38+
<ProjectGuid>{0a9268a4-1086-4562-9f44-4be1ce5d4f03}</ProjectGuid>
39+
<Keyword>Android</Keyword>
40+
<RootNamespace>tmxlite_android</RootNamespace>
41+
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
42+
<ApplicationType>Android</ApplicationType>
43+
<ApplicationTypeRevision>3.0</ApplicationTypeRevision>
44+
</PropertyGroup>
45+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
46+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
47+
<ConfigurationType>DynamicLibrary</ConfigurationType>
48+
<UseDebugLibraries>true</UseDebugLibraries>
49+
<PlatformToolset>Clang_3_8</PlatformToolset>
50+
</PropertyGroup>
51+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
52+
<ConfigurationType>DynamicLibrary</ConfigurationType>
53+
<UseDebugLibraries>false</UseDebugLibraries>
54+
<PlatformToolset>Clang_3_8</PlatformToolset>
55+
</PropertyGroup>
56+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
57+
<ConfigurationType>DynamicLibrary</ConfigurationType>
58+
<UseDebugLibraries>true</UseDebugLibraries>
59+
<PlatformToolset>Clang_3_8</PlatformToolset>
60+
<UseOfStl>gnustl_static</UseOfStl>
61+
</PropertyGroup>
62+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
63+
<ConfigurationType>DynamicLibrary</ConfigurationType>
64+
<UseDebugLibraries>false</UseDebugLibraries>
65+
<PlatformToolset>Clang_3_8</PlatformToolset>
66+
<UseOfStl>c++_static</UseOfStl>
67+
</PropertyGroup>
68+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
69+
<ConfigurationType>DynamicLibrary</ConfigurationType>
70+
<UseDebugLibraries>true</UseDebugLibraries>
71+
<PlatformToolset>Clang_3_8</PlatformToolset>
72+
</PropertyGroup>
73+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
74+
<ConfigurationType>DynamicLibrary</ConfigurationType>
75+
<UseDebugLibraries>false</UseDebugLibraries>
76+
<PlatformToolset>Clang_3_8</PlatformToolset>
77+
</PropertyGroup>
78+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'" Label="Configuration">
79+
<ConfigurationType>DynamicLibrary</ConfigurationType>
80+
<UseDebugLibraries>true</UseDebugLibraries>
81+
<PlatformToolset>Clang_3_8</PlatformToolset>
82+
</PropertyGroup>
83+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'" Label="Configuration">
84+
<ConfigurationType>DynamicLibrary</ConfigurationType>
85+
<UseDebugLibraries>false</UseDebugLibraries>
86+
<PlatformToolset>Clang_3_8</PlatformToolset>
87+
</PropertyGroup>
88+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
89+
<ImportGroup Label="ExtensionSettings" />
90+
<ImportGroup Label="Shared" />
91+
<ImportGroup Label="PropertySheets" />
92+
<PropertyGroup Label="UserMacros" />
93+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
94+
</PropertyGroup>
95+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
96+
</PropertyGroup>
97+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
98+
</PropertyGroup>
99+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
100+
</PropertyGroup>
101+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
102+
</PropertyGroup>
103+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
104+
</PropertyGroup>
105+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
106+
</PropertyGroup>
107+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
108+
</PropertyGroup>
109+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
110+
<ClCompile>
111+
<PrecompiledHeader>Use</PrecompiledHeader>
112+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
113+
</ClCompile>
114+
</ItemDefinitionGroup>
115+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
116+
<ClCompile>
117+
<PrecompiledHeader>Use</PrecompiledHeader>
118+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
119+
</ClCompile>
120+
</ItemDefinitionGroup>
121+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
122+
<ClCompile>
123+
<PrecompiledHeader>Use</PrecompiledHeader>
124+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
125+
</ClCompile>
126+
</ItemDefinitionGroup>
127+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
128+
<ClCompile>
129+
<PrecompiledHeader>Use</PrecompiledHeader>
130+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
131+
</ClCompile>
132+
</ItemDefinitionGroup>
133+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
134+
<ClCompile>
135+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
136+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
137+
<AdditionalIncludeDirectories>$(Sysroot)\usr\include;$(StlIncludeDirectories)%(AdditionalIncludeDirectories);$(SolutionDir)tmxlite\include</AdditionalIncludeDirectories>
138+
<CppLanguageStandard>c++1y</CppLanguageStandard>
139+
<PreprocessorDefinitions>
140+
</PreprocessorDefinitions>
141+
</ClCompile>
142+
<Link>
143+
<LibraryDependencies>$(StlLibraryName);%(LibraryDependencies);c;m;log;android</LibraryDependencies>
144+
</Link>
145+
</ItemDefinitionGroup>
146+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
147+
<ClCompile>
148+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
149+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
150+
<AdditionalIncludeDirectories>$(Sysroot)\usr\include;$(StlIncludeDirectories)%(AdditionalIncludeDirectories);$(SolutionDir)tmxlite\include</AdditionalIncludeDirectories>
151+
<CppLanguageStandard>c++1y</CppLanguageStandard>
152+
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
153+
</ClCompile>
154+
<Link>
155+
<LibraryDependencies>$(StlLibraryName);%(LibraryDependencies);c;log;android</LibraryDependencies>
156+
</Link>
157+
</ItemDefinitionGroup>
158+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
159+
<ClCompile>
160+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
161+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
162+
<AdditionalIncludeDirectories>$(Sysroot)\usr\include;$(StlIncludeDirectories)%(AdditionalIncludeDirectories);$(SolutionDir)tmxlite\include</AdditionalIncludeDirectories>
163+
<CppLanguageStandard>c++1y</CppLanguageStandard>
164+
<PreprocessorDefinitions>
165+
</PreprocessorDefinitions>
166+
</ClCompile>
167+
<Link>
168+
<LibraryDependencies>$(StlLibraryName);%(LibraryDependencies);c;m;log;android</LibraryDependencies>
169+
</Link>
170+
</ItemDefinitionGroup>
171+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
172+
<ClCompile>
173+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
174+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
175+
<AdditionalIncludeDirectories>$(Sysroot)\usr\include;$(StlIncludeDirectories)%(AdditionalIncludeDirectories);$(SolutionDir)tmxlite\include</AdditionalIncludeDirectories>
176+
<CppLanguageStandard>c++1y</CppLanguageStandard>
177+
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
178+
</ClCompile>
179+
<Link>
180+
<LibraryDependencies>$(StlLibraryName);%(LibraryDependencies);c;m;log;android</LibraryDependencies>
181+
</Link>
182+
</ItemDefinitionGroup>
183+
<ItemGroup>
184+
<ClInclude Include="..\tmxlite\src\Android.hpp" />
185+
<ClInclude Include="pch.h" />
186+
</ItemGroup>
187+
<ItemGroup>
188+
<ClCompile Include="..\tmxlite\src\FreeFuncs.cpp" />
189+
<ClCompile Include="..\tmxlite\src\ImageLayer.cpp" />
190+
<ClCompile Include="..\tmxlite\src\Map.cpp" />
191+
<ClCompile Include="..\tmxlite\src\miniz.c" />
192+
<ClCompile Include="..\tmxlite\src\Object.cpp" />
193+
<ClCompile Include="..\tmxlite\src\ObjectGroup.cpp" />
194+
<ClCompile Include="..\tmxlite\src\Property.cpp" />
195+
<ClCompile Include="..\tmxlite\src\pugixml.cpp" />
196+
<ClCompile Include="..\tmxlite\src\TileLayer.cpp" />
197+
<ClCompile Include="..\tmxlite\src\Tileset.cpp" />
198+
</ItemGroup>
199+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
200+
<ImportGroup Label="ExtensionTargets" />
201+
</Project>
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<ClInclude Include="pch.h" />
5+
<ClInclude Include="..\tmxlite\src\Android.hpp" />
6+
</ItemGroup>
7+
<ItemGroup>
8+
<Filter Include="src">
9+
<UniqueIdentifier>{7e2b9f2c-60e4-4e22-ab24-562f7e88d5e0}</UniqueIdentifier>
10+
</Filter>
11+
</ItemGroup>
12+
<ItemGroup>
13+
<ClCompile Include="..\tmxlite\src\FreeFuncs.cpp">
14+
<Filter>src</Filter>
15+
</ClCompile>
16+
<ClCompile Include="..\tmxlite\src\ImageLayer.cpp">
17+
<Filter>src</Filter>
18+
</ClCompile>
19+
<ClCompile Include="..\tmxlite\src\Map.cpp">
20+
<Filter>src</Filter>
21+
</ClCompile>
22+
<ClCompile Include="..\tmxlite\src\miniz.c">
23+
<Filter>src</Filter>
24+
</ClCompile>
25+
<ClCompile Include="..\tmxlite\src\Object.cpp">
26+
<Filter>src</Filter>
27+
</ClCompile>
28+
<ClCompile Include="..\tmxlite\src\ObjectGroup.cpp">
29+
<Filter>src</Filter>
30+
</ClCompile>
31+
<ClCompile Include="..\tmxlite\src\Property.cpp">
32+
<Filter>src</Filter>
33+
</ClCompile>
34+
<ClCompile Include="..\tmxlite\src\pugixml.cpp">
35+
<Filter>src</Filter>
36+
</ClCompile>
37+
<ClCompile Include="..\tmxlite\src\TileLayer.cpp">
38+
<Filter>src</Filter>
39+
</ClCompile>
40+
<ClCompile Include="..\tmxlite\src\Tileset.cpp">
41+
<Filter>src</Filter>
42+
</ClCompile>
43+
</ItemGroup>
44+
</Project>

0 commit comments

Comments
 (0)