@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
rb 62 lines 2.11 KB
Raw
1 #
2 # T3HighlightsNative+autolinking.rb
3 # This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4 # https://github.com/mrousavy/nitro
5 # Copyright © Marc Rousavy @ Margelo
6 #
7
8 # This is a Ruby script that adds all files generated by Nitrogen
9 # to the given podspec.
10 #
11 # To use it, add this to your .podspec:
12 # ```ruby
13 # Pod::Spec.new do |spec|
14 # # ...
15 #
16 # # Add all files generated by Nitrogen
17 # load 'nitrogen/generated/ios/T3HighlightsNative+autolinking.rb'
18 # add_nitrogen_files(spec)
19 # end
20 # ```
21
22 def add_nitrogen_files(spec)
23 Pod::UI.puts "[NitroModules] 🔥 T3HighlightsNative is boosted by nitro!"
24
25 spec.dependency "NitroModules"
26
27 current_source_files = Array(spec.attributes_hash['source_files'])
28 spec.source_files = current_source_files + [
29 # Generated cross-platform specs
30 "nitrogen/generated/shared/**/*.{h,hpp,c,cpp,swift}",
31 # Generated bridges for the cross-platform specs
32 "nitrogen/generated/ios/**/*.{h,hpp,c,cpp,mm,swift}",
33 ]
34
35 current_public_header_files = Array(spec.attributes_hash['public_header_files'])
36 spec.public_header_files = current_public_header_files + [
37 # Generated specs
38 "nitrogen/generated/shared/**/*.{h,hpp}",
39 # Swift to C++ bridging helpers
40 "nitrogen/generated/ios/T3HighlightsNative-Swift-Cxx-Bridge.hpp"
41 ]
42
43 current_private_header_files = Array(spec.attributes_hash['private_header_files'])
44 spec.private_header_files = current_private_header_files + [
45 # iOS specific specs
46 "nitrogen/generated/ios/c++/**/*.{h,hpp}",
47 # Views are framework-specific and should be private
48 "nitrogen/generated/shared/**/views/**/*"
49 ]
50
51 current_pod_target_xcconfig = spec.attributes_hash['pod_target_xcconfig'] || {}
52 spec.pod_target_xcconfig = current_pod_target_xcconfig.merge({
53 # Use C++ 20
54 "CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
55 # Enables C++ <-> Swift interop (by default it's only ObjC)
56 "SWIFT_OBJC_INTEROP_MODE" => "objcxx",
57 # Enables stricter modular headers
58 "DEFINES_MODULE" => "YES",
59 # Disable auto-generated ObjC header for Swift (Static linkage on Xcode 26.4 breaks here)
60 "SWIFT_INSTALL_OBJC_HEADER" => "NO",
61 })
62 end