Method: Pindo::CommonConfuseProj#process_root_setting

Defined in:
lib/pindo/module/build/commonconfuseproj.rb

#process_root_setting(clang_path: nil, root_object: nil, default_type: "symash1") ⇒ Object



178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# File 'lib/pindo/module/build/commonconfuseproj.rb', line 178

def process_root_setting(clang_path:nil, root_object:nil, default_type:"symash1")

    # root_object.build_configuration_list.set_setting('VALID_ARCHS', "arm64 armv7 armv7s")
    root_object.build_configuration_list.set_setting('VALID_ARCHS', "arm64")
    if default_type == "symash1"
        root_object.build_configuration_list.set_setting('CC', "#{clang_path}/bin/symasher")
    else
        root_object.build_configuration_list.set_setting('CC', "#{clang_path}/bin/clang")
    end
    
    root_object.build_configuration_list.set_setting('ENABLE_BITCODE', "NO")

    origin_config = []
    
    unless origin_config.to_s.index "inherited"
        origin_config << "$(inherited)"
    end
    # unless origin_config.to_s.index "-fvisibility=hidden"
    #     origin_config << " -fvisibility=hidden"
    # end

    root_object.build_configuration_list.set_setting('OTHER_CFLAGS', origin_config)

end