xcake 0.8.1 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/docs/Cakefile.md +78 -19
- data/docs/Xcode Project Support.md +5 -7
- data/lib/xcake/context/xcodeproj_context.rb +4 -4
- data/lib/xcake/{build_phase → dsl/build_phase}/headers_build_phase.rb +0 -0
- data/lib/xcake/{build_phase → dsl/build_phase}/shell_script_build_phase.rb +0 -0
- data/lib/xcake/{build_phase.rb → dsl/build_phase.rb} +0 -0
- data/lib/xcake/{configurable.rb → dsl/configurable.rb} +2 -4
- data/lib/xcake/{configuration → dsl/configuration}/proxies/preproccessor_definitions_setting_proxy.rb +0 -0
- data/lib/xcake/{configuration → dsl/configuration}/sugar.rb +0 -0
- data/lib/xcake/{configuration.rb → dsl/configuration.rb} +2 -7
- data/lib/xcake/{project → dsl/project}/hooks.rb +0 -0
- data/lib/xcake/{project → dsl/project}/sugar.rb +2 -0
- data/lib/xcake/{project.rb → dsl/project.rb} +3 -3
- data/lib/xcake/dsl/scheme.rb +55 -0
- data/lib/xcake/{target → dsl/target}/configurable.rb +0 -0
- data/lib/xcake/{target → dsl/target}/sugar.rb +0 -0
- data/lib/xcake/{target.rb → dsl/target.rb} +23 -8
- data/lib/xcake/generator/configuration_generator.rb +1 -1
- data/lib/xcake/generator/{project_structure_generator.rb → default_project_structure_generator.rb} +19 -4
- data/lib/xcake/generator/scheme_generator.rb +28 -6
- data/lib/xcake/generator/target_library_generator.rb +4 -3
- data/lib/xcake/version.rb +1 -1
- data/lib/xcake/xcode/scheme_list.rb +7 -30
- data/lib/xcake.rb +18 -14
- metadata +17 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42ae2cb0e62db43dbf402e090668547cf1ad55cb
|
4
|
+
data.tar.gz: 94b0c1b5d847c324c196119da602212298340c5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dd1fb970e81a2de306c6444c4272c4632024bc13aa71593d2c31f097fe72c86caa05850369bfcf3b89ee75f6a00a976e176d4f90ef5773e55a8a2cb6219b995
|
7
|
+
data.tar.gz: 6ad5fca8fd6207c0eae412554202a759493c1b21e8b9ddf48846a5da35443395a1cc975e79bf92958e62fc8d774a7e02114c0b25696093afe14dc63208822455
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
v0.8.3
|
2
|
+
======
|
3
|
+
- Fixes bug with scheme generator when configuring unit tests for schemes.
|
4
|
+
|
5
|
+
v0.8.2
|
6
|
+
======
|
7
|
+
- Adds ability to explicity specify schemes.
|
8
|
+
- Reduced verbosity of output to the command line.
|
9
|
+
|
1
10
|
v0.8.1
|
2
11
|
======
|
3
12
|
- Fixes error creating shell script build phase.
|
data/docs/Cakefile.md
CHANGED
@@ -286,20 +286,6 @@ target.headers_build_phase "Build Phase Name" do |phase|
|
|
286
286
|
end
|
287
287
|
```
|
288
288
|
|
289
|
-
##### Link Libraries Build Phase
|
290
|
-
|
291
|
-
You can create a Link Libraries build phase to link a lobrary when building.
|
292
|
-
|
293
|
-
Note: If you import a library or framework using `include_files` then xcake
|
294
|
-
already adds it to the Link Libraries build phase.
|
295
|
-
|
296
|
-
```ruby
|
297
|
-
target.link_build_phase "Build Phase Name" do |phase|
|
298
|
-
phase.files = ["LibraryToLink.a"] # array
|
299
|
-
phase.filwa << "OtherLibraryToLink.a" # add an item to array
|
300
|
-
end
|
301
|
-
```
|
302
|
-
|
303
289
|
##### Shell Script Build Phase
|
304
290
|
|
305
291
|
You can create a Shell Script buld phase to run a script when building.
|
@@ -313,10 +299,7 @@ end
|
|
313
299
|
|
314
300
|
## Configurations
|
315
301
|
|
316
|
-
|
317
|
-
on the target Xcake will create a scheme per target and per configuration.
|
318
|
-
|
319
|
-
Xcake allows you define a hierarchy of build settings like you would in Xcode
|
302
|
+
Xcake allows you define a hierarchy of build configuations like you would in Xcode
|
320
303
|
for the Project and the Targets.
|
321
304
|
|
322
305
|
### Debug Configurations
|
@@ -394,7 +377,7 @@ it also has its own hiearchy of settings, which are in the following order
|
|
394
377
|
- Custom Settings
|
395
378
|
These are the settings set directly on the configuration.
|
396
379
|
|
397
|
-
###Properties
|
380
|
+
### Properties
|
398
381
|
|
399
382
|
#### Name
|
400
383
|
|
@@ -448,3 +431,79 @@ Allows you to specify preprocessor definitions.
|
|
448
431
|
```ruby
|
449
432
|
configuration.preprocessor_definitions["NAME"] = "VALUE"
|
450
433
|
```
|
434
|
+
## Schemes
|
435
|
+
|
436
|
+
Xcake allows you to specify schemes for launching, testing,
|
437
|
+
profiling and archiving targets.
|
438
|
+
|
439
|
+
When no schemes are specified for a target then Xcake will auto generate
|
440
|
+
a scheme per configuration per target (i.e "Target-Debug" and "Target-Release")
|
441
|
+
|
442
|
+
### Creating A Scheme
|
443
|
+
|
444
|
+
We can create a scheme with the name of the target like so:
|
445
|
+
|
446
|
+
```ruby
|
447
|
+
target.scheme(target.name)
|
448
|
+
```
|
449
|
+
|
450
|
+
If we don't configure this scheme then it will default to the reccomended
|
451
|
+
Apple settings of using the debug build configurations for everything
|
452
|
+
except the Archive action which will use the Release configuration.
|
453
|
+
|
454
|
+
We can modify settings for a scheme easily.
|
455
|
+
|
456
|
+
```ruby
|
457
|
+
target.scheme(target.name) do |scheme|
|
458
|
+
scheme.build_configuration = :staging
|
459
|
+
end
|
460
|
+
```
|
461
|
+
### Properties
|
462
|
+
|
463
|
+
#### Name
|
464
|
+
|
465
|
+
Sets the name of the scheme
|
466
|
+
|
467
|
+
```ruby
|
468
|
+
scheme.name = "MyApp"
|
469
|
+
```
|
470
|
+
|
471
|
+
#### Test Configuration
|
472
|
+
|
473
|
+
Sets the configuration to use when running tests
|
474
|
+
|
475
|
+
```ruby
|
476
|
+
scheme.test_configuration = :debug
|
477
|
+
```
|
478
|
+
|
479
|
+
#### Launch Configuration
|
480
|
+
|
481
|
+
Sets the configuration to use when running tests
|
482
|
+
|
483
|
+
```ruby
|
484
|
+
scheme.launch_configuration = :debug
|
485
|
+
```
|
486
|
+
|
487
|
+
#### Profile Configuration
|
488
|
+
|
489
|
+
Sets the configuration to use when profiling a target
|
490
|
+
|
491
|
+
```ruby
|
492
|
+
scheme.profile_configuration = :debug
|
493
|
+
```
|
494
|
+
|
495
|
+
#### Analyze Configuration
|
496
|
+
|
497
|
+
Sets the configuration to use when analyzing a target
|
498
|
+
|
499
|
+
```ruby
|
500
|
+
scheme.analyze_configuration = :debug
|
501
|
+
```
|
502
|
+
|
503
|
+
#### Archive Configuration
|
504
|
+
|
505
|
+
Sets the configuration to use when archiving
|
506
|
+
|
507
|
+
```ruby
|
508
|
+
scheme.archive_configuration = :debug
|
509
|
+
```
|
@@ -32,18 +32,16 @@ This document describes the level of support Xcake has for the various aspects o
|
|
32
32
|
- Copy Headerss
|
33
33
|
- Shell Script
|
34
34
|
|
35
|
-
## Configuration
|
35
|
+
## Build Configuration
|
36
36
|
|
37
|
-
- Set name for configuration
|
37
|
+
- Set name for configuration
|
38
38
|
- Specify build settings
|
39
|
-
-
|
40
|
-
- Used to create schemes for applications
|
41
|
-
- Set XCConfig to inherit settings from.
|
39
|
+
- Set XCConfig to inherit settings from
|
42
40
|
|
43
41
|
## Scheme
|
44
42
|
|
45
|
-
-
|
46
|
-
-
|
43
|
+
- Set name for scheme
|
44
|
+
- Set build configuration for each action (Build, Launch, Archive etc.)
|
47
45
|
|
48
46
|
## Files
|
49
47
|
|
@@ -17,8 +17,8 @@ module Xcake
|
|
17
17
|
create_object_for_target(dsl_object)
|
18
18
|
when Configuration
|
19
19
|
create_object_for_configuration(dsl_object)
|
20
|
-
when
|
21
|
-
|
20
|
+
when Scheme
|
21
|
+
create_object_for_scheme(dsl_object)
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
@@ -40,8 +40,8 @@ module Xcake
|
|
40
40
|
@project.new_configuration(configuration)
|
41
41
|
end
|
42
42
|
|
43
|
-
def
|
44
|
-
|
43
|
+
def create_object_for_scheme(scheme)
|
44
|
+
Xcode::Scheme.new
|
45
45
|
end
|
46
46
|
|
47
47
|
def file_reference_for_path(path)
|
File without changes
|
File without changes
|
File without changes
|
@@ -65,8 +65,7 @@ module Xcake
|
|
65
65
|
# This either finds a release configuration
|
66
66
|
# with the same name or creates one.
|
67
67
|
#
|
68
|
-
# @deprecated Please use `configuration <name>, :debug`
|
69
|
-
# woll be removed in 0.7.0
|
68
|
+
# @deprecated Please use `configuration <name>, :debug`
|
70
69
|
#
|
71
70
|
# @return [Configuration] the new or existing debug configuration
|
72
71
|
#
|
@@ -77,8 +76,7 @@ module Xcake
|
|
77
76
|
# This either finds a release configuration
|
78
77
|
# with the same name or creates one.
|
79
78
|
#
|
80
|
-
# @deprecated Please use `configuration <name>, :release`
|
81
|
-
# woll be removed in 0.7.0
|
79
|
+
# @deprecated Please use `configuration <name>, :release`
|
82
80
|
#
|
83
81
|
# @return [Configuration] the new or existing release configuration
|
84
82
|
#
|
File without changes
|
File without changes
|
@@ -1,15 +1,10 @@
|
|
1
1
|
module Xcake
|
2
|
-
# This class
|
3
|
-
# in a xcode project.
|
4
|
-
# of Schemes and Build Configurations.
|
2
|
+
# This class represents a Build Configuration
|
3
|
+
# in a xcode project.
|
5
4
|
#
|
6
5
|
# This forms part of the DSL and is usally
|
7
6
|
# stored in files named `Cakefile`.
|
8
7
|
#
|
9
|
-
# It holds the build settings and defines
|
10
|
-
# how many schemes are created for each
|
11
|
-
# target.
|
12
|
-
#
|
13
8
|
class Configuration
|
14
9
|
include Visitable
|
15
10
|
|
File without changes
|
@@ -89,6 +89,8 @@ module Xcake
|
|
89
89
|
private
|
90
90
|
|
91
91
|
def configure_test_target_for_host_target(test_target, host_target)
|
92
|
+
|
93
|
+
test_target.target_dependencies << host_target
|
92
94
|
test_target.platform = host_target.platform
|
93
95
|
test_target.deployment_target = host_target.deployment_target
|
94
96
|
test_target.language = host_target.language
|
@@ -46,8 +46,8 @@ module Xcake
|
|
46
46
|
# end
|
47
47
|
#
|
48
48
|
def initialize(name = 'Project')
|
49
|
-
|
50
|
-
|
49
|
+
@name = name
|
50
|
+
@targets = []
|
51
51
|
|
52
52
|
yield(self) if block_given?
|
53
53
|
end
|
@@ -63,7 +63,7 @@ module Xcake
|
|
63
63
|
# the newly created target
|
64
64
|
#
|
65
65
|
def target(&block)
|
66
|
-
target = Target.new(
|
66
|
+
target = Target.new(&block)
|
67
67
|
targets << target
|
68
68
|
target
|
69
69
|
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
module Xcake
|
2
|
+
# This class is used to describe a scheme for a
|
3
|
+
# Xcode project; This forms part of the DSL
|
4
|
+
# and is usually stored in files named `Cakefile`.
|
5
|
+
#
|
6
|
+
class Scheme
|
7
|
+
include Visitable
|
8
|
+
|
9
|
+
# The name for the scheme
|
10
|
+
#
|
11
|
+
attr_accessor :name
|
12
|
+
|
13
|
+
# The configuration to use when testing
|
14
|
+
#
|
15
|
+
# Defaults to "Debug"
|
16
|
+
#
|
17
|
+
attr_accessor :test_configuration
|
18
|
+
|
19
|
+
# The configuration to use when launching
|
20
|
+
#
|
21
|
+
# Defaults to "Debug"
|
22
|
+
#
|
23
|
+
attr_accessor :launch_configuration
|
24
|
+
|
25
|
+
# The configuration to use when profiling
|
26
|
+
#
|
27
|
+
# Defaults to "Debug"
|
28
|
+
#
|
29
|
+
attr_accessor :profile_configuration
|
30
|
+
|
31
|
+
# The configuration to use when analyzing
|
32
|
+
#
|
33
|
+
# Defaults to "Debug"
|
34
|
+
#
|
35
|
+
attr_accessor :analyze_configuration
|
36
|
+
|
37
|
+
# The configuration to use when archving
|
38
|
+
#
|
39
|
+
# Defaults to "Release"
|
40
|
+
#
|
41
|
+
attr_accessor :archive_configuration
|
42
|
+
|
43
|
+
def initialize(name)
|
44
|
+
|
45
|
+
@name = name
|
46
|
+
@test_configuration = 'Debug'
|
47
|
+
@launch_configuration = 'Debug'
|
48
|
+
@profile_configuration = 'Debug'
|
49
|
+
@analyze_configuration = 'Debug'
|
50
|
+
@archive_configuration = 'Release'
|
51
|
+
|
52
|
+
yield(self) if block_given?
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
File without changes
|
File without changes
|
@@ -7,10 +7,6 @@ module Xcake
|
|
7
7
|
include Configurable
|
8
8
|
include Visitable
|
9
9
|
|
10
|
-
# @return [Project] the project for the target.
|
11
|
-
#
|
12
|
-
attr_accessor :project
|
13
|
-
|
14
10
|
# @return [String] the name of the target.
|
15
11
|
#
|
16
12
|
attr_accessor :name
|
@@ -172,6 +168,10 @@ module Xcake
|
|
172
168
|
#
|
173
169
|
attr_accessor :linked_targets
|
174
170
|
|
171
|
+
# @return [Array<Scheme>] schemes for the target
|
172
|
+
#
|
173
|
+
attr_accessor :schemes
|
174
|
+
|
175
175
|
# @param [Proc] block
|
176
176
|
# an optional block that configures the target through the DSL.
|
177
177
|
#
|
@@ -181,19 +181,34 @@ module Xcake
|
|
181
181
|
# t.name "test"
|
182
182
|
# end
|
183
183
|
#
|
184
|
-
def initialize
|
185
|
-
@project = project
|
186
|
-
|
184
|
+
def initialize
|
187
185
|
@build_phases = []
|
188
186
|
@exclude_files = []
|
189
187
|
@linked_targets = []
|
190
188
|
@system_libraries = []
|
191
189
|
@target_dependencies = []
|
190
|
+
@schemes = []
|
192
191
|
|
193
192
|
yield(self) if block_given?
|
194
193
|
end
|
195
194
|
|
196
|
-
|
195
|
+
# @!group Working with a target
|
196
|
+
|
197
|
+
# Creates a new scheme for the target
|
198
|
+
#
|
199
|
+
# @param [String] name
|
200
|
+
# the name of the new scheme
|
201
|
+
#
|
202
|
+
# @return [Scheme] the scheme
|
203
|
+
# the newly created scheme
|
204
|
+
#
|
205
|
+
def scheme(name, &block)
|
206
|
+
scheme = Scheme.new(name, &block)
|
207
|
+
schemes << scheme
|
208
|
+
scheme
|
209
|
+
end
|
210
|
+
|
211
|
+
# @!group getters
|
197
212
|
|
198
213
|
def include_files
|
199
214
|
# Import files in folder with same name as target by default
|
data/lib/xcake/generator/{project_structure_generator.rb → default_project_structure_generator.rb}
RENAMED
@@ -1,13 +1,13 @@
|
|
1
1
|
module Xcake
|
2
|
-
# This class handles
|
2
|
+
# This class handles generating the default structure
|
3
3
|
# of a project. Making sure that the structure of the
|
4
4
|
# project is one Xcode can open and makes sense.
|
5
5
|
#
|
6
|
-
#
|
6
|
+
# It will create default configurations or schemes
|
7
7
|
# if none are provided and will make sure both the project
|
8
8
|
# and targets have all of the same configurations.
|
9
|
-
|
10
|
-
|
9
|
+
#
|
10
|
+
class DefaultProjectStructureGenerator < Generator
|
11
11
|
|
12
12
|
def visit_project(project)
|
13
13
|
EventHooks.run_hook :before_resolving_project_structure, project
|
@@ -23,6 +23,21 @@ module Xcake
|
|
23
23
|
@project.all_configurations.each do |c|
|
24
24
|
target.configuration(c.name, c.type)
|
25
25
|
end
|
26
|
+
|
27
|
+
native_target = @context.native_object_for(target)
|
28
|
+
|
29
|
+
return if native_target.test_target_type?
|
30
|
+
return unless target.schemes.empty?
|
31
|
+
|
32
|
+
target.all_configurations.each do |c|
|
33
|
+
target.scheme "#{target.name}-#{c.name}" do |s|
|
34
|
+
s.test_configuration = c.name
|
35
|
+
s.launch_configuration = c.name
|
36
|
+
s.profile_configuration = c.name
|
37
|
+
s.analyze_configuration = c.name
|
38
|
+
s.archive_configuration = c.name
|
39
|
+
end
|
40
|
+
end
|
26
41
|
end
|
27
42
|
|
28
43
|
def leave_target(target)
|
@@ -1,25 +1,47 @@
|
|
1
1
|
module Xcake
|
2
2
|
class SchemeGenerator < Generator
|
3
3
|
def self.dependencies
|
4
|
-
[TargetGenerator, ConfigurationGenerator]
|
4
|
+
[TargetGenerator, DefaultProjectStructureGenerator, ConfigurationGenerator]
|
5
5
|
end
|
6
6
|
|
7
|
-
def visit_project(
|
7
|
+
def visit_project(project)
|
8
8
|
EventHooks.run_hook :before_adding_user_schemes
|
9
|
+
@project = project
|
9
10
|
end
|
10
11
|
|
11
12
|
def visit_target(target)
|
12
13
|
scheme_list = @context.scheme_list
|
13
14
|
native_target = @context.native_object_for(target)
|
14
15
|
|
15
|
-
|
16
|
+
target.schemes.each do |scheme|
|
17
|
+
|
18
|
+
scheme_list.supress_autocreation_of_target(native_target)
|
19
|
+
|
20
|
+
native_scheme = @context.native_object_for(scheme)
|
21
|
+
native_scheme.name = scheme.name
|
22
|
+
|
23
|
+
#TODO: Find multiple testing targets, move this into the DSL ?
|
24
|
+
native_project = @context.native_object_for(@project)
|
25
|
+
native_unit_test_target = native_project.find_unit_test_target_for_target(target)
|
26
|
+
|
27
|
+
if native_unit_test_target
|
28
|
+
scheme_list.supress_autocreation_of_target(native_unit_test_target)
|
29
|
+
end
|
30
|
+
|
31
|
+
native_scheme.configure_with_targets(native_target, native_unit_test_target)
|
32
|
+
native_scheme.test_action.build_configuration = scheme.test_configuration
|
33
|
+
native_scheme.launch_action.build_configuration = scheme.launch_configuration
|
34
|
+
native_scheme.profile_action.build_configuration = scheme.profile_configuration
|
35
|
+
native_scheme.analyze_action.build_configuration = scheme.analyze_configuration
|
36
|
+
native_scheme.archive_action.build_configuration = scheme.archive_configuration
|
37
|
+
|
38
|
+
scheme_list.schemes << native_scheme
|
39
|
+
end
|
16
40
|
end
|
17
41
|
|
18
42
|
def leave_project(project)
|
19
43
|
scheme_list = @context.scheme_list
|
20
|
-
|
21
|
-
|
22
|
-
scheme_list.save(native_project.path)
|
44
|
+
scheme_list.save
|
23
45
|
end
|
24
46
|
end
|
25
47
|
end
|
@@ -5,12 +5,13 @@ module Xcake
|
|
5
5
|
end
|
6
6
|
|
7
7
|
def visit_target(target)
|
8
|
-
|
8
|
+
|
9
|
+
system_libraries = target.system_libraries.to_a
|
10
|
+
|
11
|
+
unless system_libraries.empty?
|
9
12
|
EventHooks.run_hook :before_adding_system_library, target
|
10
13
|
|
11
14
|
native_target = @context.native_object_for(target)
|
12
|
-
|
13
|
-
system_libraries = target.system_libraries
|
14
15
|
native_target.add_system_libraries(system_libraries)
|
15
16
|
end
|
16
17
|
end
|
data/lib/xcake/version.rb
CHANGED
@@ -33,43 +33,20 @@ module Xcake
|
|
33
33
|
}
|
34
34
|
end
|
35
35
|
|
36
|
-
#
|
36
|
+
# Adds target to add instructions
|
37
|
+
# to tell xcode not to autocreate scheme for target
|
37
38
|
#
|
38
39
|
# @param [Target] target
|
39
|
-
# target to
|
40
|
+
# target to supress autocreation for
|
40
41
|
#
|
41
|
-
def
|
42
|
-
target.
|
43
|
-
scheme = Scheme.new
|
44
|
-
|
45
|
-
scheme.name = "#{target.name}-#{c.name}"
|
46
|
-
@xcschememanagement['SuppressBuildableAutocreation'][target.uuid] = { 'primary' => true }
|
47
|
-
|
48
|
-
unit_test_target = project.find_unit_test_target_for_target(target)
|
49
|
-
scheme.configure_with_targets(target, unit_test_target)
|
50
|
-
|
51
|
-
scheme.test_action.build_configuration = c.name
|
52
|
-
scheme.launch_action.build_configuration = c.name
|
53
|
-
scheme.profile_action.build_configuration = c.name
|
54
|
-
scheme.analyze_action.build_configuration = c.name
|
55
|
-
scheme.archive_action.build_configuration = c.name
|
56
|
-
|
57
|
-
if unit_test_target
|
58
|
-
unit_test_target.add_dependency(target)
|
59
|
-
@xcschememanagement['SuppressBuildableAutocreation'][unit_test_target.uuid] = { 'primary' => true }
|
60
|
-
end
|
61
|
-
|
62
|
-
schemes << scheme
|
63
|
-
end
|
42
|
+
def supress_autocreation_of_target(target)
|
43
|
+
@xcschememanagement['SuppressBuildableAutocreation'][target.uuid] = { 'primary' => true }
|
64
44
|
end
|
65
45
|
|
66
46
|
# Writes scheme list data.
|
67
47
|
#
|
68
|
-
|
69
|
-
|
70
|
-
#
|
71
|
-
def save(writing_path)
|
72
|
-
schemes_dir = Scheme.user_data_dir(writing_path)
|
48
|
+
def save
|
49
|
+
schemes_dir = Scheme.user_data_dir(@project.path)
|
73
50
|
|
74
51
|
FileUtils.rm_rf(schemes_dir)
|
75
52
|
FileUtils.mkdir_p(schemes_dir)
|
data/lib/xcake.rb
CHANGED
@@ -23,27 +23,31 @@ require 'xcake/plugin'
|
|
23
23
|
require 'xcake/visitable'
|
24
24
|
require 'xcake/visitor'
|
25
25
|
require 'xcake/generator'
|
26
|
+
require 'xcake/path_classifier'
|
26
27
|
|
27
28
|
require 'xcake/context'
|
28
29
|
require 'xcake/context/xcodeproj_context'
|
29
30
|
|
30
|
-
require 'xcake/configuration'
|
31
|
-
require 'xcake/configuration/sugar'
|
32
|
-
require 'xcake/configuration/proxies/preproccessor_definitions_setting_proxy'
|
33
|
-
require 'xcake/configurable'
|
31
|
+
require 'xcake/dsl/configuration'
|
32
|
+
require 'xcake/dsl/configuration/sugar'
|
33
|
+
require 'xcake/dsl/configuration/proxies/preproccessor_definitions_setting_proxy'
|
34
|
+
require 'xcake/dsl/configurable'
|
34
35
|
|
35
|
-
require 'xcake/project'
|
36
|
-
require 'xcake/project/sugar'
|
37
|
-
require 'xcake/project/hooks'
|
38
|
-
|
36
|
+
require 'xcake/dsl/project'
|
37
|
+
require 'xcake/dsl/project/sugar'
|
38
|
+
require 'xcake/dsl/project/hooks'
|
39
|
+
|
40
|
+
require 'xcake/dsl/scheme'
|
41
|
+
|
42
|
+
require 'xcake/dsl/scheme'
|
39
43
|
|
40
|
-
require 'xcake/target'
|
41
|
-
require 'xcake/target/sugar'
|
42
|
-
require 'xcake/target/configurable'
|
44
|
+
require 'xcake/dsl/target'
|
45
|
+
require 'xcake/dsl/target/sugar'
|
46
|
+
require 'xcake/dsl/target/configurable'
|
43
47
|
|
44
|
-
require 'xcake/build_phase'
|
45
|
-
require 'xcake/build_phase/headers_build_phase'
|
46
|
-
require 'xcake/build_phase/shell_script_build_phase'
|
48
|
+
require 'xcake/dsl/build_phase'
|
49
|
+
require 'xcake/dsl/build_phase/headers_build_phase'
|
50
|
+
require 'xcake/dsl/build_phase/shell_script_build_phase'
|
47
51
|
|
48
52
|
module Xcake
|
49
53
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Campbell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: claide
|
@@ -258,16 +258,9 @@ files:
|
|
258
258
|
- gemfiles/Gemfile.xcodeproj-edge
|
259
259
|
- hound.yml
|
260
260
|
- lib/xcake.rb
|
261
|
-
- lib/xcake/build_phase.rb
|
262
|
-
- lib/xcake/build_phase/headers_build_phase.rb
|
263
|
-
- lib/xcake/build_phase/shell_script_build_phase.rb
|
264
261
|
- lib/xcake/command.rb
|
265
262
|
- lib/xcake/command/init.rb
|
266
263
|
- lib/xcake/command/make.rb
|
267
|
-
- lib/xcake/configurable.rb
|
268
|
-
- lib/xcake/configuration.rb
|
269
|
-
- lib/xcake/configuration/proxies/preproccessor_definitions_setting_proxy.rb
|
270
|
-
- lib/xcake/configuration/sugar.rb
|
271
264
|
- lib/xcake/constants.rb
|
272
265
|
- lib/xcake/context.rb
|
273
266
|
- lib/xcake/context/xcodeproj_context.rb
|
@@ -276,12 +269,26 @@ files:
|
|
276
269
|
- lib/xcake/core_ext/string.rb
|
277
270
|
- lib/xcake/dependency.rb
|
278
271
|
- lib/xcake/dependency_provider.rb
|
272
|
+
- lib/xcake/dsl/build_phase.rb
|
273
|
+
- lib/xcake/dsl/build_phase/headers_build_phase.rb
|
274
|
+
- lib/xcake/dsl/build_phase/shell_script_build_phase.rb
|
275
|
+
- lib/xcake/dsl/configurable.rb
|
276
|
+
- lib/xcake/dsl/configuration.rb
|
277
|
+
- lib/xcake/dsl/configuration/proxies/preproccessor_definitions_setting_proxy.rb
|
278
|
+
- lib/xcake/dsl/configuration/sugar.rb
|
279
|
+
- lib/xcake/dsl/project.rb
|
280
|
+
- lib/xcake/dsl/project/hooks.rb
|
281
|
+
- lib/xcake/dsl/project/sugar.rb
|
282
|
+
- lib/xcake/dsl/scheme.rb
|
283
|
+
- lib/xcake/dsl/target.rb
|
284
|
+
- lib/xcake/dsl/target/configurable.rb
|
285
|
+
- lib/xcake/dsl/target/sugar.rb
|
279
286
|
- lib/xcake/event_hooks.rb
|
280
287
|
- lib/xcake/generator.rb
|
281
288
|
- lib/xcake/generator/configuration_generator.rb
|
289
|
+
- lib/xcake/generator/default_project_structure_generator.rb
|
282
290
|
- lib/xcake/generator/project_generator.rb
|
283
291
|
- lib/xcake/generator/project_metadata_generator.rb
|
284
|
-
- lib/xcake/generator/project_structure_generator.rb
|
285
292
|
- lib/xcake/generator/scheme_generator.rb
|
286
293
|
- lib/xcake/generator/target_build_phase_generator.rb
|
287
294
|
- lib/xcake/generator/target_dependency_generator.rb
|
@@ -294,13 +301,7 @@ files:
|
|
294
301
|
- lib/xcake/modern_xcodeproj.rb
|
295
302
|
- lib/xcake/path_classifier.rb
|
296
303
|
- lib/xcake/plugin.rb
|
297
|
-
- lib/xcake/project.rb
|
298
|
-
- lib/xcake/project/hooks.rb
|
299
|
-
- lib/xcake/project/sugar.rb
|
300
304
|
- lib/xcake/resources/Cakefile
|
301
|
-
- lib/xcake/target.rb
|
302
|
-
- lib/xcake/target/configurable.rb
|
303
|
-
- lib/xcake/target/sugar.rb
|
304
305
|
- lib/xcake/ui.rb
|
305
306
|
- lib/xcake/version.rb
|
306
307
|
- lib/xcake/visitable.rb
|