Skip to content

Commit ba8ae94

Browse files
authored
Merge pull request #2017 from compnerd/outception
2 parents 0ae49d4 + aa281d1 commit ba8ae94

File tree

9 files changed

+1363
-301
lines changed

9 files changed

+1363
-301
lines changed

CoreFoundation/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ add_framework(CoreFoundation
205205
URL.subproj/CFURLAccess.h
206206
URL.subproj/CFURLComponents.h
207207
SOURCES
208+
$<$<PLATFORM_ID:Windows>:CoreFoundation.rc>
208209
# Base
209210
Base.subproj/CFBase.c
210211
Base.subproj/CFFileUtilities.c
@@ -315,6 +316,15 @@ add_framework(CoreFoundation
315316
URL.subproj/CFURLComponents.c
316317
URL.subproj/CFURLComponents_URIParser.c
317318
URL.subproj/CFURLSessionInterface.c)
319+
if(CMAKE_SYSTEM_NAME STREQUAL Windows)
320+
# NOTE(compnerd) the WindowsOlsonMapping.plist and OlsonWindowsMapping.plist
321+
# are embedded Windows resources that we use to map the Windows timezone to
322+
# the Olson name. Ensure that we rebuild on regeneration of the files.
323+
add_custom_target(CoreFoundationWindowsTimeZonesPLists DEPENDS
324+
WindowsOlsonMapping.plist
325+
OlsonWindowsMapping.plist)
326+
add_dependencies(CoreFoundation CoreFoundationWindowsTimeZonesPLists)
327+
endif()
318328
if(CMAKE_SYSTEM_NAME STREQUAL Linux OR CMAKE_SYSTEM_NAME STREQUAL Android)
319329
target_compile_definitions(CoreFoundation
320330
PRIVATE

CoreFoundation/CoreFoundation.rc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
#include "WindowsResources.h"
3+
4+
IDR_WINDOWS_OLSON_MAPPING PLIST "WindowsOlsonMapping.plist"
5+
IDR_OLSON_WINDOWS_MAPPING PLIST "OlsonWindowsMapping.plist"
6+

CoreFoundation/NumberDate.subproj/CFTimeZone.c

Lines changed: 250 additions & 300 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)