Browse Source

adds workspace, copy artefacts script, readme

master
Andreas Buff 3 months ago
parent
commit
36ef093114
5 changed files with 156 additions and 9 deletions
  1. +42
    -1
      README.md
  2. +32
    -8
      pEpMimeObjCAdapter.xcodeproj/project.pbxproj
  3. +67
    -0
      pEpMimeObjCAdapter.xcodeproj/xcshareddata/xcschemes/libpEpMimeObjCAdapter_macOS.xcscheme
  4. +7
    -0
      pEpMimeObjCAdapter.xcworkspace/contents.xcworkspacedata
  5. +8
    -0
      pEpMimeObjCAdapter.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

+ 42
- 1
README.md View File

@ -1 +1,42 @@
# TODO
# WIP
## Required Tools
For building the engine, you need a working python3 environment and all dependencies:
```
sudo port install git
```
## Setup instructions / Dependencies
In a directory of your choice, do:
```
mkdir src_pEpMimeObjCAdapter
cd src_pEpMimeObjCAdapter
git clone https://gitea.pep.foundation/pEp.foundation/pEpMIME.git
```
## Build
### Using Xcode
`open pEpMimeObjCAdapter/pEpMimeObjCAdapter.xcworkspace/`
Build scheme "libpEpMimeObjCAdapter_macOS".
### Using terminal
`xcodebuild -workspace "pEpMimeObjCAdapter.xcworkspace" -scheme "libpEpMimeObjCAdapter_macOS" -configuration RELEASE`
(or DEBUG)
## Build Dir & Build Artefacts
You can find the build artefacts in the `pEpMimeObjCAdapter/build` folder

+ 32
- 8
pEpMimeObjCAdapter.xcodeproj/project.pbxproj View File

@ -14,7 +14,7 @@
/* Begin PBXFileReference section */
1574D19A268DB995003A5161 /* pEpMimeObjCAdapter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = pEpMimeObjCAdapter.h; sourceTree = "<group>"; };
1574D19B268DB995003A5161 /* pEpMimeObjCAdapter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = pEpMimeObjCAdapter.m; sourceTree = "<group>"; };
1574D1A0268DB9C8003A5161 /* liblibpepmimeobjcadapter_macOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = liblibpepmimeobjcadapter_macOS.a; sourceTree = BUILT_PRODUCTS_DIR; };
1574D1A0268DB9C8003A5161 /* liblibpEpMimeObjCAdapter_macOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = liblibpEpMimeObjCAdapter_macOS.a; sourceTree = BUILT_PRODUCTS_DIR; };
1574D1A2268DB9C8003A5161 /* libpepmimeobjcadapter_macOS.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = libpepmimeobjcadapter_macOS.h; sourceTree = "<group>"; };
1574D1A4268DB9C8003A5161 /* libpepmimeobjcadapter_macOS.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = libpepmimeobjcadapter_macOS.m; sourceTree = "<group>"; };
/* End PBXFileReference section */
@ -42,7 +42,7 @@
1574D18E268DB8A1003A5161 /* Products */ = {
isa = PBXGroup;
children = (
1574D1A0268DB9C8003A5161 /* liblibpepmimeobjcadapter_macOS.a */,
1574D1A0268DB9C8003A5161 /* liblibpEpMimeObjCAdapter_macOS.a */,
);
name = Products;
sourceTree = "<group>";
@ -79,21 +79,22 @@
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
1574D19F268DB9C8003A5161 /* libpepmimeobjcadapter_macOS */ = {
1574D19F268DB9C8003A5161 /* libpEpMimeObjCAdapter_macOS */ = {
isa = PBXNativeTarget;
buildConfigurationList = 1574D1A6268DB9C8003A5161 /* Build configuration list for PBXNativeTarget "libpepmimeobjcadapter_macOS" */;
buildConfigurationList = 1574D1A6268DB9C8003A5161 /* Build configuration list for PBXNativeTarget "libpEpMimeObjCAdapter_macOS" */;
buildPhases = (
1574D19C268DB9C8003A5161 /* Headers */,
1574D19D268DB9C8003A5161 /* Sources */,
1574D19E268DB9C8003A5161 /* Frameworks */,
1574D1AF268DBD55003A5161 /* Copy artefacts to custom build dir */,
);
buildRules = (
);
dependencies = (
);
name = libpepmimeobjcadapter_macOS;
name = libpEpMimeObjCAdapter_macOS;
productName = libpepmimeobjcadapter_macOS;
productReference = 1574D1A0268DB9C8003A5161 /* liblibpepmimeobjcadapter_macOS.a */;
productReference = 1574D1A0268DB9C8003A5161 /* liblibpEpMimeObjCAdapter_macOS.a */;
productType = "com.apple.product-type.library.static";
};
/* End PBXNativeTarget section */
@ -122,11 +123,34 @@
projectDirPath = "";
projectRoot = "";
targets = (
1574D19F268DB9C8003A5161 /* libpepmimeobjcadapter_macOS */,
1574D19F268DB9C8003A5161 /* libpEpMimeObjCAdapter_macOS */,
);
};
/* End PBXProject section */
/* Begin PBXShellScriptBuildPhase section */
1574D1AF268DBD55003A5161 /* Copy artefacts to custom build dir */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
name = "Copy artefacts to custom build dir";
outputFileListPaths = (
);
outputPaths = (
"$(PROJECT_DIR)/build/libpEpMimeObjCAdapter_macOS.a",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/bash;
shellScript = "CUSTOM_BUILD_DIR=${PROJECT_DIR}/build\nmkdir -p ${CUSTOM_BUILD_DIR}\ncp -R \"${BUILD_DIR}/${CONFIGURATION}/usr/local/include\" ${CUSTOM_BUILD_DIR}\ncp \"${BUILD_DIR}/${CONFIGURATION}/libpEpMimeObjCAdapter_macOS.a\" ${CUSTOM_BUILD_DIR}\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
1574D19D268DB9C8003A5161 /* Sources */ = {
isa = PBXSourcesBuildPhase;
@ -284,7 +308,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
1574D1A6268DB9C8003A5161 /* Build configuration list for PBXNativeTarget "libpepmimeobjcadapter_macOS" */ = {
1574D1A6268DB9C8003A5161 /* Build configuration list for PBXNativeTarget "libpEpMimeObjCAdapter_macOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (
1574D1A7268DB9C8003A5161 /* Debug */,


+ 67
- 0
pEpMimeObjCAdapter.xcodeproj/xcshareddata/xcschemes/libpEpMimeObjCAdapter_macOS.xcscheme View File

@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1250"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1574D19F268DB9C8003A5161"
BuildableName = "liblibpEpMimeObjCAdapter_macOS.a"
BlueprintName = "libpEpMimeObjCAdapter_macOS"
ReferencedContainer = "container:pEpMimeObjCAdapter.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1574D19F268DB9C8003A5161"
BuildableName = "liblibpEpMimeObjCAdapter_macOS.a"
BlueprintName = "libpEpMimeObjCAdapter_macOS"
ReferencedContainer = "container:pEpMimeObjCAdapter.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

+ 7
- 0
pEpMimeObjCAdapter.xcworkspace/contents.xcworkspacedata View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:pEpMimeObjCAdapter.xcodeproj">
</FileRef>
</Workspace>

+ 8
- 0
pEpMimeObjCAdapter.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

Loading…
Cancel
Save