Sha256: 15cba348255d38cacecf8476924813c826f11dacbc4eeb8904a4eb44325a3ce8
Contents?: true
Size: 750 Bytes
Versions: 1
Compression:
Stored size: 750 Bytes
Contents
module Symbols # # performs symbol aliasing # # for each dependency: # - determine symbols for classes and global constants # - alias each symbol to Pod#{pod_name}_#{symbol} # - put defines into `GCC_PREPROCESSOR_DEFINITIONS` for passing to Xcode # def mangle_for_pod_dependencies(pod_name, sandbox_root) pod_libs = Dir.glob("#{sandbox_root}/build/libPods-*.a").select do |file| file !~ /#{pod_name}/ end all_syms = [] pod_libs.each do |pod_lib| syms = Symbols.symbols_from_library(pod_lib) all_syms += syms.map! { |sym| sym + "=Pod#{pod_name}_" + sym } end "GCC_PREPROCESSOR_DEFINITIONS='${inherited} #{all_syms.join(' ')}'" end module_function :mangle_for_pod_dependencies end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-packager-0.1.0 | lib/mangle.rb |