framework-x-xcodeprojgen 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ end
17
17
  gem_spec = Gem::Specification.new do |s|
18
18
  s.name = "xcodeprojgen"
19
19
  s.summary = "generates xcodeproj files"
20
- s.version = "0.1.0"
20
+ s.version = "0.1.1"
21
21
  s.author = "Dan Manges"
22
22
  s.description = s.summary
23
23
  s.email = "daniel.manges@gmail.com"
@@ -28,10 +28,11 @@ require "xcode/pbx_proj"
28
28
  require "xcode/pbx_project"
29
29
  require "xcode/pbx_native_target"
30
30
  require "xcode/pbx_build_phase"
31
- require "xcode/pbx_resources_build_phase"
32
31
  require "xcode/pbx_copy_files_build_phase"
33
- require "xcode/pbx_sources_build_phase"
34
32
  require "xcode/pbx_frameworks_build_phase"
33
+ require "xcode/pbx_headers_build_phase"
34
+ require "xcode/pbx_resources_build_phase"
35
+ require "xcode/pbx_sources_build_phase"
35
36
  require "xcode/xc_configuration_list"
36
37
  require "xcode/xc_build_configuration"
37
38
 
@@ -1,7 +1,7 @@
1
1
  module Xcode
2
2
  module IPhone
3
- LinkedFrameworksGroup = Xcode::PBXGroup.new(
4
- "name" => "Linked Frameworks",
3
+ FrameworksGroup = Xcode::PBXGroup.new(
4
+ "name" => "Frameworks",
5
5
  "children" => [
6
6
  # ::Xcode::Frameworks::AddressBook,
7
7
  # ::Xcode::Frameworks::AddressBookUI,
@@ -21,9 +21,5 @@ module Xcode
21
21
  # ::Xcode::Frameworks::UIKit
22
22
  ].map(&:id)
23
23
  )
24
- FrameworksGroup = Xcode::PBXGroup.new(
25
- "name" => "Frameworks",
26
- "children" => [LinkedFrameworksGroup].map(&:id)
27
- )
28
24
  end
29
25
  end
@@ -0,0 +1,7 @@
1
+ module Xcode
2
+ class PBXHeadersBuildPhase < PBXBuildPhase
3
+ def isa
4
+ "PBXHeadersBuildPhase"
5
+ end
6
+ end
7
+ end
@@ -98,6 +98,7 @@ class XcodeprojGen
98
98
  when "sources" : Xcode::PBXSourcesBuildPhase
99
99
  when "copy_files" : Xcode::PBXCopyFilesBuildPhase
100
100
  when "frameworks" : Xcode::PBXFrameworksBuildPhase
101
+ when "headers" : Xcode::PBXHeadersBuildPhase
101
102
  else raise("#{phase_type} is not yet supported")
102
103
  end
103
104
  if phase_type == "frameworks"
@@ -0,0 +1,25 @@
1
+ require File.dirname(__FILE__) + "/test_helper"
2
+
3
+ class IphoneTest < Test::Unit::TestCase
4
+ PROJECT_DIR = File.expand_path(EXAMPLES_DIR + "/iphone")
5
+
6
+ def setup
7
+ FileUtils.rm_rf "#{PROJECT_DIR}/build"
8
+ FileUtils.rm_rf "#{PROJECT_DIR}/iphone.xcodeproj"
9
+ chdir { run_xcodeprojgen }
10
+ end
11
+
12
+ puts "skipping #{__FILE__}:#{__LINE__}"
13
+ test "building with debug configuration, simulator 2.0 sdk" do
14
+ next
15
+ chdir do
16
+ output = `xcodebuild -project iphone.xcodeproj -configuration Debug -target IphoneApp -sdk iphonesimulator2.0`
17
+ raise "failed to build debug config (exitstatus)" unless $?.success?
18
+ raise "failed to build debug config (output)" unless output.include?("** BUILD SUCCEEDED **")
19
+ end
20
+ end
21
+
22
+ def chdir
23
+ Dir.chdir(PROJECT_DIR) { yield }
24
+ end
25
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: framework-x-xcodeprojgen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Manges
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-09 00:00:00 -07:00
12
+ date: 2009-05-14 00:00:00 -07:00
13
13
  default_executable: xcodeprojgen
14
14
  dependencies: []
15
15
 
@@ -32,6 +32,7 @@ files:
32
32
  - lib/xcode/pbx_formatter.rb
33
33
  - lib/xcode/pbx_frameworks_build_phase.rb
34
34
  - lib/xcode/pbx_group.rb
35
+ - lib/xcode/pbx_headers_build_phase.rb
35
36
  - lib/xcode/pbx_native_target.rb
36
37
  - lib/xcode/pbx_proj.rb
37
38
  - lib/xcode/pbx_project.rb
@@ -43,6 +44,7 @@ files:
43
44
  - lib/xcodeproj_gen.rb
44
45
  - test/acceptance/command_line_foundation_test.rb
45
46
  - test/acceptance/command_line_in_c_test.rb
47
+ - test/acceptance/iphone_test.rb
46
48
  - test/acceptance/test_helper.rb
47
49
  - test/unit/test_helper.rb
48
50
  - test/unit/xcode/pbx_build_file_test.rb