1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687
|
//===--- android.modulemap ------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
// The module map for the Android NDK.
// A portion of the modules in this file are prefixed
// with an underscore, to discourage users from importing them from
// Swift directly, as these modules might be overriden by the C++ stdlib.
// Instead, users should import 'Android' or another
// umbrella module that includes these headers.
// The top level 'Android' module can be included from Swift.
module SwiftAndroid [system] {
header "SwiftAndroidNDK.h"
export *
}
// The top level 'Bionic' module is the C standard library
// used in the Android NDK.
module Bionic [system] {
header "SwiftBionic.h"
export *
}
// The individual modules for the Bionic C standard library used
// by the Android NDK.
module _assert [system] {
// <assert.h>'s use of NDEBUG requires textual inclusion.
textual header "assert.h"
}
module _complex [system] {
header "complex.h"
export *
}
module _ctype [system] {
header "ctype.h"
export *
}
module _errno [system] {
header "errno.h"
export *
}
module _fenv [system] {
header "fenv.h"
export *
}
// Use 'no_undeclared_includes' to avoid pulling in the libc++ headers.
// FIXME: this can be dropped once NDK's libc++ 'std' module is split
// into individual submodules.
module _inttypes [system] [no_undeclared_includes] {
header "inttypes.h"
export *
use _stdint
use _sys_cdefs
}
module _limits [system] {
header "limits.h"
export *
explicit module posix_limits {
header "bits/posix_limits.h"
export *
}
}
module _locale [system] {
header "locale.h"
export *
}
module _malloc [system] {
header "malloc.h"
export *
}
module _math [system] {
header "math.h"
export *
link "m"
}
module _setjmp [system] {
header "setjmp.h"
export *
}
module _signal [system] {
header "signal.h"
// The 'signal.h' header unfortunately has a circular include
// with 'sys/ucontext.h' and thus it must be part of this module.
header "sys/ucontext.h"
export *
explicit module bits_signaltypes {
header "bits/signal_types.h"
export *
}
}
module _stdatomic [system] {
header "stdatomic.h"
export *
}
module _stdint [system] {
header "stdint.h"
export *
}
module _stdio [system] {
header "stdio.h"
export *
explicit module stdio_ext {
header "stdio_ext.h"
export *
}
}
module _stdlib [system] {
header "stdlib.h"
export *
}
module _string [system] {
header "string.h"
export *
}
module _threads [system] {
header "threads.h"
export *
explicit module threads_inlines {
header "bits/threads_inlines.h"
export *
}
}
module _time [system] {
header "time.h"
export *
explicit module sys_time {
header "sys/time.h"
export *
}
explicit module sys_times {
header "sys/times.h"
export *
}
}
module _uchar [system] {
header "uchar.h"
export *
}
module _wchar [system] {
header "wchar.h"
export *
explicit module mbstate_t {
header "bits/mbstate_t.h"
export *
}
}
// POSIX and another android NDK headers.
module alloca [system] {
header "alloca.h"
export *
}
module ar [system] {
header "ar.h"
export *
}
module cpio [system] {
header "cpio.h"
export *
}
module posix_filesystem [system] {
// This module groups all file, paths and filesystem
// operations into one module.
explicit module dirent {
header "dirent.h"
export *
}
explicit module fcntl {
header "fcntl.h"
// Note: Do not re-export imported modules
// to prevent exporting constants from linux/stat.h .
}
explicit module fnmatch {
header "fnmatch.h"
export *
}
explicit module fts {
header "fts.h"
export *
}
explicit module ftw {
header "ftw.h"
export *
}
explicit module glob {
header "glob.h"
export *
}
explicit module mntent {
header "mntent.h"
export *
}
explicit module libgen {
header "libgen.h"
export *
}
explicit module nl_types {
header "nl_types.h"
export *
}
explicit module paths {
header "paths.h"
export *
}
explicit module poll {
header "poll.h"
export *
}
explicit module pwd {
header "pwd.h"
export *
}
explicit module utime {
header "utime.h"
export *
}
explicit module bits_ioctl {
header "bits/ioctl.h"
export *
}
explicit module linux_stat {
private header "linux/stat.h"
export *
}
explicit module sys_epoll {
header "sys/epoll.h"
export *
}
explicit module sys_eventfd {
header "sys/eventfd.h"
export *
}
explicit module sys_fcntl {
header "sys/fcntl.h"
export *
}
explicit module sys_file {
header "sys/file.h"
export *
}
explicit module sys_inotify {
header "sys/inotify.h"
export *
}
explicit module sys_ioctl {
header "sys/ioctl.h"
export *
}
explicit module sys_mount {
header "sys/mount.h"
export *
}
explicit module sys_sendfile {
header "sys/sendfile.h"
export *
}
explicit module sys_stat {
header "sys/stat.h"
// Note: Do not re-export imported modules
// to prevent exporting constants from linux/stat.h .
}
explicit module sys_statvfs {
header "sys/statvfs.h"
export *
}
explicit module sys_vfs {
header "sys/vfs.h"
export *
}
explicit module sys_uio {
header "sys/uio.h"
export *
}
explicit module sys_xattr {
header "sys/xattr.h"
export *
}
}
module dl [system] {
// This module groups all dl* based operations
// into one module.
explicit module dlfcn {
header "dlfcn.h"
export *
}
explicit module link_ {
header "link.h"
export *
}
}
module error [system] {
header "error.h"
export *
explicit module err {
header "err.h"
export *
}
}
module execinfo [system] {
header "execinfo.h"
export *
}
module features [system] {
header "features.h"
export *
}
module getopt [system] {
header "getopt.h"
export *
}
module grp [system] {
header "grp.h"
export *
}
module iconv [system] {
header "iconv.h"
export *
}
module inet [system] {
// This module groups headers related to inet
// and networking.
explicit module ifaddrs {
header "ifaddrs.h"
export *
}
explicit module netdb {
header "netdb.h"
export *
}
explicit module arpa_inet {
header "arpa/inet.h"
export *
}
explicit module net_if {
header "net/if.h"
export *
}
explicit module netinet_in {
header "netinet/in.h"
export *
}
explicit module netinet_in6 {
header "netinet/in6.h"
export *
}
explicit module netinet_tcp {
header "netinet/tcp.h"
export *
}
explicit module bits_ip_mreq_source {
header "bits/ip_mreq_source.h"
export *
}
explicit module bits_ip_msfilter {
header "bits/ip_msfilter.h"
export *
}
explicit module bits_in_addr {
header "bits/in_addr.h"
export *
}
explicit module linux_if {
header "linux/if.h"
export *
}
explicit module sys_socket {
header "sys/socket.h"
export *
}
}
module jni [system] {
header "jni.h"
export *
}
module langinfo [system] {
header "langinfo.h"
export *
}
module pthread [system] {
header "pthread.h"
export *
}
module pty [system] {
header "pty.h"
export *
}
module regex [system] {
header "regex.h"
export *
}
module resolv [system] {
header "resolv.h"
export *
}
module sched [system] {
header "sched.h"
export *
}
module search [system] {
header "search.h"
export *
}
module semaphore [system] {
header "semaphore.h"
export *
}
module spawn [system] {
header "spawn.h"
export *
}
module strings [system] {
header "strings.h"
export *
}
module sys [system] {
explicit module syscall {
header "syscall.h"
export *
}
explicit module sysexits {
header "sysexits.h"
export *
}
explicit module syslog {
header "syslog.h"
export *
}
}
module tar [system] {
header "tar.h"
export *
}
module termio [system] {
explicit module termio {
header "termio.h"
export *
}
explicit module termios {
header "termios.h"
export *
}
}
module uconfig_local [system] {
header "uconfig_local.h"
export *
}
module ucontext [system] {
header "ucontext.h"
export *
}
module unistd [system] {
header "unistd.h"
export *
explicit module sys_unistd {
header "sys/unistd.h"
export *
}
}
module utmp [system] {
explicit module utmp {
header "utmp.h"
export *
}
explicit module utmpx {
header "utmpx.h"
export *
}
}
module wait [system] {
header "wait.h"
export *
explicit module sys_wait {
header "sys/wait.h"
export *
}
}
module xlocale [system] {
header "xlocale.h"
export *
}
// Additional modules in the 'android' subdirectory.
module android_defs [system] {
explicit module ndk_version {
header "android/ndk-version.h"
export *
}
explicit module versioning {
header "android/versioning.h"
export *
}
}
module android_apis [system] {
explicit module asset_manager_jni {
header "android/asset_manager_jni.h"
export *
}
explicit module asset_manager {
header "android/asset_manager.h"
export *
}
explicit module log {
header "android/log.h"
export *
}
explicit module trace {
header "android/trace.h"
export *
}
}
// Additional modules in the 'bits' subdirectory.
module _bits_sa_family_t [system] {
// Note: this module is not part of 'inet'
// to prevent a circular modular dependency.
header "bits/sa_family_t.h"
export *
}
module _bits_stdatomic [system] {
// Note: this module is not part of 'stdatomic'
// as it depends on libc++ and forcing it to
// be in the same module breaks that modularization
// chain.
header "bits/stdatomic.h"
export *
}
// Additional modules in the 'linux' subdirectory.
module _linux_time [system] {
// Note: this module is not part of '_time'
// to prevent a circular modular dependency
// between linux_time and sys modules.
header "linux/time.h"
header "linux/time_types.h"
export *
explicit module bits_timespec {
header "bits/timespec.h"
export *
}
}
// Additional modules in the 'sys' subdirectory.
module _sys_cdefs [system] {
header "sys/cdefs.h"
// Circular included header, so combine them
// into the same module.
header "android/api-level.h"
export *
}
module _sys_core [system] {
explicit module endian {
header "sys/endian.h"
export *
}
explicit module errno {
header "sys/errno.h"
export *
}
explicit module ifunc {
header "sys/ifunc.h"
export *
}
explicit module ipc {
header "sys/ipc.h"
export *
}
explicit module mman {
header "sys/mman.h"
export *
}
explicit module mman_common {
header "asm-generic/mman-common.h"
export *
}
explicit module msg {
header "sys/msg.h"
export *
}
explicit module random {
header "sys/random.h"
export *
}
explicit module resource {
header "sys/resource.h"
export *
}
explicit module sem {
header "sys/sem.h"
export *
}
explicit module shm {
header "sys/shm.h"
export *
}
explicit module un {
header "sys/un.h"
export *
}
explicit module utsname {
header "sys/utsname.h"
export *
}
}
module _sys_select [system] {
// Note: this module is not part of
// 'sys_core' to prevent circular dependency error.
header "sys/select.h"
export *
}
// Use 'no_undeclared_includes' to avoid pulling in the libc++ module.
// This module depends on 'stdint.h', which is defined in libc++.
// We can't import libc++ as that would cause circular dependency
// between libc++ and this module. Using 'no_undeclared_includes'
// ensures that we include 'stdint.h' from usr/include instead of libc++.
module _sys_types [system] [no_undeclared_includes] {
header "sys/types.h"
// The 'sys/types.h' header has a circular include
// with 'bits/pthread_types.h' and thus it must be in the same module.
header "bits/pthread_types.h"
export *
use _stdint
use _sys_cdefs
use _Builtin_stddef
}
// Use 'no_undeclared_includes' to avoid pulling in the libc++ module.
// This module depends on 'stdint.h', which is defined in libc++.
// We can't import libc++ as that would cause circular dependency
// between libc++ and this module. Using 'no_undeclared_includes'
// ensures that we include 'stdint.h' from usr/include instead of libc++.
module _sys_user [system] [no_undeclared_includes] {
header "sys/user.h"
export *
use _stdint
use _sys_cdefs
use _Builtin_stddef
}
// Module for zlib headers.
module zlib [system] {
header "zlib.h"
explicit module zconf {
header "zconf.h"
export *
}
export *
link "z"
}
|