File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
import PackageDescription
2
+ import Foundation
2
3
3
4
let buildTests = false
5
+ let RxTestIsTarget = buildTests || ProcessInfo . processInfo. environment [ " TEST " ] == " 1 "
4
6
5
7
#if os(Linux)
6
8
let rxCocoaDependencies : [ Target . Dependency ] = [
@@ -26,14 +28,15 @@ let library = [
26
28
Target (
27
29
name: " RxCocoa " ,
28
30
dependencies: rxCocoaDependencies
29
- ) ,
31
+ )
32
+ ] + ( RxTestIsTarget ? [
30
33
Target (
31
34
name: " RxTest " ,
32
35
dependencies: [
33
36
. Target( name: " RxSwift " )
34
37
]
35
38
) ,
36
- ]
39
+ ] : [ ] )
37
40
38
41
#if os(Linux)
39
42
let cocoaRuntime : [ Target ] = [ ]
@@ -60,7 +63,7 @@ let tests: [Target] = (buildTests ? [
60
63
)
61
64
] : [ ] )
62
65
63
- let testExcludes : [ String ] = ( ! buildTests ? [ " Sources/AllTestz " ] : [ ] )
66
+ let testExcludes : [ String ] = ( buildTests ? [ ] : [ " Sources/AllTestz " ] ) + ( RxTestIsTarget ? [ ] : [ " Sources/RxTest " ] )
64
67
65
68
#if os(Linux)
66
69
You can’t perform that action at this time.
0 commit comments