-
Notifications
You must be signed in to change notification settings - Fork 58
Adding changes for local build script and cmakelist to create exe using swift package #1166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
37e2174
adding swift wrapper
absaroj 70984ff
moving files to sources
absaroj ca4c6b8
moving files to proper places
absaroj 80790d2
adding module for header expose and importing it in swift wrapper
absaroj 3b91ddc
correcting files for build errors and other changes
absaroj 94f9691
adding module for objc
absaroj 408fc8f
swift build passing'
absaroj 1791586
adding readme
absaroj c24eb4a
changing the package name to 1dsswiftwrapper
absaroj e7e43ef
changing target name
absaroj 477b036
adding pr suggestions
absaroj eb85e7f
adding build.sh changes
absaroj d76b833
cmake list file changes
absaroj 2927818
creating static lib
absaroj 85d380a
adding swift wrappers build and linking
absaroj da20709
adding more logic for building and producing sample app
absaroj bf52749
adding code for swiftc invoking
absaroj 7b69738
adding comments
absaroj 753bde7
adding change to create the sample app
absaroj fde4743
linking and includding modules in swiftc to build the sample exe: bei…
absaroj e96ab38
adding comments
absaroj df89625
removing self
absaroj 2a129d7
compiling all files frrom sample
absaroj 84585b4
removing extraline
absaroj 37e75e1
correcting the output folder of swift build
absaroj d149e89
correcting build output folder paths
absaroj a536f12
Merge branch 'main' into absaroj/local_build
lalitb 2b3105d
Merge branch 'main' into absaroj/local_build
lalitb 8151b28
adding typealias file to stop importing the objcmodule in clients (#1…
absaroj 9b31864
Merge branch 'main' into absaroj/local_build
absaroj 1167d04
Merge branch 'main' into absaroj/local_build
absaroj d8d8b4a
Merge branch 'main' into absaroj/local_build
absaroj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| // | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
| // | ||
|
|
||
| /// Contains alias for the types declared in the ObjC header files to make them available | ||
| /// as part of the swift package module. | ||
| /// To avoid clients not have to import ObjCModule explicitly. | ||
|
|
||
| /// Check corresponding header file for the doc of each type. | ||
|
|
||
| import ObjCModule | ||
|
|
||
| // ODWEventProperties.h | ||
| public typealias PIIKind = ODWPiiKind | ||
| public typealias PrivacyDataType = ODWPrivacyDataType | ||
| public typealias DiagnosticLevel = ODWDiagLevel | ||
|
|
||
| // ODWLogger.h | ||
| public typealias TraceLevel = ODWTraceLevel | ||
| public typealias SessionState = ODWSessionState | ||
|
|
||
| // ODWLogManager.h | ||
| public typealias TransmissionProfile = ODWTransmissionProfile | ||
| public typealias FlushStatus = ODWStatus | ||
|
|
||
| // ODWPrivacyGuard.h | ||
| public typealias DataConcernType = ODWDataConcernType |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,22 @@ | ||
| #!/bin/bash | ||
|
|
||
| export PATH=/usr/local/bin:$PATH | ||
| mkdir out | ||
|
|
||
| # Build flavor | ||
| BUILD_TYPE="debug" | ||
|
|
||
| if [ "$1" == "release" ]; then | ||
| BUILD_TYPE="$1" | ||
| fi | ||
|
|
||
| if [ "$1" == "clean" ] || [ "$2" == "clean" ]; then | ||
| # Clean the output folders | ||
| echo "Cleaning output folders..." | ||
| swift package clean | ||
| rm -Rf out | ||
| fi | ||
|
|
||
| # Generate the build files and run build | ||
| mkdir -p out/StaticLibs | ||
| cd out | ||
| cmake .. -G Xcode # Generate swift project files for xcode | ||
| xcodebuild -quiet | ||
| cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE .. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.