mirror of https://github.com/mono/CppSharp.git
4 changed files with 0 additions and 171 deletions
@ -1,55 +0,0 @@
@@ -1,55 +0,0 @@
|
||||
top_srcdir = ../ |
||||
BUILD_DIR = $(top_srcdir)/bin/Debug |
||||
|
||||
INTEROP_DLL = \
|
||||
$(BUILD_DIR)/Mono.Cxxi.dll |
||||
|
||||
TEST_DLL = $(BUILD_DIR)/Test.dll |
||||
|
||||
NATIVE = \
|
||||
MarshalingTests \
|
||||
InheritanceTests \
|
||||
FieldTests \
|
||||
ManglingTests |
||||
|
||||
MANAGED = \
|
||||
FieldTests.cs \
|
||||
InheritanceTests.cs \
|
||||
ManglingTests.cs \
|
||||
MarshalingTests.cs |
||||
|
||||
REFERENCES = \
|
||||
-pkg:mono-nunit |
||||
|
||||
NATIVE_SRC = \
|
||||
$(addprefix Native/,$(NATIVE)) |
||||
|
||||
all: $(TEST_DLL) |
||||
|
||||
%.cpp: %.h |
||||
|
||||
%.xml: $(addsuffix .h,$(NATIVE_SRC)) |
||||
$(GCCXML) -fxml=$@ --gccxml-cxxflags -c Native/$*.h |
||||
|
||||
$(BUILD_DIR)/libTest.so: $(addsuffix .cpp,$(NATIVE_SRC)) |
||||
$(CXX) -fPIC --shared -m32 -o $@ $^ |
||||
|
||||
$(BUILD_DIR)/libTest-inline.so: $(addsuffix .cpp,$(NATIVE_SRC)) |
||||
$(CXX) -fPIC --shared -m32 -fkeep-inline-functions -o $@ $^ |
||||
|
||||
generated: $(addsuffix .xml,$(NATIVE)) |
||||
$(RM) -r generated |
||||
$(foreach X,$?, \
|
||||
mono --debug $(BUILD_DIR)/generator.exe -o=$@ -ns=Tests -lib=Test -inline=surrogatelib $(X) && \
|
||||
) \
|
||||
$(RM) generated/__*.cs && \
|
||||
echo Bindings generated successfully. |
||||
|
||||
$(TEST_DLL): generated $(MANAGED) $(BUILD_DIR)/libTest.so $(BUILD_DIR)/libTest-inline.so |
||||
$(GMCS) -debug -out:$@ -target:library -unsafe $(REFERENCES) -r:$(INTEROP_DLL) generated/*.cs $(MANAGED) |
||||
|
||||
clean: |
||||
$(RM) -rf $(TEST_DLL) generated $(BUILD_DIR)/libTest.so $(BUILD_DIR)/libTest-inline.so $(addsuffix .xml,$(NATIVE)) |
||||
|
||||
run: $(TEST_DLL) |
||||
nunit-console -nologo $(TEST_DLL) |
@ -1 +0,0 @@
@@ -1 +0,0 @@
|
||||
This directory contains tests for the cpp binding. To run them, type 'make run'. |
@ -1,113 +0,0 @@
@@ -1,113 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> |
||||
<PropertyGroup> |
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
||||
<ProductVersion>8.0.50727</ProductVersion> |
||||
<SchemaVersion>2.0</SchemaVersion> |
||||
<ProjectGuid>{3C290CBE-CA39-47F6-B3A0-ACD16C5A38C8}</ProjectGuid> |
||||
<OutputType>Library</OutputType> |
||||
<RootNamespace>Tests</RootNamespace> |
||||
<AssemblyName>Test</AssemblyName> |
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion> |
||||
<FileUpgradeFlags> |
||||
</FileUpgradeFlags> |
||||
<UpgradeBackupLocation> |
||||
</UpgradeBackupLocation> |
||||
<OldToolsVersion>2.0</OldToolsVersion> |
||||
<PublishUrl>http://localhost/Tests/</PublishUrl> |
||||
<Install>true</Install> |
||||
<InstallFrom>Web</InstallFrom> |
||||
<UpdateEnabled>true</UpdateEnabled> |
||||
<UpdateMode>Foreground</UpdateMode> |
||||
<UpdateInterval>7</UpdateInterval> |
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits> |
||||
<UpdatePeriodically>false</UpdatePeriodically> |
||||
<UpdateRequired>false</UpdateRequired> |
||||
<MapFileExtensions>true</MapFileExtensions> |
||||
<ApplicationRevision>0</ApplicationRevision> |
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion> |
||||
<IsWebBootstrapper>true</IsWebBootstrapper> |
||||
<UseApplicationTrust>false</UseApplicationTrust> |
||||
<BootstrapperEnabled>true</BootstrapperEnabled> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
||||
<DebugSymbols>true</DebugSymbols> |
||||
<DebugType>full</DebugType> |
||||
<Optimize>false</Optimize> |
||||
<OutputPath>..\bin\Debug</OutputPath> |
||||
<DefineConstants>DEBUG</DefineConstants> |
||||
<ErrorReport>prompt</ErrorReport> |
||||
<WarningLevel>4</WarningLevel> |
||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
||||
<DebugType>none</DebugType> |
||||
<Optimize>false</Optimize> |
||||
<OutputPath>..\bin\Release</OutputPath> |
||||
<ErrorReport>prompt</ErrorReport> |
||||
<WarningLevel>4</WarningLevel> |
||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> |
||||
</PropertyGroup> |
||||
<ItemGroup> |
||||
<Compile Include="MarshalingTests.cs" /> |
||||
<Compile Include="InheritanceTests.cs" /> |
||||
<Compile Include="FieldTests.cs" /> |
||||
<Compile Include="ManglingTests.cs" /> |
||||
</ItemGroup> |
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> |
||||
<ItemGroup> |
||||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5"> |
||||
<Visible>False</Visible> |
||||
</BootstrapperPackage> |
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> |
||||
<Visible>False</Visible> |
||||
</BootstrapperPackage> |
||||
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> |
||||
<Visible>False</Visible> |
||||
</BootstrapperPackage> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<None Include="Native\NUnit.cpp" /> |
||||
<None Include="Native\NUnit.h" /> |
||||
<None Include="Native\MarshalingTests.cpp" /> |
||||
<None Include="Native\MarshalingTests.h" /> |
||||
<None Include="Native\InheritanceTests.h" /> |
||||
<None Include="Native\InheritanceTests.cpp" /> |
||||
<None Include="Native\FieldTests.h" /> |
||||
<None Include="Native\FieldTests.cpp" /> |
||||
<None Include="Native\ManglingTests.h" /> |
||||
<None Include="Native\ManglingTests.cpp" /> |
||||
</ItemGroup> |
||||
<ProjectExtensions> |
||||
<MonoDevelop> |
||||
<Properties> |
||||
<MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="true" RelativeMakefileName="Makefile.am" IsAutotoolsProject="true" RelativeConfigureInPath=".."> |
||||
<BuildFilesVar Sync="true" Name="MANAGED" /> |
||||
<DeployFilesVar /> |
||||
<ResourcesVar /> |
||||
<OthersVar /> |
||||
<GacRefVar Name="REFERENCES" /> |
||||
<AsmRefVar Name="REFERENCES" /> |
||||
<ProjectRefVar Name="REFERENCES" /> |
||||
</MonoDevelop.Autotools.MakefileInfo> |
||||
</Properties> |
||||
</MonoDevelop> |
||||
</ProjectExtensions> |
||||
<ItemGroup> |
||||
<Reference Include="nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77"> |
||||
<SpecificVersion>False</SpecificVersion> |
||||
</Reference> |
||||
<Reference Include="System" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<ProjectReference Include="..\src\Mono.Cxxi\Mono.Cxxi.csproj"> |
||||
<Project>{4A864586-93C5-4DC1-8A80-F094A88506D7}</Project> |
||||
<Name>Mono.Cxxi</Name> |
||||
</ProjectReference> |
||||
<ProjectReference Include="..\src\generator\generator.csproj"> |
||||
<Project>{AD0F9378-789C-4AF1-B0DD-6DD9A63C3401}</Project> |
||||
<Name>generator</Name> |
||||
</ProjectReference> |
||||
</ItemGroup> |
||||
</Project> |
Loading…
Reference in new issue