File tree Expand file tree Collapse file tree 4 files changed +0
-29
lines changed Expand file tree Collapse file tree 4 files changed +0
-29
lines changed Original file line number Diff line number Diff line change 44#ifndef SWIFT_RUNTIME_CMAKECONFIG_H
55#define SWIFT_RUNTIME_CMAKECONFIG_H
66
7- #cmakedefine01 SWIFT_BNI_OS_BUILD
8- #cmakedefine01 SWIFT_BNI_XCODE_BUILD
9-
107#define SWIFT_VERSION_MAJOR "@SwiftCore_VERSION_MAJOR@"
118#define SWIFT_VERSION_MINOR "@SwiftCore_VERSION_MINOR@"
129
Original file line number Diff line number Diff line change 1- # TODO: clean this up so it's less Apple-specific.
2- # Detect B&I builds.
3- set (SWIFT_BNI_OS_BUILD FALSE )
4- set (SWIFT_BNI_XCODE_BUILD FALSE )
5- if (DEFINED ENV{RC_XBS})
6- if ((NOT DEFINED ENV{RC_XCODE} OR NOT "$ENV{RC_XCODE} " ) AND (NOT DEFINED ENV{RC_PLAYGROUNDS} OR NOT "$ENV{RC_PLAYGROUNDS} " ))
7- set (SWIFT_BNI_OS_BUILD TRUE )
8- else ()
9- set (SWIFT_BNI_XCODE_BUILD TRUE )
10- endif ()
11- endif ()
12-
131configure_file ("CMakeConfig.h.in"
142 "${PROJECT_BINARY_DIR} /include/swift/Runtime/CMakeConfig.h"
153 ESCAPE_QUOTES @ONLY)
Original file line number Diff line number Diff line change 44#ifndef SWIFT_RUNTIME_CMAKECONFIG_H
55#define SWIFT_RUNTIME_CMAKECONFIG_H
66
7- #cmakedefine01 SWIFT_BNI_OS_BUILD
8- #cmakedefine01 SWIFT_BNI_XCODE_BUILD
9-
107#define SWIFT_VERSION_MAJOR "@SWIFT_VERSION_MAJOR@"
118#define SWIFT_VERSION_MINOR "@SWIFT_VERSION_MINOR@"
129
Original file line number Diff line number Diff line change 1- # Detect B&I builds.
2- set (SWIFT_BNI_OS_BUILD FALSE )
3- set (SWIFT_BNI_XCODE_BUILD FALSE )
4- if (DEFINED ENV{RC_XBS})
5- if ((NOT DEFINED ENV{RC_XCODE} OR NOT "$ENV{RC_XCODE} " ) AND (NOT DEFINED ENV{RC_PLAYGROUNDS} OR NOT "$ENV{RC_PLAYGROUNDS} " ))
6- set (SWIFT_BNI_OS_BUILD TRUE )
7- else ()
8- set (SWIFT_BNI_XCODE_BUILD TRUE )
9- endif ()
10- endif ()
11-
121configure_file (CMakeConfig.h.in ${CMAKE_CURRENT_BINARY_DIR} /CMakeConfig.h
132 ESCAPE_QUOTES @ONLY)
143swift_install_in_component(FILES ${CMAKE_CURRENT_BINARY_DIR} /CMakeConfig.h
You can’t perform that action at this time.
0 commit comments