Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
component packaging (unified support)
Browse files Browse the repository at this point in the history
  • Loading branch information
moljac committed Dec 4, 2014
1 parent 1b66e23 commit 0ccd9e6
Show file tree
Hide file tree
Showing 7 changed files with 334 additions and 2 deletions.
7 changes: 6 additions & 1 deletion TSMiniWebBrowser/binding/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ all: TSMiniWebBrowser.dll TSMiniWebBrowser-Classic.dll
TSMiniWebBrowser.dll: Makefile ApiDefinition.cs StructsAndEnums.cs libTSMiniWebBrowser.a
$(MONOXBUILD) /p:Configuration=Release TSMiniWebBrowser-Classic.csproj
$(MONOXBUILD) /p:Configuration=Release TSMiniWebBrowser.csproj
mkdir ../lib
mkdir ../lib/ios
mkdir ../lib/ios-unified
cp bin/classic/AnyCPU/Release/TSMiniWebBrowser.dll TSMiniWebBrowser-Classic.dll
cp bin/unified/AnyCPU/Release/TSMiniWebBrowser.dll TSMiniWebBrowser.dll
cp bin/classic/AnyCPU/Release/TSMiniWebBrowser.dll ../lib/ios/
cp bin/unified/AnyCPU/Release/TSMiniWebBrowser.dll ../lib/ios-unified

clean:
-rm -rf list ios bin/ obj/ *.userprefs *.dll *.o *.zip *.mdb
-rm -rf list ios bin/ obj/ *.userprefs *.dll *.o *.zip *.mdb ../lib
6 changes: 5 additions & 1 deletion TSMiniWebBrowser/samples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
#### Author: Alex Soto alex.soto@xamarin.com

MDTOOL=/Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool
PROJECTS=TSMiniWebBrowserSample/TSMiniWebBrowserSample.sln
PROJECTS=\
TSMiniWebBrowserSample/TSMiniWebBrowserSample.sln \
TSMiniWebBrowserSample/TSMiniWebBrowserSample-Classic.sln \
TSMiniWebBrowserSample/TSMiniWebBrowserSample-Component.sln \
TSMiniWebBrowserSample/TSMiniWebBrowserSample-Classic-Component.sln \

