Skip to content

Commit 1f40e48

Browse files
committed
Flatten source headers into single directory
1 parent 4bfb250 commit 1f40e48

File tree

202 files changed

+7
-225
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+7
-225
lines changed

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ var buildSettings: [CXXSetting] = [
4343
.headerSearchPath("common"),
4444
.headerSearchPath("io"),
4545
.headerSearchPath("i18n"),
46+
.headerSearchPath("include"),
4647
.define("U_I18N_IMPLEMENTATION"),
4748
.define("SWIFT_PACKAGE", to: "1", .when(platforms: [.linux])),
4849
.define("U_IO_IMPLEMENTATION"),

icuSources/CMakeLists.txt

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,6 @@ target_include_directories(_FoundationICU
494494
i18n/
495495
io/
496496
PUBLIC
497-
common/include/
498-
i18n/include/
499-
io/include/
500497
include/)
501498

502499
target_link_libraries(_FoundationICU PRIVATE stdc++)
@@ -515,22 +512,8 @@ install(TARGETS _FoundationICU
515512

516513
# Install headers
517514
install(DIRECTORY
518-
common/include/
515+
include/
519516
DESTINATION
520517
lib/${install_directory})
521-
install(DIRECTORY
522-
i18n/include/
523-
DESTINATION
524-
lib/${install_directory})
525-
install(DIRECTORY
526-
io/include/
527-
DESTINATION
528-
lib/${install_directory})
529-
530-
# Install module map
531-
install(FILES
532-
module.modulemap
533-
DESTINATION
534-
lib/${install_directory}/_foundation_unicode)
535518

536-
set_property(GLOBAL APPEND PROPERTY SWIFT_FOUNDATION_ICU_EXPORTS _FoundationICU)
519+
set_property(GLOBAL APPEND PROPERTY SWIFT_FOUNDATION_ICU_EXPORTS _FoundationICU)

icuSources/common/icu_packaged_data.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
#if USE_PACKAGE_DATA
14+
1315
#include "icu_packaged_main_data.0.inc.h"
1416
#include "icu_packaged_main_data.1.inc.h"
1517
#include "icu_packaged_main_data.2.inc.h"
@@ -24,3 +26,5 @@ extern "C" U_EXPORT uint8_t const U_ICUDATA_ENTRY_POINT[] __attribute__ ((aligne
2426
__ICU_PACKAGED_MAIN_DATA_CHUNK_2,
2527
__ICU_PACKAGED_MAIN_DATA_CHUNK_3,
2628
};
29+
30+
#endif
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)