mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add SwiftPM package to build dependencies for iOS (#49361)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49361 This change adds the Package.swift file that we will use to build the dependencies for React Native ## Changelog: [Internal] - Swift PM file to build ReactNativeDependencies Reviewed By: cortinico Differential Revision: D69518776 fbshipit-source-id: 85006c3c5933cc6a5fd772f7b014a823d7bb99b3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b98362e311
commit
dd4d4e2923
+42
@@ -0,0 +1,42 @@
|
||||
// swift-tools-version: 6.0
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import PackageDescription
|
||||
|
||||
let glogUnsafeCAndCxxFlags = ["-Wno-shorten-64-to-32"]
|
||||
|
||||
let package = Package(
|
||||
name: "ReactNativeDependencies",
|
||||
products: [
|
||||
// Products define the executables and libraries a package produces, making them visible to other packages.
|
||||
.library(
|
||||
name: "ReactNativeDependencies",
|
||||
type: .dynamic,
|
||||
targets: ["glog"]
|
||||
),
|
||||
],
|
||||
targets: [
|
||||
// Targets are the basic building blocks of a package, defining a module or a test suite.
|
||||
// Targets can depend on other targets in this package and products from dependencies.
|
||||
.target(
|
||||
name: "glog",
|
||||
dependencies: [],
|
||||
path: "glog",
|
||||
// resources: [.copy("../third-party-podspecs/glog/PrivacyInfo.xcprivacy")],
|
||||
publicHeadersPath: "./src",
|
||||
cSettings: [
|
||||
.headerSearchPath("src"),
|
||||
.unsafeFlags(glogUnsafeCAndCxxFlags)
|
||||
],
|
||||
cxxSettings: [
|
||||
.headerSearchPath("src"),
|
||||
.unsafeFlags(glogUnsafeCAndCxxFlags)
|
||||
]
|
||||
),
|
||||
]
|
||||
)
|
||||
Reference in New Issue
Block a user