forked from FLEXTool/FLEX
-
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.
Add generated header maps and preserve header map paths to build with…
… Bazel This commit adds headermaps so Bazel can find where headers are located, Incase of XBS Xcode does this for us but for Bazel we need to provide headermap. We have setup example project to generate headermaps
- Loading branch information
1 parent
51b3bf7
commit a864075
Showing
12 changed files
with
107 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
USE_BAZEL_VERSION=5.4.1 |
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,18 @@ | ||
build \ | ||
--spawn_strategy=local \ | ||
--worker_sandboxing=false \ | ||
--features=swift.cacheable_swiftmodules \ | ||
--apple_platform_type=ios \ | ||
--verbose_failures \ | ||
--features=swift.use_global_module_cache \ | ||
--strategy=SwiftCompile=worker \ | ||
--experimental_guard_against_concurrent_changes \ | ||
--features=apple.skip_codesign_simulator_bundles \ | ||
--features=apple.arm64_simulator_use_device_deps \ | ||
--features=swift.index_while_building \ | ||
--features=swift.use_global_index_store \ | ||
--modify_execution_info=^(BitcodeSymbolsCopy|BundleApp|BundleTreeApp|DsymDwarf|DsymLipo|GenerateAppleSymbolsFile|ObjcBinarySymbolStrip|CppLink|ObjcLink|ProcessAndSign|SignBinary|SwiftArchive|SwiftStdlibCopy)$=+no-remote,^(BundleResources|ImportedDynamicFrameworkProcessor)$=+no-remote-exec \ | ||
|
||
|
||
build:Debug \ | ||
--compilation_mode=dbg \ |
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,22 @@ | ||
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_application") | ||
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library") | ||
|
||
|
||
swift_library( | ||
name = "FLEXExampleSources", | ||
srcs = glob(["FLEXample/App/**/*.swift"]) + ["FLEXample/AppDelegate.swift"], | ||
deps = ["//Pods/FLEX"] | ||
) | ||
|
||
ios_application( | ||
name = "FLEXExample", | ||
bundle_id = "com.flipboard.flex.FLEXample", | ||
families = ["iphone"], | ||
infoplists = ["FLEXample/Supporting Files/Info.plist"], | ||
minimum_os_version = "12.0", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"FLEXExampleSources", | ||
], | ||
|
||
) |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
gem 'cocoapods-bazel' |
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,6 +1,14 @@ | ||
platform :ios, '13.0' | ||
|
||
plugin 'cocoapods-bazel', { | ||
rules: { | ||
'apple_framework' => { load: '@build_bazel_rules_ios//rules:framework.bzl', rule: 'apple_framework' }.freeze, | ||
'ios_application' => { load: '@build_bazel_rules_ios//rules:app.bzl', rule: 'ios_application' }.freeze, | ||
'ios_unit_test' => { load: '@build_bazel_rules_ios//rules:test.bzl', rule: 'ios_unit_test' }.freeze | ||
}.freeze, | ||
} | ||
|
||
target 'FLEXample' do | ||
project 'FLEXample-Cocoapods' | ||
pod 'FLEX', :path => '../' | ||
pod 'FLEX', :git => 'https://github.com/gojekfarm/Flex.git', :branch => 'remove-private-api-usage-and-add-header-maps', :modular_headers => true , :configurations => ['Debug'] | ||
end |
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,43 @@ | ||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") | ||
|
||
git_repository( | ||
name = "build_bazel_rules_ios", | ||
remote = "https://github.com/bazel-ios/rules_ios.git", | ||
commit = "3884a206840967cee89c4bf16202bd726c118772", | ||
) | ||
|
||
load( | ||
"@build_bazel_rules_ios//rules:repositories.bzl", | ||
"rules_ios_dependencies" | ||
) | ||
|
||
rules_ios_dependencies() | ||
|
||
load( | ||
"@build_bazel_rules_apple//apple:repositories.bzl", | ||
"apple_rules_dependencies", | ||
) | ||
|
||
apple_rules_dependencies() | ||
|
||
load( | ||
"@build_bazel_rules_swift//swift:repositories.bzl", | ||
"swift_rules_dependencies", | ||
) | ||
|
||
swift_rules_dependencies() | ||
|
||
load( | ||
"@build_bazel_rules_swift//swift:extras.bzl", | ||
"swift_rules_extra_dependencies", | ||
) | ||
|
||
swift_rules_extra_dependencies() | ||
|
||
load( | ||
"@build_bazel_apple_support//lib:repositories.bzl", | ||
"apple_support_dependencies", | ||
) | ||
|
||
apple_support_dependencies() |
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
Binary file not shown.
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