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

Updating WEPopover to the latest version and adding unified support. #240

Merged
merged 1 commit into from
Feb 27, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
394 changes: 281 additions & 113 deletions WEPopover/binding/ApiDefinition.cs

Large diffs are not rendered by default.

37 changes: 35 additions & 2 deletions WEPopover/binding/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,44 @@
BTOUCH=/Developer/MonoTouch/usr/bin/btouch
MONOXBUILD=/Library/Frameworks/Mono.framework/Commands/xbuild


XCODEBUILD=/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
PROJECT_ROOT=WEPopoverLib/WEPopover
PROJECT=$(PROJECT_ROOT)/WEPopover.xcodeproj
TARGET=WEPopover


all: WEPopover.dll

WEPopover.dll: Makefile libWEPopoverUniversal.a
WEPopover.dll: Makefile $(PROJECT_ROOT)/lib$(TARGET).a
$(MONOXBUILD) /p:Configuration=Release WEPopover.csproj
cp bin/Release/WEPopover.dll WEPopover.dll

WEPopoverLib/extern/WEPopover/README :
mkdir -p WEPopoverLib/extern
git clone git@github.com:werner77/WEPopover.git WEPopoverLib/extern/WEPopover
cd WEPopoverLib/extern/WEPopover && git checkout beffd9f38b2cd48235262f40e51944b2076b17d7

$(PROJECT_ROOT)/lib$(TARGET)-i386.a: WEPopoverLib/extern/WEPopover/README
$(XCODEBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphonesimulator -configuration Release clean build
-mv $(PROJECT_ROOT)/build/Release-iphonesimulator/lib$(TARGET).a $@

$(PROJECT_ROOT)/lib$(TARGET)-armv7.a: WEPopoverLib/extern/WEPopover/README
$(XCODEBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphoneos -arch armv7 -configuration Release clean build
-mv $(PROJECT_ROOT)/build/Release-iphoneos/lib$(TARGET).a $@

$(PROJECT_ROOT)/lib$(TARGET)-armv7s.a: WEPopoverLib/extern/WEPopover/README
$(XCODEBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphoneos -arch armv7s -configuration Release clean build
-mv $(PROJECT_ROOT)/build/Release-iphoneos/lib$(TARGET).a $@

$(PROJECT_ROOT)/lib$(TARGET)-arm64.a: WEPopoverLib/extern/WEPopover/README
$(XCODEBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphoneos -arch arm64 -configuration Release clean build
-mv $(PROJECT_ROOT)/build/Release-iphoneos/lib$(TARGET).a $@


$(PROJECT_ROOT)/lib$(TARGET).a: $(PROJECT_ROOT)/lib$(TARGET)-i386.a $(PROJECT_ROOT)/lib$(TARGET)-armv7.a $(PROJECT_ROOT)/lib$(TARGET)-armv7s.a $(PROJECT_ROOT)/lib$(TARGET)-arm64.a
lipo -create -output $@ $^


clean:
-rm -rf *.dll bin/ obj/
-rm -rf *.dll bin/ obj/ WEPopoverLib/extern/WEPopover
34 changes: 34 additions & 0 deletions WEPopover/binding/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using System.Reflection;
using System.Runtime.CompilerServices;

using Foundation;

// This attribute allows you to mark your assemblies as “safe to link”.
// When the attribute is present, the linker—if enabled—will process the assembly
// even if you’re using the “Link SDK assemblies only” option, which is the default for device builds.

[assembly: LinkerSafe]

// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.

[assembly: AssemblyTitle ("WEPopover")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyConfiguration ("")]
[assembly: AssemblyCompany ("")]
[assembly: AssemblyProduct ("")]
[assembly: AssemblyCopyright ("billholmes")]
[assembly: AssemblyTrademark ("")]
[assembly: AssemblyCulture ("")]

// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.

[assembly: AssemblyVersion ("1.0.*")]

// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.

//[assembly: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyFile("")]
28 changes: 15 additions & 13 deletions WEPopover/binding/WEPopover.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.0</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{EAFB21D7-C6B2-430F-9A1C-9A00AD10BE15}</ProjectGuid>
<ProjectTypeGuids>{F5B4F3BC-B597-4E2B-B552-EF5D8A32436F};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<ProjectTypeGuids>{8FFB629D-F513-41CE-95D2-7ECE97B6EEEC};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<ProjectGuid>{8CF9EC43-DC9A-47F9-88C8-830B53EE6B6F}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>WEPopover</RootNamespace>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
<AssemblyName>WEPopover</AssemblyName>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -34,25 +34,27 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="monotouch" />
<Reference Include="Xamarin.iOS" />
</ItemGroup>
<ItemGroup>
<Folder Include="Resources\" />
</ItemGroup>
<ItemGroup>
<ObjcBindingApiDefinition Include="ApiDefinition.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="libWEPopover.linkwith.cs">
<DependentUpon>libWEPopover.a</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<ObjcBindingCoreSource Include="StructsAndEnums.cs" />
<ObjcBindingApiDefinition Include="ApiDefinition.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Xamarin.ObjcBinding.CSharp.targets" />
<ItemGroup>
<Compile Include="Extras.cs" />
<Compile Include="libWEPopoverUniversal.linkwith.cs">
<DependentUpon>libWEPopoverUniversal.a</DependentUpon>
</Compile>
<ObjcBindingCoreSource Include="StructsAndEnums.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.ObjCBinding.CSharp.targets" />
<ItemGroup>
<ObjcBindingNativeLibrary Include="libWEPopoverUniversal.a" />
<ObjcBindingNativeLibrary Include="WEPopoverLib\WEPopover\libWEPopover.a">
<Link>libWEPopover.a</Link>
</ObjcBindingNativeLibrary>
</ItemGroup>
</Project>
Loading