-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
orlando - for updates of setting of tensorflow_tf
- Loading branch information
Showing
21 changed files
with
137 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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 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 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,23 +1,78 @@ | ||
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library") | ||
# load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
swift_library( | ||
# swift_library( | ||
# name = "audio_video_swift", | ||
# srcs = [ | ||
# "//tensorflow_io/core:swift/audio.swift", | ||
# "//tensorflow_io/core:swift/video.swift", | ||
# ], | ||
# copts = [ | ||
# "-target", | ||
# "x86_64-apple-macosx10.14", | ||
# ], | ||
# linkopts = [ | ||
# "-L/Applications/Xcode.app/Contents/Developer//Toolchains/XcodeDefault.xctoolchain/usr/lib/swift", | ||
# "-Wl,-rpath,/Applications/Xcode.app/Contents/Developer//Toolchains/XcodeDefault.xctoolchain/usr/lib/swift", | ||
# "-target", | ||
# "x86_64-apple-macosx10.14", | ||
# ], | ||
# module_name = "audio_video", | ||
# alwayslink = True, | ||
# ) | ||
|
||
cc_library( | ||
name = "audio_video_swift", | ||
srcs = [ | ||
"//tensorflow_io/core:swift/audio.swift", | ||
"//tensorflow_io/core:swift/video.swift", | ||
], | ||
copts = [ | ||
"-target", | ||
"x86_64-apple-macosx10.14", | ||
], | ||
linkopts = [ | ||
"-L/usr/lib/swift", | ||
"-Wl,-rpath,/usr/lib/swift", | ||
"-target", | ||
"x86_64-apple-macosx10.14", | ||
], | ||
module_name = "audio_video", | ||
srcs = [":sub/audio_video_swift"], | ||
# srcs = select({ | ||
# "@bazel_tools//src/conditions:windows": [ | ||
# "//tools/build/swift:libaudio_video_swift.dylib", | ||
# ], | ||
# "//conditions:default": [ | ||
# "//tools/build/swift:libaudio_video_swift.dylib", | ||
# ], | ||
# }), | ||
#data = ["lib/libtensorflow_framework.so"], | ||
visibility = ["//visibility:public"], | ||
alwayslink = True, | ||
) | ||
|
||
cc_binary( | ||
name = "sub/audio_video_swift", | ||
srcs = [], | ||
linkopts = select({ | ||
"@bazel_tools//src/conditions:windows": [], | ||
"@bazel_tools//src/conditions:darwin": [ | ||
"-Wl,-install_name,@rpath/libaudio_video_swift.dylib", | ||
], | ||
"//conditions:default": [ | ||
"-Wl,--disable-new-dtags", | ||
"-Wl,-rpath,'$$ORIGIN/'", | ||
"-Wl,-soname,libaudio_video_swift.dylib", | ||
], | ||
}), | ||
linkshared = 1, | ||
deps = [], | ||
) | ||
|
||
# cc_library( | ||
# name = "libaudio_video_swift.dylib", | ||
# srcs = ["//tools/build/swift:libaudio_video_swift.dylib"], | ||
# # copts = [ | ||
# # "-target", | ||
# # "x86_64-apple-macosx10.14", | ||
# # ], | ||
# # linkopts = [ | ||
# # "-L/Applications/Xcode.app/Contents/Developer//Toolchains/XcodeDefault.xctoolchain/usr/lib/swift", | ||
# # "-Wl,-rpath,/Applications/Xcode.app/Contents/Developer//Toolchains/XcodeDefault.xctoolchain/usr/lib/swift", | ||
# # "-target", | ||
# # "x86_64-apple-macosx10.14", | ||
# # ], | ||
# # srcs = ["//tools/build/swift:libaudio_video_swift.a", "//tools/build/swift:libaudio_video_swift.dylib"], | ||
# # hdrs = glob(["path/to/headers/*.h"]), # Include headers if needed | ||
# # module_name = "audio_video", | ||
# visibility = ["//visibility:public"], | ||
# # static_build_only = True, | ||
# alwayslink = True, | ||
# ) |
This file contains 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,5 @@ | ||
# README | ||
|
||
```bash | ||
swiftc -framework AVFoundation -target x86_64-apple-macosx10.14 -sdk $(xcrun --sdk macosx --show-sdk-path) -emit-module-path audio_video.swiftmodule -F__BAZEL_XCODE_DEVELOPER_DIR__/Platforms/MacOSX.platform/Developer/Library/Frameworks -I__BAZEL_XCODE_DEVELOPER_DIR__/Platforms/MacOSX.platform/Developer/usr/lib -emit-object -output-file-map audio_video_swift.output_file_map.json -Xfrontend -DDEBUG -Onone -Xfrontend -serialize-debugging-options -enable-testing -gline-tables-only -Xcc -iquote. -Xcc -iquotebazel-out/darwin-fastbuild/bin -Xfrontend -color-diagnostics -enable-batch-mode -module-name audio_video -parse-as-library -target x86_64-apple-macosx10.14 -Xcc -O0 -Xcc -DDEBUG=1 ../../../tensorflow_io/core/swift/audio.swift ../../../tensorflow_io/core/swift/video.swift | ||
``` |
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions
1
tools/build/swift/audio_video_swift.output_file_map.incremental.json
This file contains 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 @@ | ||
{"":{"swift-dependencies":"bazel-out/darwin-fastbuild/bin/_swift_incremental/tools/build/swift/audio_video_swift.swiftdeps"},"tensorflow_io/core/swift/audio.swift":{"ast-dump":"bazel-out/darwin-fastbuild/bin/tools/build/swift/audio_video_swift_objs/swift/audio.swift.ast","object":"bazel-out/darwin-fastbuild/bin/_swift_incremental/tools/build/swift/audio_video_swift_objs/swift/audio.swift.o","swift-dependencies":"bazel-out/darwin-fastbuild/bin/_swift_incremental/tools/build/swift/audio_video_swift_objs/swift/audio.swift.swiftdeps","swiftmodule":"bazel-out/darwin-fastbuild/bin/_swift_incremental/tools/build/swift/audio_video_swift_objs/swift/audio.swift.partial_swiftmodule"},"tensorflow_io/core/swift/video.swift":{"ast-dump":"bazel-out/darwin-fastbuild/bin/tools/build/swift/audio_video_swift_objs/swift/video.swift.ast","object":"bazel-out/darwin-fastbuild/bin/_swift_incremental/tools/build/swift/audio_video_swift_objs/swift/video.swift.o","swift-dependencies":"bazel-out/darwin-fastbuild/bin/_swift_incremental/tools/build/swift/audio_video_swift_objs/swift/video.swift.swiftdeps","swiftmodule":"bazel-out/darwin-fastbuild/bin/_swift_incremental/tools/build/swift/audio_video_swift_objs/swift/video.swift.partial_swiftmodule"}} |
This file contains 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 @@ | ||
{"tensorflow_io/core/swift/audio.swift":{"ast-dump":"bazel-out/darwin-fastbuild/bin/tools/build/swift/audio_video_swift_objs/swift/audio.swift.ast","object":"bazel-out/darwin-fastbuild/bin/tools/build/swift/audio_video_swift_objs/swift/audio.swift.o","swiftmodule":"bazel-out/darwin-fastbuild/bin/tools/build/swift/audio_video_swift_objs/swift/audio.swift.partial_swiftmodule"},"tensorflow_io/core/swift/video.swift":{"ast-dump":"bazel-out/darwin-fastbuild/bin/tools/build/swift/audio_video_swift_objs/swift/video.swift.ast","object":"bazel-out/darwin-fastbuild/bin/tools/build/swift/audio_video_swift_objs/swift/video.swift.o","swiftmodule":"bazel-out/darwin-fastbuild/bin/tools/build/swift/audio_video_swift_objs/swift/video.swift.partial_swiftmodule"}} |
This file contains 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 @@ | ||
org_tensorflow_io/tools/build/swift/audio_video_swift /private/var/tmp/_bazel_llv23/a82ad01ec0c5d2a91897f1531acdf67b/execroot/org_tensorflow_io/bazel-out/darwin-fastbuild/bin/tools/build/swift/audio_video_swift |
Binary file added
BIN
+8.2 KB
...ld/swift/audio_video_swift.runfiles/org_tensorflow_io/tools/build/swift/audio_video_swift
Binary file not shown.
This file contains 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 @@ | ||
org_tensorflow_io/tools/build/swift/audio_video_swift /private/var/tmp/_bazel_llv23/a82ad01ec0c5d2a91897f1531acdf67b/execroot/org_tensorflow_io/bazel-out/darwin-fastbuild/bin/tools/build/swift/audio_video_swift |
Binary file not shown.
Binary file added
BIN
+13.4 KB
tools/build/swift/audio_video_swift_objs/swift/audio.swift.partial_swiftmodule
Binary file not shown.
Binary file added
BIN
+364 Bytes
tools/build/swift/audio_video_swift_objs/swift/audio.swift.swiftdoc
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+191 KB
tools/build/swift/audio_video_swift_objs/swift/libaudio_video_swift.dylib
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+51.4 KB
tools/build/swift/audio_video_swift_objs/swift/video.swift.partial_swiftmodule
Binary file not shown.
Binary file added
BIN
+364 Bytes
tools/build/swift/audio_video_swift_objs/swift/video.swift.swiftdoc
Binary file not shown.
Binary file not shown.
Binary file not shown.