Skip to content

Commit

Permalink
New top level solution, makefile targets, and submodule dependencies.
Browse files Browse the repository at this point in the history
You can `make prepare all check` to compile and run unit tests.
Additionally, you can open `apidoctools.sln` in Visual Studio to develop and debug.

_Please Note:_ You will have to `make prepare all CONFIGURATION=Debug` for VS to work, as this
compiles external dependencies, and copies them to the `bin/Debug` folder, where VS will be expecting them.
  • Loading branch information
joelmartinez committed Feb 3, 2017
1 parent 42950d5 commit ad2c3d9
Show file tree
Hide file tree
Showing 31 changed files with 3,545 additions and 276 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@
/Test/DocTest.*
/.v2.txt
/.v0.txt
packages
NUnit.*
TestResult.xml
*.userprefs
*.user
bin
obj
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "external/SharpZipLib"]
path = external/SharpZipLib
url = https://github.com/icsharpcode/SharpZipLib.git
[submodule "external/Lucene.Net.Light"]
path = external/Lucene.Net.Light
url = https://github.com/mono/Lucene.Net.Light.git
[submodule "external/Mono.Cecil"]
path = external/Mono.Cecil
url = https://github.com/mono/cecil.git
38 changes: 38 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
MSBUILD = xbuild
CONFIGURATION = Release
BIN = bin/$(CONFIGURATION)
MDOC = $(BIN)/mdoc.exe

all: build

build: $(MDOC)

$(MDOC): $(BIN)/ICSharpCode.SharpZipLib.dll $(BIN)/Mono.Cecil.dll
$(MSBUILD) apidoctools.sln /p:Configuration=$(CONFIGURATION)

prepare:
-mkdir -p bin/$(CONFIGURATION)
git submodule update --init --recursive
nuget install NUnit.Console -version 3.6.0 -NoCache -o packages

$(BIN)/ICSharpCode.SharpZipLib.dll:
$(MSBUILD) external/SharpZipLib/ICSharpCode.SharpZipLib.NET45/ICSharpCode.SharpZipLib.csproj /p:Configuration=Release
cp external/SharpZipLib/bin/Release/ICSharpCode.SharpZipLib.* $(BIN)/

$(BIN)/Mono.Cecil.dll:
$(MSBUILD) external/Mono.Cecil/Mono.Cecil.sln /p:Configuration=net_4_5_Release
cp external/Mono.Cecil/bin/net_4_0_Release/Mono.Cecil*.dll $(BIN)/

clean:
$(MSBUILD) apidoctools.sln /t:clean
$(MSBUILD) external/SharpZipLib/ICSharpCode.SharpZipLib.NET45/ICSharpCode.SharpZipLib.csproj /t:clean
$(MSBUILD) external/Mono.Cecil/Mono.Cecil.sln /t:clean
rm -rf bin/$(CONFIGURATION)

check: build check-monodoc check-mdoc

check-mdoc:
cd mdoc; $(MAKE) check

check-monodoc:
cd monodoc; $(MAKE) check
32 changes: 32 additions & 0 deletions apidoctools.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "mdoc", "mdoc\mdoc.csproj", "{7DA7CD97-614F-4BCD-A2FA-B379590CEA48}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "monodoc", "monodoc\monodoc.csproj", "{6E644802-B579-4037-9809-9CF4C7172C9D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Monodoc.Test", "monodoc\Test\Monodoc.Test.csproj", "{1EE70E2C-A289-4C36-AD0A-3D0C6CE56615}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7DA7CD97-614F-4BCD-A2FA-B379590CEA48}.Debug|x86.ActiveCfg = Debug|x86
{7DA7CD97-614F-4BCD-A2FA-B379590CEA48}.Debug|x86.Build.0 = Debug|x86
{7DA7CD97-614F-4BCD-A2FA-B379590CEA48}.Release|x86.ActiveCfg = Release|x86
{7DA7CD97-614F-4BCD-A2FA-B379590CEA48}.Release|x86.Build.0 = Release|x86
{6E644802-B579-4037-9809-9CF4C7172C9D}.Debug|x86.ActiveCfg = Debug|Any CPU
{6E644802-B579-4037-9809-9CF4C7172C9D}.Debug|x86.Build.0 = Debug|Any CPU
{6E644802-B579-4037-9809-9CF4C7172C9D}.Release|x86.ActiveCfg = Release|Any CPU
{6E644802-B579-4037-9809-9CF4C7172C9D}.Release|x86.Build.0 = Release|Any CPU
{1EE70E2C-A289-4C36-AD0A-3D0C6CE56615}.Debug|x86.ActiveCfg = Debug|Any CPU
{1EE70E2C-A289-4C36-AD0A-3D0C6CE56615}.Debug|x86.Build.0 = Debug|Any CPU
{1EE70E2C-A289-4C36-AD0A-3D0C6CE56615}.Release|x86.ActiveCfg = Release|Any CPU
{1EE70E2C-A289-4C36-AD0A-3D0C6CE56615}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = mdoc.csproj
EndGlobalSection
EndGlobal
1 change: 1 addition & 0 deletions external/Lucene.Net.Light
Submodule Lucene.Net.Light added at 85978b
1 change: 1 addition & 0 deletions external/Mono.Cecil
Submodule Mono.Cecil added at 272fea
1 change: 1 addition & 0 deletions external/SharpZipLib
Submodule SharpZipLib added at 9ad7f5
6 changes: 6 additions & 0 deletions mdoc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/Test/en.*/
/Test/html.*/
/Test/DocTest.*
/Test/*.dll*
/.v2.txt
/.v0.txt
9 changes: 9 additions & 0 deletions mdoc/Consts.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System;
namespace Mono.Documentation
{
public static class Consts
{
// this is only a placeholder
public static string MonoVersion = "0.0.0.0";
}
}
Loading

0 comments on commit ad2c3d9

Please sign in to comment.