framework-x-xcodeprojgen 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/xcode.rb +3 -2
- data/lib/xcode/iphone.rb +2 -6
- data/lib/xcode/pbx_headers_build_phase.rb +7 -0
- data/lib/xcodeproj_gen.rb +1 -0
- data/test/acceptance/iphone_test.rb +25 -0
- metadata +4 -2
data/Rakefile
CHANGED
data/lib/xcode.rb
CHANGED
@@ -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
|
|
data/lib/xcode/iphone.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Xcode
|
2
2
|
module IPhone
|
3
|
-
|
4
|
-
"name" => "
|
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
|
data/lib/xcodeproj_gen.rb
CHANGED
@@ -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.
|
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-
|
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
|