Skip to content

Commit e4728f9

Browse files
committed
---
yaml --- r: 346098 b: refs/heads/master c: 5294e7d h: refs/heads/master
1 parent 4570c7f commit e4728f9

File tree

4 files changed

+48
-2
lines changed

4 files changed

+48
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: fbad0b286af850d1f058ad3bda8a5380fce34058
2+
refs/heads/master: 5294e7d1567ed53114227b9291b622194eecd6c0
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/stdlib/public/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,15 @@ if(SWIFT_BUILD_SDK_OVERLAY)
6868
add_subdirectory(Platform)
6969
endif()
7070

71-
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
71+
if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
7272
if(SWIFT_BUILD_SDK_OVERLAY)
7373
add_subdirectory(SDK)
7474
endif()
7575
endif()
76+
77+
if(SWIFT_BUILD_SDK_OVERLAY)
78+
if(WINDOWS IN_LIST SWIFT_SDKS)
79+
add_subdirectory(Windows)
80+
endif()
81+
endif()
82+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
add_swift_target_library(swiftWinSDK ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_SDK_OVERLAY
2+
WinSDK.swift
3+
4+
SWIFT_COMPILE_FLAGS "${SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS}"
5+
LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS}"
6+
TARGET_SDKS WINDOWS)
7+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
6+
// Licensed under Apache License v2.0 with Runtime Library Exception
7+
//
8+
// See https://swift.org/LICENSE.txt for license information
9+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
//
11+
//===----------------------------------------------------------------------===//
12+
13+
@_exported import WinSDK // Clang module
14+
15+
// WinBase.h
16+
public let HANDLE_FLAG_INHERIT: DWORD = 0x00000001
17+
18+
// WinBase.h
19+
public let STARTF_USESTDHANDLES: DWORD = 0x00000100
20+
21+
// WinBase.h
22+
public let INFINITE: DWORD = DWORD(bitPattern: -1)
23+
24+
// WinBase.h
25+
public let WAIT_OBJECT_0: DWORD = 0
26+
27+
// minwindef.h
28+
public let FALSE: BOOL = 0
29+
30+
// minwindef.h
31+
public let TRUE: BOOL = 1
32+

0 commit comments

Comments
 (0)