all:
for i in $(PROJECTS); do ($(MDTOOL) build -c:"Release|iPhone" $$i); done
Expand Down
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}") = "TSMiniWebBrowserSample-Classic-Component", "TSMiniWebBrowserSample\TSMiniWebBrowserSample-Classic-Component.csproj", "{954205CF-16D5-4BAC-8AF6-E61DC42129CE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|iPhoneSimulator = Debug|iPhoneSimulator
Release|iPhoneSimulator = Release|iPhoneSimulator
Debug|iPhone = Debug|iPhone
Release|iPhone = Release|iPhone
Ad-Hoc|iPhone = Ad-Hoc|iPhone
AppStore|iPhone = AppStore|iPhone
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{954205CF-16D5-4BAC-8AF6-E61DC42129CE}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
{954205CF-16D5-4BAC-8AF6-E61DC42129CE}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
{954205CF-16D5-4BAC-8AF6-E61DC42129CE}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
{954205CF-16D5-4BAC-8AF6-E61DC42129CE}.AppStore|iPhone.Build.0 = AppStore|iPhone
{954205CF-16D5-4BAC-8AF6-E61DC42129CE}.Debug|iPhone.ActiveCfg = Debug|iPhone
{954205CF-16D5-4BAC-8AF6-E61DC42129CE}.Debug|iPhone.Build.0 = Debug|iPhone
{954205CF-16D5-4BAC-8AF6-E61DC42129CE}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{954205CF-16D5-4BAC-8AF6-E61DC42129CE}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{954205CF-16D5-4BAC-8AF6-E61DC42129CE}.Release|iPhone.ActiveCfg = Release|iPhone
{954205CF-16D5-4BAC-8AF6-E61DC42129CE}.Release|iPhone.Build.0 = Release|iPhone
{954205CF-16D5-4BAC-8AF6-E61DC42129CE}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{954205CF-16D5-4BAC-8AF6-E61DC42129CE}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = TSMiniWebBrowserSample\TSMiniWebBrowserSample-Classic-Component.csproj
EndGlobalSection
EndGlobal
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}") = "TSMiniWebBrowserSample-Component", "TSMiniWebBrowserSample\TSMiniWebBrowserSample-Component.csproj", "{104BB234-3676-4034-9403-ACCF17944407}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|iPhoneSimulator = Debug|iPhoneSimulator
Release|iPhoneSimulator = Release|iPhoneSimulator
Debug|iPhone = Debug|iPhone
Release|iPhone = Release|iPhone
Ad-Hoc|iPhone = Ad-Hoc|iPhone
AppStore|iPhone = AppStore|iPhone
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{104BB234-3676-4034-9403-ACCF17944407}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
{104BB234-3676-4034-9403-ACCF17944407}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
{104BB234-3676-4034-9403-ACCF17944407}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
{104BB234-3676-4034-9403-ACCF17944407}.AppStore|iPhone.Build.0 = AppStore|iPhone
{104BB234-3676-4034-9403-ACCF17944407}.Debug|iPhone.ActiveCfg = Debug|iPhone
{104BB234-3676-4034-9403-ACCF17944407}.Debug|iPhone.Build.0 = Debug|iPhone
{104BB234-3676-4034-9403-ACCF17944407}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{104BB234-3676-4034-9403-ACCF17944407}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{104BB234-3676-4034-9403-ACCF17944407}.Release|iPhone.ActiveCfg = Release|iPhone
{104BB234-3676-4034-9403-ACCF17944407}.Release|iPhone.Build.0 = Release|iPhone
{104BB234-3676-4034-9403-ACCF17944407}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{104BB234-3676-4034-9403-ACCF17944407}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = TSMiniWebBrowserSample\TSMiniWebBrowserSample-Component.csproj
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{954205CF-16D5-4BAC-8AF6-E61DC42129CE}</ProjectGuid>
<ProjectTypeGuids>{6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Exe</OutputType>
<RootNamespace>TSMiniWebBrowserSample</RootNamespace>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
<AssemblyName>TSMiniWebBrowserSample</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\iPhoneSimulator\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<MtouchLink>None</MtouchLink>
<MtouchDebug>true</MtouchDebug>
<OutputPath>bin\classic\iPhoneSimulator\Debug</OutputPath>
<BaseIntermediateOutputPath>obj\classic\</BaseIntermediateOutputPath>
<IntermediateOutputPath>obj\classic\iPhoneSimulator\Debug</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\iPhoneSimulator\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<MtouchLink>None</MtouchLink>
<OutputPath>bin\classic\iPhoneSimulator\Release</OutputPath>
<BaseIntermediateOutputPath>obj\classic\</BaseIntermediateOutputPath>
<IntermediateOutputPath>obj\classic\iPhoneSimulator\Release</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\iPhone\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<MtouchDebug>true</MtouchDebug>
<CodesignKey>iPhone Developer</CodesignKey>
<OutputPath>bin\classic\iPhone\Debug</OutputPath>
<BaseIntermediateOutputPath>obj\classic\</BaseIntermediateOutputPath>
<IntermediateOutputPath>obj\classic\iPhone\Debug</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\iPhone\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<CodesignKey>iPhone Developer</CodesignKey>
<OutputPath>bin\classic\iPhone\Release</OutputPath>
<BaseIntermediateOutputPath>obj\classic\</BaseIntermediateOutputPath>
<IntermediateOutputPath>obj\classic\iPhone\Release</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' ">
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\iPhone\Ad-Hoc</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<BuildIpa>true</BuildIpa>
<ConsolePause>false</ConsolePause>
<CodesignKey>iPhone Distribution</CodesignKey>
<CodesignProvision>Automatic:AdHoc</CodesignProvision>
<OutputPath>bin\classic\Ad-Hoc\</OutputPath>
<BaseIntermediateOutputPath>obj\classic\</BaseIntermediateOutputPath>
<IntermediateOutputPath>obj\classic\Ad-Hoc\</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AppStore|iPhone' ">
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\iPhone\AppStore</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodesignKey>iPhone Distribution</CodesignKey>
<ConsolePause>false</ConsolePause>
<CodesignProvision>Automatic:AppStore</CodesignProvision>
<OutputPath>bin\classic\AppStore\</OutputPath>
<BaseIntermediateOutputPath>obj\classic\</BaseIntermediateOutputPath>
<IntermediateOutputPath>obj\classic\AppStore\</IntermediateOutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="monotouch" />
<Reference Include="MonoTouch.Dialog-1" />
<Reference Include="TSMiniWebBrowser">
<HintPath>..\..\..\lib\ios\TSMiniWebBrowser.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Resources\" />
</ItemGroup>
<ItemGroup>
<None Include="Info.plist" />
</ItemGroup>
<ItemGroup>
<Compile Include="Main.cs" />
<Compile Include="AppDelegate.cs" />
<Compile Include="DVCMenu.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.MonoTouch.CSharp.targets" />
<ItemGroup>
<BundleResource Include="Resources\Default-568h%402x.png" />
<BundleResource Include="Resources\Default.png" />
<BundleResource Include="Resources\Default%402x.png" />
<BundleResource Include="Resources\icon-57.png" />
<BundleResource Include="Resources\icon-72.png" />
<BundleResource Include="Resources\icon-114.png" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{104BB234-3676-4034-9403-ACCF17944407}</ProjectGuid>
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Exe</OutputType>
<RootNamespace>TSMiniWebBrowserSample</RootNamespace>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
<AssemblyName>TSMiniWebBrowserSample</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\iPhoneSimulator\Debug</OutputPath>
<DefineConstants>DEBUG;__UNIFIED__;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<MtouchLink>None</MtouchLink>
<MtouchDebug>true</MtouchDebug>
<OutputPath>bin\unified\iPhoneSimulator\Debug</OutputPath>
<BaseIntermediateOutputPath>obj\unified\</BaseIntermediateOutputPath>
<IntermediateOutputPath>obj\unified\iPhoneSimulator\Debug</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\iPhoneSimulator\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<MtouchLink>None</MtouchLink>
<OutputPath>bin\unified\iPhoneSimulator\Release</OutputPath>
<BaseIntermediateOutputPath>obj\unified\</BaseIntermediateOutputPath>
<IntermediateOutputPath>obj\unified\iPhoneSimulator\Release</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\iPhone\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<MtouchDebug>true</MtouchDebug>
<CodesignKey>iPhone Developer</CodesignKey>
<OutputPath>bin\unified\iPhone\Debug</OutputPath>
<BaseIntermediateOutputPath>obj\unified\</BaseIntermediateOutputPath>
<IntermediateOutputPath>obj\unified\iPhone\Debug</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\iPhone\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<CodesignKey>iPhone Developer</CodesignKey>
<OutputPath>bin\unified\iPhone\Release</OutputPath>
<BaseIntermediateOutputPath>obj\unified\</BaseIntermediateOutputPath>
<IntermediateOutputPath>obj\unified\iPhone\Release</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' ">
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\iPhone\Ad-Hoc</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<BuildIpa>true</BuildIpa>
<ConsolePause>false</ConsolePause>
<CodesignKey>iPhone Distribution</CodesignKey>
<CodesignProvision>Automatic:AdHoc</CodesignProvision>
<OutputPath>bin\unified\Ad-Hoc\</OutputPath>
<BaseIntermediateOutputPath>obj\unified\</BaseIntermediateOutputPath>
<IntermediateOutputPath>obj\unified\Ad-Hoc\</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AppStore|iPhone' ">
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\iPhone\AppStore</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodesignKey>iPhone Distribution</CodesignKey>
<ConsolePause>false</ConsolePause>
<CodesignProvision>Automatic:AppStore</CodesignProvision>
<OutputPath>bin\unified\AppStore\</OutputPath>
<BaseIntermediateOutputPath>obj\unified\</BaseIntermediateOutputPath>
<IntermediateOutputPath>obj\unified\AppStore\</IntermediateOutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="Xamarin.iOS" />
<Reference Include="MonoTouch.Dialog-1" />
<Reference Include="TSMiniWebBrowser">
<HintPath>..\..\..\lib\ios-unified\TSMiniWebBrowser.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Resources\" />
</ItemGroup>
<ItemGroup>
<None Include="Info.plist" />
</ItemGroup>
<ItemGroup>
<Compile Include="Main.cs" />
<Compile Include="AppDelegate.cs" />
<Compile Include="DVCMenu.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
<ItemGroup>
<BundleResource Include="Resources\Default-568h%402x.png" />
<BundleResource Include="Resources\Default.png" />
<BundleResource Include="Resources\Default%402x.png" />
<BundleResource Include="Resources\icon-57.png" />
<BundleResource Include="Resources\icon-72.png" />
<BundleResource Include="Resources\icon-114.png" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,10 @@
<BundleResource Include="Resources\icon-72.png" />
<BundleResource Include="Resources\icon-114.png" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\binding\TSMiniWebBrowser.csproj">
<Project>{FF4DE794-A2BB-4316-9836-C96E79303225}</Project>
<Name>TSMiniWebBrowser</Name>
</ProjectReference>
</ItemGroup>
</Project>

0 comments on commit 0ccd9e6

Please sign in to comment.