Skip to content

Commit

Permalink
Add CGCatalog sample project. (#566)
Browse files Browse the repository at this point in the history
* Add CGCatalog sample project.

This sample project contains examples of using the Core Graphics framework
with the bridge.

* Removed project tests

* Added TODOs. Removed unnecessary code. Fixed copyright. Added pragma

* Deleted build files
  • Loading branch information
adein authored and jaredhms committed Jun 21, 2016
1 parent eaf446d commit 6e6cf59
Show file tree
Hide file tree
Showing 39 changed files with 2,399 additions and 0 deletions.
43 changes: 43 additions & 0 deletions samples/CGCatalog/CGCatalog-WinStore10.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.22823.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CGCatalog", "CGCatalog", "{75A57568-C6E9-4942-BE20-D512FA0E6C80}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CGCatalog-Headers", "CGCatalog.vsimporter\CGCatalog-Headers-WinStore10\CGCatalog-Headers.vcxitems", "{D572B7A5-D04F-47D5-AB85-6CA3D7FFC143}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CGCatalog", "CGCatalog.vsimporter\CGCatalog-WinStore10\CGCatalog.vcxproj", "{173E0C8B-B274-43B0-93AF-CFAA93782000}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
CGCatalog.vsimporter\CGCatalog-Headers-WinStore10\CGCatalog-Headers.vcxitems*{D572B7A5-D04F-47D5-AB85-6CA3D7FFC143}*SharedItemsImports = 9
CGCatalog.vsimporter\CGCatalog-Headers-WinStore10\CGCatalog-Headers.vcxitems*{173E0C8B-B274-43B0-93AF-CFAA93782000}*SharedItemsImports = 4
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
Debug|Win32 = Debug|Win32
Release|ARM = Release|ARM
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{173E0C8B-B274-43B0-93AF-CFAA93782000}.Debug|ARM.ActiveCfg = Debug|ARM
{173E0C8B-B274-43B0-93AF-CFAA93782000}.Debug|ARM.Build.0 = Debug|ARM
{173E0C8B-B274-43B0-93AF-CFAA93782000}.Debug|ARM.Deploy.0 = Debug|ARM
{173E0C8B-B274-43B0-93AF-CFAA93782000}.Debug|Win32.ActiveCfg = Debug|Win32
{173E0C8B-B274-43B0-93AF-CFAA93782000}.Debug|Win32.Build.0 = Debug|Win32
{173E0C8B-B274-43B0-93AF-CFAA93782000}.Debug|Win32.Deploy.0 = Debug|Win32
{173E0C8B-B274-43B0-93AF-CFAA93782000}.Release|ARM.ActiveCfg = Release|ARM
{173E0C8B-B274-43B0-93AF-CFAA93782000}.Release|ARM.Build.0 = Release|ARM
{173E0C8B-B274-43B0-93AF-CFAA93782000}.Release|ARM.Deploy.0 = Release|ARM
{173E0C8B-B274-43B0-93AF-CFAA93782000}.Release|Win32.ActiveCfg = Release|Win32
{173E0C8B-B274-43B0-93AF-CFAA93782000}.Release|Win32.Build.0 = Release|Win32
{173E0C8B-B274-43B0-93AF-CFAA93782000}.Release|Win32.Deploy.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{D572B7A5-D04F-47D5-AB85-6CA3D7FFC143} = {75A57568-C6E9-4942-BE20-D512FA0E6C80}
{173E0C8B-B274-43B0-93AF-CFAA93782000} = {75A57568-C6E9-4942-BE20-D512FA0E6C80}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<HasSharedItems>true</HasSharedItems>
<ItemsRootNamespace>CGCatalog_Headers</ItemsRootNamespace>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
<Keyword>IslandwoodProj</Keyword>
<ItemsProjectGuid>{D572B7A5-D04F-47D5-AB85-6CA3D7FFC143}</ItemsProjectGuid>
<SharedGUID>{69C2B8BC-9E2F-4E16-9105-5299E2AA9504}</SharedGUID>
</PropertyGroup>
<ItemGroup>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\CGCatalog\AppDelegate.h" />
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\CGCatalog\CGCRootViewController.h" />
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\CGCatalog\CGCBaseViewController.h" />
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\CGCatalog\Samples\CGCCGPathApplyViewController.h" />
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\CGCatalog\Samples\CGCCGBitmapContentViewController.h" />
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\CGCatalog\Samples\CGCCGContextViewController.h" />
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\CGCatalog\Samples\CGCCGContextBeginEndTransparencyLayer.h" />
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\CGCatalog\Samples\CGCCGContextSetPatternPhase.h" />
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\CGCatalog\Samples\CGCCGContextReplacePathWithStrokedPath.h" />
</ItemGroup>
<ItemGroup>
<ProjectCapability Include="SourceItemsFromImports" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="CGCatalog">
<UniqueIdentifier>{EC004CE6-3C6A-4C8E-B2AF-2F7E9F794D13}</UniqueIdentifier>
</Filter>
<Filter Include="CGCatalog\Samples">
<UniqueIdentifier>{FD180152-726F-4D60-A3CF-53F543348827}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\CGCatalog\AppDelegate.h">
<Filter>CGCatalog</Filter>
</ClInclude>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\CGCatalog\CGCRootViewController.h">
<Filter>CGCatalog</Filter>
</ClInclude>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\CGCatalog\CGCBaseViewController.h">
<Filter>CGCatalog</Filter>
</ClInclude>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\CGCatalog\Samples\CGCCGPathApplyViewController.h">
<Filter>CGCatalog\Samples</Filter>
</ClInclude>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\CGCatalog\Samples\CGCCGBitmapContentViewController.h">
<Filter>CGCatalog\Samples</Filter>
</ClInclude>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\CGCatalog\Samples\CGCCGContextViewController.h">
<Filter>CGCatalog\Samples</Filter>
</ClInclude>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\CGCatalog\Samples\CGCCGContextBeginEndTransparencyLayer.h">
<Filter>CGCatalog\Samples</Filter>
</ClInclude>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\CGCatalog\Samples\CGCCGContextSetPatternPhase.h">
<Filter>CGCatalog\Samples</Filter>
</ClInclude>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\CGCatalog\Samples\CGCCGContextReplacePathWithStrokedPath.h">
<Filter>CGCatalog\Samples</Filter>
</ClInclude>
</ItemGroup>
</Project>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
<?xml version="1.0"?>
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|ARM">
<Configuration>Debug</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM">
<Configuration>Release</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectName>CGCatalog</ProjectName>
<RootNamespace>CGCatalog</RootNamespace>
<DefaultLanguage>en-US</DefaultLanguage>
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
<AppContainerApplication>true</AppContainerApplication>
<ApplicationType>Windows Store</ApplicationType>
<ApplicationTypeRevision>10.0</ApplicationTypeRevision>
<EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile>
<WindowsTargetPlatformVersion>10.0.10586.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformMinVersion>10.0.10586.0</WindowsTargetPlatformMinVersion>
<Keyword>IslandwoodProj</Keyword>
<ProjectGuid>{173E0C8B-B274-43B0-93AF-CFAA93782000}</ProjectGuid>
<WINOBJC_SDK_ROOT Condition="'$(WINOBJC_SDK_ROOT)' == ''">C:\Users\adegrow\Documents\islandwood\WinObjC</WINOBJC_SDK_ROOT>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>v140</PlatformToolset>
<TargetName>CGCatalog</TargetName>
</PropertyGroup>
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>v140</PlatformToolset>
<TargetName>CGCatalog</TargetName>
</PropertyGroup>
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>v140</PlatformToolset>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
<Optimize>true</Optimize>
<TargetName>CGCatalog</TargetName>
</PropertyGroup>
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>v140</PlatformToolset>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
<Optimize>true</Optimize>
<TargetName>CGCatalog</TargetName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
<Import Project="$(WINOBJC_SDK_ROOT)\msvc\starboard.props" />
</ImportGroup>
<ImportGroup Label="Shared">
<Import Project="../CGCatalog-Headers-WinStore10/CGCatalog-Headers.vcxitems" Label="Shared" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<PackageCertificateKeyFile>CGCatalog_TemporaryKey.pfx</PackageCertificateKeyFile>
<PackageCertificateThumbprint>D095ED4071F7A0D93085697ECF15F78E76342CCF</PackageCertificateThumbprint>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4453;28204</DisableSpecificWarnings>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
</ClCompile>
<ClangCompile>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<ExcludedSearchPathSubdirectories>*.nib;*.lproj;*.framework;*.gch;(*);.DS_Store;CVS;.svn;.git;.hg;*.xcodeproj;*.xcode;*.pbproj;*.pbxproj;*.xcassets</ExcludedSearchPathSubdirectories>
<HeaderMap>Project</HeaderMap>
<ObjectiveCARC>true</ObjectiveCARC>
<ObjectiveCModules>true</ObjectiveCModules>
<OptimizationLevel>Disabled</OptimizationLevel>
<PreprocessorDefinitions>DEBUG=1</PreprocessorDefinitions>
</ClangCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<SBInfoPlistCopy>
<ExcludedFromBuild>true</ExcludedFromBuild>
</SBInfoPlistCopy>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
<ClCompile>
<AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4453;28204</DisableSpecificWarnings>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
</ClCompile>
<ClangCompile>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<ExcludedSearchPathSubdirectories>*.nib;*.lproj;*.framework;*.gch;(*);.DS_Store;CVS;.svn;.git;.hg;*.xcodeproj;*.xcode;*.pbproj;*.pbxproj;*.xcassets</ExcludedSearchPathSubdirectories>
<HeaderMap>Project</HeaderMap>
<ObjectiveCARC>true</ObjectiveCARC>
<ObjectiveCModules>true</ObjectiveCModules>
<OptimizationLevel>Disabled</OptimizationLevel>
<PreprocessorDefinitions>DEBUG=1</PreprocessorDefinitions>
</ClangCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<SBInfoPlistCopy>
<ExcludedFromBuild>true</ExcludedFromBuild>
</SBInfoPlistCopy>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4453;28204</DisableSpecificWarnings>
</ClCompile>
<ClangCompile>
<ExcludedSearchPathSubdirectories>*.nib;*.lproj;*.framework;*.gch;(*);.DS_Store;CVS;.svn;.git;.hg;*.xcodeproj;*.xcode;*.pbproj;*.pbxproj;*.xcassets</ExcludedSearchPathSubdirectories>
<HeaderMap>Project</HeaderMap>
<ObjectiveCARC>true</ObjectiveCARC>
<ObjectiveCModules>true</ObjectiveCModules>
<OptimizationLevel>MinSpace</OptimizationLevel>
</ClangCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<SBInfoPlistCopy>
<ExcludedFromBuild>true</ExcludedFromBuild>
</SBInfoPlistCopy>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
<ClCompile>
<AdditionalOptions>/bigobj %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4453;28204</DisableSpecificWarnings>
</ClCompile>
<ClangCompile>
<ExcludedSearchPathSubdirectories>*.nib;*.lproj;*.framework;*.gch;(*);.DS_Store;CVS;.svn;.git;.hg;*.xcodeproj;*.xcode;*.pbproj;*.pbxproj;*.xcassets</ExcludedSearchPathSubdirectories>
<HeaderMap>Project</HeaderMap>
<ObjectiveCARC>true</ObjectiveCARC>
<ObjectiveCModules>true</ObjectiveCModules>
<OptimizationLevel>MinSpace</OptimizationLevel>
</ClangCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<SBInfoPlistCopy>
<ExcludedFromBuild>true</ExcludedFromBuild>
</SBInfoPlistCopy>
</ItemDefinitionGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
<Xml Include="default.rd.xml" />
<None Include="CGCatalog_TemporaryKey.pfx" />
<Image Include="Assets\LockScreenLogo.scale-200.png" />
<Image Include="Assets\SplashScreen.scale-200.png" />
<Image Include="Assets\Square150x150Logo.scale-200.png" />
<Image Include="Assets\Square44x44Logo.scale-200.png" />
<Image Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Image Include="Assets\StoreLogo.png" />
<Image Include="Assets\Wide310x150Logo.scale-200.png" />
<ClangCompile Include="..\..\CGCatalog\CGCRootViewController.m" />
<ClangCompile Include="..\..\CGCatalog\Samples\CGCCGContextReplacePathWithStrokedPath.m" />
<ClangCompile Include="..\..\CGCatalog\Samples\CGCCGContextBeginEndTransparencyLayer.m" />
<ClangCompile Include="..\..\CGCatalog\Samples\CGCCGContextSetPatternPhase.m" />
<ClangCompile Include="..\..\CGCatalog\Samples\CGCCGContextViewController.m" />
<ClangCompile Include="..\..\CGCatalog\AppDelegate.m" />
<ClangCompile Include="..\..\CGCatalog\CGCBaseViewController.m" />
<ClangCompile Include="..\..\CGCatalog\Samples\CGCCGBitmapContentViewController.m" />
<ClangCompile Include="..\..\CGCatalog\Samples\CGCCGPathApplyViewController.m" />
<ClangCompile Include="..\..\CGCatalog\main.m" />
<SBResourceCopy Include="..\..\CGCatalog\Resources\LogoAutodesk.png" />
<StoryboardCompile Include="..\..\CGCatalog\Resources\Launch Screen.storyboard" />
<AssetCatalogCompile Include="..\..\CGCatalog\Resources\Assets.xcassets" />
<SBInfoPlistCopy Include="..\..\CGCatalog\Info.plist">
<ExcludedFromBuild Condition="'$(Configuration)'=='Debug'">false</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)'=='Release'">false</ExcludedFromBuild>
<VariableFile Condition="'$(Configuration)'=='Debug'">CGCatalog-Debug-xcvars.txt</VariableFile>
<VariableFile Condition="'$(Configuration)'=='Release'">CGCatalog-Release-xcvars.txt</VariableFile>
</SBInfoPlistCopy>
<Text Include="CGCatalog-Debug-xcvars.txt">
<DeploymentContent>false</DeploymentContent>
</Text>
<Text Include="CGCatalog-Release-xcvars.txt">
<DeploymentContent>false</DeploymentContent>
</Text>
</ItemGroup>
<ItemGroup />
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="$(WINOBJC_SDK_ROOT)\msvc\starboard.targets" />
</ImportGroup>
</Project>
Loading

0 comments on commit 6e6cf59

Please sign in to comment.