1# Copyright (c) Meta Platforms, Inc. and affiliates.
2#
3# This source code is licensed under the MIT license found in the
4# LICENSE file in the root directory of this source tree.
5
6package = JSON.parse(File.read(File.expand_path('../../package.json', __dir__)))
7version = package['version']
8
9
10
11Pod::Spec.new do |spec|
12  spec.name = 'ABI48_0_0Yoga'
13  spec.version = '1.14.0'
14  spec.license =  { :type => 'MIT' }
15  spec.homepage = 'https://yogalayout.com'
16  spec.documentation_url = 'https://yogalayout.com/docs/'
17
18  spec.summary = 'Yoga is a cross-platform layout engine which implements Flexbox.'
19  spec.description = 'Yoga is a cross-platform layout engine enabling maximum collaboration within your team by implementing an API many designers are familiar with, and opening it up to developers across different platforms.'
20
21  spec.authors = 'Facebook'
22  spec.source = { :path => "." }
23
24  spec.module_name = 'ABI48_0_0yoga'
25  spec.header_dir = 'ABI48_0_0yoga'
26  spec.requires_arc = false
27  spec.pod_target_xcconfig = {
28      'DEFINES_MODULE' => 'YES'
29  }
30  spec.compiler_flags = [
31      '-fno-omit-frame-pointer',
32      '-fexceptions',
33      '-Wall',
34      '-Werror',
35      '-std=c++17',
36      '-fPIC'
37  ]
38
39  # Pinning to the same version as React.podspec.
40  spec.platforms = { :ios => "12.4" }
41
42  # Set this environment variable when *not* using the `:path` option to install the pod.
43  # E.g. when publishing this spec to a spec repo.
44  source_files = 'yoga/**/*.{cpp,h}'
45  source_files = File.join('ReactCommon/yoga', source_files) if ENV['INSTALL_YOGA_WITHOUT_PATH_OPTION']
46  spec.source_files = source_files
47
48  header_files = 'yoga/*.h'
49  header_files = File.join('ReactCommon/yoga', header_files) if ENV['INSTALL_YOGA_WITHOUT_PATH_OPTION']
50  spec.public_header_files = header_files
51end
52