Commit 41ac8d24 authored by Samuel Giddins's avatar Samuel Giddins

Revert target name changes

While well-intentioned, they broke cross-project target dependency detection
parent 95276786
......@@ -45,7 +45,11 @@ module Pod
# and #product_module_name or #label.
#
def product_basename
product_module_name
if requires_frameworks?
product_module_name
else
label
end
end
# @return [String] the name of the framework, depends on #label.
......@@ -63,7 +67,7 @@ module Pod
# used for migration.
#
def static_library_name
"lib#{product_module_name}.a"
"lib#{label}.a"
end
# @return [Symbol] either :framework or :static_library, depends on
......
......@@ -156,7 +156,7 @@ module Pod
end
it 'links the pod targets with the aggregate target' do
@xcconfig.to_hash['OTHER_LDFLAGS'].should.include '-l"BananaLib"'
@xcconfig.to_hash['OTHER_LDFLAGS'].should.include '-l"BananaLib-Pods"'
end
end
......
......@@ -433,7 +433,7 @@ module Pod
end
it 'returns the library name' do
@target.static_library_name.should == 'libPods_iOS_Example.a'
@target.static_library_name.should == 'libPods-iOS Example.a'
end
it 'returns :framework as product type' do
......
......@@ -48,7 +48,7 @@ module Pod
it 'returns the name of its product' do
@pod_target.product_name.should == 'libBananaLib.a'
@pod_target.scoped.first.product_name.should == 'libBananaLib.a'
@pod_target.scoped.first.product_name.should == 'libBananaLib-Pods.a'
end
it 'returns the spec consumers for the pod targets' do
......@@ -225,9 +225,9 @@ module Pod
it 'returns the path for the CONFIGURATION_BUILD_DIR build setting' do
@pod_target.build_product_path.should == '${PODS_CONFIGURATION_BUILD_DIR}/BananaLib/libBananaLib.a'
@pod_target.scoped.first.build_product_path.should == '${PODS_CONFIGURATION_BUILD_DIR}/BananaLib-Pods/libBananaLib.a'
@pod_target.scoped.first.build_product_path.should == '${PODS_CONFIGURATION_BUILD_DIR}/BananaLib-Pods/libBananaLib-Pods.a'
@pod_target.build_product_path('$BUILT_PRODUCTS_DIR').should == '$BUILT_PRODUCTS_DIR/BananaLib/libBananaLib.a'
@pod_target.scoped.first.build_product_path('$BUILT_PRODUCTS_DIR').should == '$BUILT_PRODUCTS_DIR/BananaLib-Pods/libBananaLib.a'
@pod_target.scoped.first.build_product_path('$BUILT_PRODUCTS_DIR').should == '$BUILT_PRODUCTS_DIR/BananaLib-Pods/libBananaLib-Pods.a'
end
it 'returns prefix header path' do
......@@ -369,7 +369,7 @@ module Pod
it 'returns the library name' do
@pod_target.static_library_name.should == 'libBananaLib.a'
@pod_target.scoped.first.static_library_name.should == 'libBananaLib.a'
@pod_target.scoped.first.static_library_name.should == 'libBananaLib-Pods.a'
end
it 'returns :framework as product type' do
......@@ -388,7 +388,7 @@ module Pod
describe 'Host does not requires frameworks' do
it 'returns the product name' do
@pod_target.product_name.should == 'libBananaLib.a'
@pod_target.scoped.first.product_name.should == 'libBananaLib.a'
@pod_target.scoped.first.product_name.should == 'libBananaLib-Pods.a'
end
it 'returns the framework name' do
......@@ -397,7 +397,7 @@ module Pod
it 'returns the library name' do
@pod_target.static_library_name.should == 'libBananaLib.a'
@pod_target.scoped.first.static_library_name.should == 'libBananaLib.a'
@pod_target.scoped.first.static_library_name.should == 'libBananaLib-Pods.a'
end
it 'returns :static_library as product type' do
......@@ -434,7 +434,7 @@ module Pod
it 'returns the library name' do
@pod_target.static_library_name.should == 'libOrangeFramework.a'
@pod_target.scoped.first.static_library_name.should == 'libOrangeFramework.a'
@pod_target.scoped.first.static_library_name.should == 'libOrangeFramework-Pods.a'
end
it 'returns :framework as product type' do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment