Summary: Right now Yoga's main branch says it's 2.0.0, and RN's dirsync says its 1.14.0, but the code is really closer to what will be Yoga 3.0.0. This changes trunk builds to "0.0.0" for clarity, which will be assigned a real version number the first time publishing a new Yoga branch. This is separately a good practice to prevent the chance of accidental publishes causing damage. Differential Revision: D51236778
51 lines
1.4 KiB
Ruby
51 lines
1.4 KiB
Ruby
# 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.
|
|
|
|
|
|
Pod::Spec.new do |spec|
|
|
spec.name = 'Yoga'
|
|
spec.version = '0.0.0'
|
|
spec.license = { :type => 'MIT', :file => "LICENSE" }
|
|
spec.homepage = 'https://yogalayout.com/'
|
|
spec.documentation_url = 'https://yogalayout.com/docs'
|
|
|
|
spec.summary = 'An embeddable and performant flexbox layout engine with bindings for multiple languages'
|
|
|
|
spec.authors = {'Meta Open Source' => 'opensource@meta.com'}
|
|
spec.source = {
|
|
:git => 'https://github.com/facebook/yoga.git',
|
|
:tag => "v#{spec.version.to_s}",
|
|
}
|
|
|
|
spec.ios.deployment_target = "13.4"
|
|
|
|
spec.module_name = 'yoga'
|
|
spec.requires_arc = false
|
|
spec.pod_target_xcconfig = {
|
|
'DEFINES_MODULE' => 'YES'
|
|
}
|
|
spec.compiler_flags = [
|
|
'-fno-omit-frame-pointer',
|
|
'-fexceptions',
|
|
'-Wall',
|
|
'-Werror',
|
|
'-Wextra',
|
|
'-Wconversion',
|
|
'-std=c++20',
|
|
'-fPIC'
|
|
]
|
|
|
|
spec.swift_version = '5.1'
|
|
spec.source_files = 'yoga/**/*.{h,cpp}'
|
|
spec.header_mappings_dir = 'yoga'
|
|
|
|
public_header_files = 'yoga/*.h'
|
|
spec.public_header_files = public_header_files
|
|
|
|
all_header_files = 'yoga/**/*.h'
|
|
spec.private_header_files = Dir.glob(all_header_files) - Dir.glob(public_header_files)
|
|
spec.preserve_paths = [all_header_files]
|
|
end
|