Permalink
Browse files

Split WhirlyGlobe so headers can be included without getting code

  • Loading branch information...
Juan J. Collas
Juan J. Collas committed Jan 12, 2013
1 parent 4df7333 commit 31c0dc3ea59078098993b28150c5dedffd16a03d
Showing with 40 additions and 29 deletions.
  1. +22 −0 WhirlyGlobe-Headers/2.0/WhirlyGlobe-Headers.podspec
  2. +18 −29 WhirlyGlobe/2.0/WhirlyGlobe.podspec
@@ -0,0 +1,22 @@
+Pod::Spec.new do |s|
+ s.name = "WhirlyGlobe-Headers"
+ s.version = "2.0"
+ s.summary = "WhirlyGlobe headers is a self contained 3D earth display view suitable for use in iPhone and iPad applications. (temporary)"
+ s.homepage = "https://github.com/mousebird/WhirlyGlobe"
+ s.license = { :type => "Apache 2.0" }
+ s.author = { "Steve Gifford" => "sjg@mousebirdconsulting.com" }
+ s.source = { :git => "https://github.com/mousebird/WhirlyGlobe.git", :tag => "v2.0" }
+
+ s.platform = :ios, '5.0'
+
+ s.requires_arc = true
+
+ s.dependency 'eigen'
+ s.dependency 'boost/shared_ptr-includes'
+ s.dependency 'boost/pointer_cast-includes'
+ s.dependency 'boost/math-includes'
+
+ s.source_files = "WhirlyGlobeSrc/{WhirlyGlobeLib,WhirlyGlobe-MaplyComponent}/include/**/*.h"
+ s.public_header_files = FileList['WhirlyGlobeSrc/{WhirlyGlobeLib,WhirlyGlobe-MaplyComponent}/include/**/*.{h}'].exclude(/private/)
+
+end
@@ -3,44 +3,33 @@ Pod::Spec.new do |s|
s.version = "2.0"
s.summary = "WhirlyGlobe is a self contained 3D earth display view suitable for use in iPhone and iPad applications."
s.homepage = "https://github.com/mousebird/WhirlyGlobe"
- s.license = { :type => "Apache 2.0",
- :text => <<-LICENSE
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- LICENSE
- }
+ s.license = { :type => "Apache 2.0" }
s.author = { "Steve Gifford" => "sjg@mousebirdconsulting.com" }
s.source = { :git => "https://github.com/mousebird/WhirlyGlobe.git", :tag => "v2.0" }
+ s.preferred_dependency = 'Component'
+
s.platform = :ios, '5.0'
- s.source_files = 'WhirlyGlobeSrc/{WhirlyGlobeLib,WhirlyGlobeComponent}/{src,include}/**/*.{mm,m,h}'
- s.public_header_files = FileList['WhirlyGlobeSrc/{WhirlyGlobeLib,WhirlyGlobeComponent}/include/**/*.{h}'].exclude(/private/)
-
s.requires_arc = true
- s.dependency 'eigen'
- s.dependency 'boost/shared_ptr-includes'
- s.dependency 'boost/pointer_cast-includes'
- s.dependency 'proj4'
- s.dependency 'shapelib'
- s.dependency 'clipper', '4.3.0'
- s.dependency 'boost/math-includes'
+ s.subspec 'Lib' do |lib|
+ lib.source_files = 'WhirlyGlobeSrc/WhirlyGlobeLib/src/**/*.{mm,m}'
+
+ lib.dependency 'WhirlyGlobe-Headers', '2.0.ao'
+ lib.dependency 'proj4'
+ lib.dependency 'shapelib'
+ lib.dependency 'clipper'
+
+ lib.library = 'stdc++', 'sqlite3'
+ end
+
+ s.subspec 'Component' do |sp|
+ sp.source_files = 'WhirlyGlobeSrc/WhirlyGlobe-MaplyComponent/src/**/*.{mm,m}'
- s.library = 'stdc++', 'sqlite3'
- s.frameworks = 'UIKit', 'QuartzCore', 'OpenGLES'
+ sp.dependency 'WhirlyGlobe/Lib', '2.0.ao'
- s.subspec 'Headers' do |sp|
- sp.source_files = "WhirlyGlobeSrc/{WhirlyGlobeLib,WhirlyGlobeComponent}/include/**/*.h"
+ sp.frameworks = 'UIKit', 'QuartzCore', 'OpenGLES'
end
end

0 comments on commit 31c0dc3

Please sign in to comment.