Skip to content
This repository was archived by the owner on Oct 8, 2022. It is now read-only.

Commit 0921a03

Browse files
committed
first commit
0 parents  commit 0921a03

File tree

112 files changed

+21516
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+21516
-0
lines changed

LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright © 2021 bingosam
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# AssetBundleTools
2+
3+
Analyze the redundancy of the unity assets bundle based on [UABE](https://github.com/DerPopo/UABE) and generate html report.
4+
5+
# Requirements
6+
7+
- VS 2015
8+
- UABE v2.1.d
9+
10+
# Usage
11+
12+
AssetBundleTools.exe [Asset Bundle Directory] [Output Directory]
13+
14+
# Example
15+
16+
![report](example/report.png)
17+
18+
# Thanks
19+
20+
- [UABE](https://github.com/DerPopo/UABE)
21+
22+
23+
# LICENSE
24+
25+
See [LICENSE](LICENSE)
26+
27+
Copyright © The bingosam Project. All Rights Reserved.

build/AssetBundleTools.sln

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.25123.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AssetBundleTools", "AssetBundleTools.vcxproj", "{13C11473-CBCB-4FC2-BCDF-B23D169A0BDE}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|x64 = Debug|x64
11+
Debug|x86 = Debug|x86
12+
Release|x64 = Release|x64
13+
Release|x86 = Release|x86
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{13C11473-CBCB-4FC2-BCDF-B23D169A0BDE}.Debug|x64.ActiveCfg = Debug|x64
17+
{13C11473-CBCB-4FC2-BCDF-B23D169A0BDE}.Debug|x64.Build.0 = Debug|x64
18+
{13C11473-CBCB-4FC2-BCDF-B23D169A0BDE}.Debug|x86.ActiveCfg = Debug|Win32
19+
{13C11473-CBCB-4FC2-BCDF-B23D169A0BDE}.Debug|x86.Build.0 = Debug|Win32
20+
{13C11473-CBCB-4FC2-BCDF-B23D169A0BDE}.Release|x64.ActiveCfg = Release|x64
21+
{13C11473-CBCB-4FC2-BCDF-B23D169A0BDE}.Release|x64.Build.0 = Release|x64
22+
{13C11473-CBCB-4FC2-BCDF-B23D169A0BDE}.Release|x86.ActiveCfg = Release|Win32
23+
{13C11473-CBCB-4FC2-BCDF-B23D169A0BDE}.Release|x86.Build.0 = Release|Win32
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
EndGlobal

build/AssetBundleTools.vcxproj

Lines changed: 261 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,261 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Debug|x64">
13+
<Configuration>Debug</Configuration>
14+
<Platform>x64</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
</ItemGroup>
21+
<PropertyGroup Label="Globals">
22+
<ProjectGuid>{13C11473-CBCB-4FC2-BCDF-B23D169A0BDE}</ProjectGuid>
23+
<Keyword>Win32Proj</Keyword>
24+
<RootNamespace>AssetBundleTools</RootNamespace>
25+
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
26+
</PropertyGroup>
27+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
29+
<ConfigurationType>Application</ConfigurationType>
30+
<UseDebugLibraries>true</UseDebugLibraries>
31+
<PlatformToolset>v100</PlatformToolset>
32+
<CharacterSet>Unicode</CharacterSet>
33+
</PropertyGroup>
34+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
35+
<ConfigurationType>Application</ConfigurationType>
36+
<UseDebugLibraries>false</UseDebugLibraries>
37+
<PlatformToolset>v100</PlatformToolset>
38+
<WholeProgramOptimization>true</WholeProgramOptimization>
39+
<CharacterSet>Unicode</CharacterSet>
40+
</PropertyGroup>
41+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
42+
<ConfigurationType>Application</ConfigurationType>
43+
<UseDebugLibraries>true</UseDebugLibraries>
44+
<PlatformToolset>v100</PlatformToolset>
45+
<CharacterSet>Unicode</CharacterSet>
46+
</PropertyGroup>
47+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
48+
<ConfigurationType>Application</ConfigurationType>
49+
<UseDebugLibraries>false</UseDebugLibraries>
50+
<PlatformToolset>v100</PlatformToolset>
51+
<WholeProgramOptimization>true</WholeProgramOptimization>
52+
<CharacterSet>Unicode</CharacterSet>
53+
</PropertyGroup>
54+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
55+
<ImportGroup Label="ExtensionSettings">
56+
</ImportGroup>
57+
<ImportGroup Label="Shared">
58+
</ImportGroup>
59+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
60+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61+
<Import Project="..\src\properties\PropertySheet.props" />
62+
</ImportGroup>
63+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
64+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
65+
<Import Project="..\src\properties\PropertySheet.props" />
66+
</ImportGroup>
67+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
68+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
69+
<Import Project="..\src\properties\PropertySheet.props" />
70+
</ImportGroup>
71+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
72+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
73+
<Import Project="..\src\properties\PropertySheet.props" />
74+
</ImportGroup>
75+
<PropertyGroup Label="UserMacros" />
76+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
77+
<LinkIncremental>true</LinkIncremental>
78+
<OutDir>..\bin\$(PlatformName)\$(Configuration)\</OutDir>
79+
<IntDir>$(Configuration).$(ProjectName).$(PlatformName)\</IntDir>
80+
</PropertyGroup>
81+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
82+
<LinkIncremental>true</LinkIncremental>
83+
<OutDir>..\bin\$(PlatformName)\$(Configuration)\</OutDir>
84+
<IntDir>$(Configuration).$(ProjectName).$(PlatformName)\</IntDir>
85+
</PropertyGroup>
86+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
87+
<LinkIncremental>false</LinkIncremental>
88+
<OutDir>..\bin\$(PlatformName)\$(Configuration)\</OutDir>
89+
<IntDir>$(Configuration).$(ProjectName).$(PlatformName)\</IntDir>
90+
</PropertyGroup>
91+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
92+
<LinkIncremental>false</LinkIncremental>
93+
<OutDir>..\bin\$(PlatformName)\$(Configuration)\</OutDir>
94+
<IntDir>$(Configuration).$(ProjectName).$(PlatformName)\</IntDir>
95+
</PropertyGroup>
96+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
97+
<ClCompile>
98+
<PrecompiledHeader>Use</PrecompiledHeader>
99+
<WarningLevel>Level3</WarningLevel>
100+
<Optimization>Disabled</Optimization>
101+
<PreprocessorDefinitions>WIN32;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
102+
<SDLCheck>true</SDLCheck>
103+
<ProgramDataBaseFileName>$(IntDir)$(TargetName)_vc$(PlatformToolsetVersion).pdb</ProgramDataBaseFileName>
104+
<AdditionalIncludeDirectories>$(ProjectDir)\..\src;$(UabeDir)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
105+
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
106+
<DisableSpecificWarnings>4290;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
107+
</ClCompile>
108+
<Link>
109+
<SubSystem>Console</SubSystem>
110+
<GenerateDebugInformation>true</GenerateDebugInformation>
111+
<AdditionalLibraryDirectories>$(UabeLibDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
112+
<AdditionalDependencies>AssetsTools.lib;Netapi32.lib;%(AdditionalDependencies)</AdditionalDependencies>
113+
</Link>
114+
</ItemDefinitionGroup>
115+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
116+
<ClCompile>
117+
<PrecompiledHeader>Use</PrecompiledHeader>
118+
<WarningLevel>Level3</WarningLevel>
119+
<Optimization>Disabled</Optimization>
120+
<PreprocessorDefinitions>_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
121+
<SDLCheck>true</SDLCheck>
122+
<AdditionalIncludeDirectories>$(ProjectDir)\..\src;$(UabeDir)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
123+
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
124+
<DisableSpecificWarnings>4290;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
125+
</ClCompile>
126+
<Link>
127+
<SubSystem>Console</SubSystem>
128+
<GenerateDebugInformation>true</GenerateDebugInformation>
129+
<AdditionalLibraryDirectories>$(UabeLibDir)</AdditionalLibraryDirectories>
130+
<AdditionalDependencies>AssetsTools.lib;Netapi32.lib;%(AdditionalDependencies)</AdditionalDependencies>
131+
</Link>
132+
</ItemDefinitionGroup>
133+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
134+
<ClCompile>
135+
<WarningLevel>Level3</WarningLevel>
136+
<PrecompiledHeader>Use</PrecompiledHeader>
137+
<Optimization>MaxSpeed</Optimization>
138+
<FunctionLevelLinking>true</FunctionLevelLinking>
139+
<IntrinsicFunctions>true</IntrinsicFunctions>
140+
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
141+
<SDLCheck>true</SDLCheck>
142+
<AdditionalIncludeDirectories>$(ProjectDir)\..\src;$(UabeDir)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
143+
<DisableSpecificWarnings>4290;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
144+
<ProgramDataBaseFileName>$(IntDir)$(TargetName)_vc$(PlatformToolsetVersion).pdb</ProgramDataBaseFileName>
145+
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
146+
</ClCompile>
147+
<Link>
148+
<SubSystem>Console</SubSystem>
149+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
150+
<OptimizeReferences>true</OptimizeReferences>
151+
<GenerateDebugInformation>true</GenerateDebugInformation>
152+
<AdditionalLibraryDirectories>$(UabeLibDir)</AdditionalLibraryDirectories>
153+
<AdditionalDependencies>AssetsTools.lib;Netapi32.lib;%(AdditionalDependencies)</AdditionalDependencies>
154+
</Link>
155+
</ItemDefinitionGroup>
156+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
157+
<ClCompile>
158+
<WarningLevel>Level3</WarningLevel>
159+
<PrecompiledHeader>Use</PrecompiledHeader>
160+
<Optimization>MaxSpeed</Optimization>
161+
<FunctionLevelLinking>true</FunctionLevelLinking>
162+
<IntrinsicFunctions>true</IntrinsicFunctions>
163+
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
164+
<SDLCheck>true</SDLCheck>
165+
<AdditionalIncludeDirectories>$(ProjectDir)\..\src;$(UabeDir)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
166+
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
167+
<DisableSpecificWarnings>4290;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
168+
</ClCompile>
169+
<Link>
170+
<SubSystem>Console</SubSystem>
171+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
172+
<OptimizeReferences>true</OptimizeReferences>
173+
<GenerateDebugInformation>true</GenerateDebugInformation>
174+
<AdditionalLibraryDirectories>$(UabeLibDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
175+
<AdditionalDependencies>AssetsTools.lib;Netapi32.lib;%(AdditionalDependencies)</AdditionalDependencies>
176+
</Link>
177+
</ItemDefinitionGroup>
178+
<ItemGroup>
179+
<Text Include="ReadMe.txt" />
180+
</ItemGroup>
181+
<ItemGroup>
182+
<ClInclude Include="..\src\UABEWapper\AssetBundle.h" />
183+
<ClInclude Include="..\src\UABEWapper\AssetBundleFactory.h" />
184+
<ClInclude Include="..\src\UABEWapper\AssetBundleInfo.h" />
185+
<ClInclude Include="..\src\AssetBundlesParser.h" />
186+
<ClInclude Include="..\src\UABEWapper\AssetsBundleTools.h" />
187+
<ClInclude Include="..\src\UABEWapper\AssetsFile.h" />
188+
<ClInclude Include="..\src\utils\base.h" />
189+
<ClInclude Include="..\src\UABEWapper\ClassDatabaseManager.h" />
190+
<ClInclude Include="..\src\DependencyManager.h" />
191+
<ClInclude Include="..\src\utils\FileUtils.h" />
192+
<ClInclude Include="..\src\lodepng\lodepng.h" />
193+
<ClInclude Include="..\src\stdafx.h" />
194+
<ClInclude Include="..\src\svcdef.h" />
195+
<ClInclude Include="..\src\targetver.h" />
196+
<ClInclude Include="..\src\AssetsManager.h" />
197+
<ClInclude Include="..\src\UABEWapper\uabedef.h" />
198+
<ClInclude Include="..\src\UABEWapper\UnityError.h" />
199+
<ClInclude Include="..\src\utils\logging.h" />
200+
<ClInclude Include="..\src\utils\thread.h" />
201+
<ClInclude Include="..\src\utils\utils.h" />
202+
<ClInclude Include="..\src\resource.h" />
203+
<ClInclude Include="..\src\UABEWapper\AssetBundle5.h" />
204+
<ClInclude Include="..\src\UABEWapper\AssetExporter.h" />
205+
</ItemGroup>
206+
<ItemGroup>
207+
<ClCompile Include="..\src\HtmlGenerator.cpp" />
208+
<ClCompile Include="..\src\UABEWapper\AssetExporter.cpp" />
209+
<ClCompile Include="..\src\UABEWapper\AssetBundle.cpp" />
210+
<ClCompile Include="..\src\UABEWapper\AssetBundleInfo.cpp" />
211+
<ClCompile Include="..\src\AssetBundlesParser.cpp" />
212+
<ClCompile Include="..\src\UABEWapper\AssetsBundleTools.cpp" />
213+
<ClCompile Include="..\src\UABEWapper\AssetsFile.cpp" />
214+
<ClCompile Include="..\src\AssetsManager.cpp" />
215+
<ClCompile Include="..\src\UABEWapper\ClassDatabaseManager.cpp" />
216+
<ClCompile Include="..\src\DependencyManager.cpp" />
217+
<ClCompile Include="..\src\utils\FileUtils.cpp">
218+
<PrecompiledHeaderFile Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">../StdAfx.h</PrecompiledHeaderFile>
219+
</ClCompile>
220+
<ClCompile Include="..\src\lodepng\lodepng.cpp">
221+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
222+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">NotUsing</PrecompiledHeader>
223+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">NotUsing</PrecompiledHeader>
224+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
225+
</ClCompile>
226+
<ClCompile Include="..\src\Main.cpp" />
227+
<ClCompile Include="..\src\stdafx.cpp">
228+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
229+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
230+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
231+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
232+
</ClCompile>
233+
<ClCompile Include="..\src\UABEWapper\UnityError.cpp" />
234+
<ClCompile Include="..\src\utils\logsvc.cpp">
235+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">NotUsing</PrecompiledHeader>
236+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
237+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
238+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">NotUsing</PrecompiledHeader>
239+
</ClCompile>
240+
<ClCompile Include="..\src\utils\thread.cpp">
241+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">NotUsing</PrecompiledHeader>
242+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">NotUsing</PrecompiledHeader>
243+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
244+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
245+
</ClCompile>
246+
<ClCompile Include="..\src\utils\utils.cpp">
247+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
248+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">NotUsing</PrecompiledHeader>
249+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
250+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">NotUsing</PrecompiledHeader>
251+
</ClCompile>
252+
<ClCompile Include="..\src\UABEWapper\AssetBundleFactory.cpp" />
253+
<ClCompile Include="..\src\UABEWapper\AssetBundle5.cpp" />
254+
</ItemGroup>
255+
<ItemGroup>
256+
<ResourceCompile Include="..\src\version.rc" />
257+
</ItemGroup>
258+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
259+
<ImportGroup Label="ExtensionTargets">
260+
</ImportGroup>
261+
</Project>

0 commit comments

Comments
 (0)