DXGL r157 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r156‎ | r157 | r158 >
Date:19:52, 3 June 2012
Author:admin
Status:new
Tags:
Comment:
Make build tool project native
Modified paths:
  • / (modified) (history)
  • /buildtool/AssemblyInfo.cpp (deleted) (history)
  • /buildtool/buildtool.cpp (modified) (history)
  • /buildtool/buildtool.vcxproj (modified) (history)
  • /buildtool/buildtool.vcxproj.filters (modified) (history)
  • /buildtool/common.h (modified) (history)

Diff [purge]

Index: buildtool/AssemblyInfo.cpp
@@ -1,42 +0,0 @@
2 -// DXGL
3 -// Copyright (C) 2012 William Feely
4 -
5 -// This library is free software; you can redistribute it and/or
6 -// modify it under the terms of the GNU Lesser General Public
7 -// License as published by the Free Software Foundation; either
8 -// version 2.1 of the License, or (at your option) any later version.
9 -
10 -// This library is distributed in the hope that it will be useful,
11 -// but WITHOUT ANY WARRANTY; without even the implied warranty of
12 -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 -// Lesser General Public License for more details.
14 -
15 -// You should have received a copy of the GNU Lesser General Public
16 -// License along with this library; if not, write to the Free Software
17 -// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 -
19 -#include "common.h"
20 -#include "../common/version.h"
21 -
22 -using namespace System;
23 -using namespace System::Reflection;
24 -using namespace System::Runtime::CompilerServices;
25 -using namespace System::Runtime::InteropServices;
26 -using namespace System::Security::Permissions;
27 -
28 -[assembly:AssemblyTitleAttribute("DXGL Build Tool")];
29 -[assembly:AssemblyDescriptionAttribute("")];
30 -[assembly:AssemblyConfigurationAttribute("")];
31 -[assembly:AssemblyCompanyAttribute("William Feely")];
32 -[assembly:AssemblyProductAttribute("DXGL")];
33 -[assembly:AssemblyCopyrightAttribute("Copyright (C) 2012 William Feely")];
34 -[assembly:AssemblyTrademarkAttribute("")];
35 -[assembly:AssemblyCultureAttribute("")];
36 -
37 -[assembly:AssemblyVersionAttribute(DXGLVERSTRING)];
38 -
39 -[assembly:ComVisible(false)];
40 -
41 -[assembly:CLSCompliantAttribute(true)];
42 -
43 -[assembly:SecurityPermission(SecurityAction::RequestMinimum, UnmanagedCode = true)];
Index: buildtool/buildtool.cpp
@@ -16,11 +16,13 @@
1717 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1818
1919 #include "common.h"
 20+#include "../common/version.h"
2021
21 -using namespace System;
 22+using namespace std;
2223
23 -int main(array<System::String ^> ^args)
 24+int main(int arg, char *argv[])
2425 {
25 - Console::WriteLine(L"DXGL Build Tool");
 26+ cout << "DXGL Build Tool, version " << DXGLVERSTRING << endl;
 27+
2628 return 0;
2729 }
Index: buildtool/buildtool.vcxproj
@@ -20,13 +20,11 @@
2121 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
2222 <ConfigurationType>Application</ConfigurationType>
2323 <UseDebugLibraries>true</UseDebugLibraries>
24 - <CLRSupport>true</CLRSupport>
2524 <CharacterSet>Unicode</CharacterSet>
2625 </PropertyGroup>
2726 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
2827 <ConfigurationType>Application</ConfigurationType>
2928 <UseDebugLibraries>false</UseDebugLibraries>
30 - <CLRSupport>true</CLRSupport>
3129 <CharacterSet>Unicode</CharacterSet>
3230 </PropertyGroup>
3331 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
@@ -73,11 +71,6 @@
7472 </Link>
7573 </ItemDefinitionGroup>
7674 <ItemGroup>
77 - <Reference Include="System" />
78 - <Reference Include="System.Data" />
79 - <Reference Include="System.Xml" />
80 - </ItemGroup>
81 - <ItemGroup>
8275 <ClInclude Include="common.h" />
8376 <ClInclude Include="resource.h" />
8477 </ItemGroup>
@@ -85,7 +78,6 @@
8679 <ResourceCompile Include="buildtool.rc" />
8780 </ItemGroup>
8881 <ItemGroup>
89 - <ClCompile Include="AssemblyInfo.cpp" />
9082 <ClCompile Include="buildtool.cpp" />
9183 <ClCompile Include="precomp.cpp">
9284 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
Index: buildtool/buildtool.vcxproj.filters
@@ -18,9 +18,6 @@
1919 <ClCompile Include="buildtool.cpp">
2020 <Filter>Source Files</Filter>
2121 </ClCompile>
22 - <ClCompile Include="AssemblyInfo.cpp">
23 - <Filter>Source Files</Filter>
24 - </ClCompile>
2522 <ClCompile Include="precomp.cpp">
2623 <Filter>Source Files</Filter>
2724 </ClCompile>
Index: buildtool/common.h
@@ -19,5 +19,7 @@
2020 #ifndef _COMMON_H
2121 #define _COMMON_H
2222
 23+#include <cstdio>
 24+#include <iostream>
2325
2426 #endif //_COMMON_H
\ No newline at end of file
Index: .
Property changes on: .
___________________________________________________________________
Modified: svn:ignore
## -2,7 +2,7 ##
2527 Debug
2628 Debug no DXGL
2729 dxgl.sdf
28 -dxgl.suo
 30+*.suo
2931 ipch
3032 Release
3133 Release no DXGL