@crossbind/port-expat-linux 0.0.0-bootstrap.0 → 2.0.0-beta.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -3
  3. package/crossbind.build.js +1 -0
  4. package/crossbind.config.js +5 -0
  5. package/dist/prebuilt/CMakeLists.txt +58 -0
  6. package/dist/prebuilt/linux-arm64-mt-release/crossbind-emccflags.fingerprint +1 -0
  7. package/dist/prebuilt/linux-arm64-mt-release/crossbind-source.fingerprint +1 -0
  8. package/dist/prebuilt/linux-arm64-mt-release/include/expat.h +1156 -0
  9. package/dist/prebuilt/linux-arm64-mt-release/include/expat_config.h +118 -0
  10. package/dist/prebuilt/linux-arm64-mt-release/include/expat_external.h +183 -0
  11. package/dist/prebuilt/linux-arm64-mt-release/lib/cmake/expat-2.9.0/expat-config-version.cmake +65 -0
  12. package/dist/prebuilt/linux-arm64-mt-release/lib/cmake/expat-2.9.0/expat-config.cmake +99 -0
  13. package/dist/prebuilt/linux-arm64-mt-release/lib/cmake/expat-2.9.0/expat-release.cmake +19 -0
  14. package/dist/prebuilt/linux-arm64-mt-release/lib/cmake/expat-2.9.0/expat.cmake +107 -0
  15. package/dist/prebuilt/linux-arm64-mt-release/lib/libexpat.a +0 -0
  16. package/dist/prebuilt/linux-arm64-mt-release/lib/pkgconfig/expat.pc +13 -0
  17. package/dist/prebuilt/linux-arm64-mt-release/lib.sources +1 -0
  18. package/dist/prebuilt/linux-arm64-mt-release/share/doc/expat/AUTHORS +10 -0
  19. package/dist/prebuilt/linux-arm64-mt-release/share/doc/expat/changelog +2389 -0
  20. package/dist/prebuilt/linux-x64-mt-release/crossbind-emccflags.fingerprint +1 -0
  21. package/dist/prebuilt/linux-x64-mt-release/crossbind-source.fingerprint +1 -0
  22. package/dist/prebuilt/linux-x64-mt-release/include/expat.h +1156 -0
  23. package/dist/prebuilt/linux-x64-mt-release/include/expat_config.h +118 -0
  24. package/dist/prebuilt/linux-x64-mt-release/include/expat_external.h +183 -0
  25. package/dist/prebuilt/linux-x64-mt-release/lib/cmake/expat-2.9.0/expat-config-version.cmake +65 -0
  26. package/dist/prebuilt/linux-x64-mt-release/lib/cmake/expat-2.9.0/expat-config.cmake +99 -0
  27. package/dist/prebuilt/linux-x64-mt-release/lib/cmake/expat-2.9.0/expat-release.cmake +19 -0
  28. package/dist/prebuilt/linux-x64-mt-release/lib/cmake/expat-2.9.0/expat.cmake +107 -0
  29. package/dist/prebuilt/linux-x64-mt-release/lib/libexpat.a +0 -0
  30. package/dist/prebuilt/linux-x64-mt-release/lib/pkgconfig/expat.pc +13 -0
  31. package/dist/prebuilt/linux-x64-mt-release/lib.sources +1 -0
  32. package/dist/prebuilt/linux-x64-mt-release/share/doc/expat/AUTHORS +10 -0
  33. package/dist/prebuilt/linux-x64-mt-release/share/doc/expat/changelog +2389 -0
  34. package/package.json +32 -6
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ Copyright (c) 1998-2000 Thai Open Source Software Center Ltd and Clark Cooper
2
+ Copyright (c) 2001-2022 Expat maintainers
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining
5
+ a copy of this software and associated documentation files (the
6
+ "Software"), to deal in the Software without restriction, including
7
+ without limitation the rights to use, copy, modify, merge, publish,
8
+ distribute, sublicense, and/or sell copies of the Software, and to
9
+ permit persons to whom the Software is furnished to do so, subject to
10
+ the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included
13
+ in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # @crossbind/port-expat-linux
2
2
 
3
- This version, 0.0.0-bootstrap.0, holds no code. npm lets a trusted publisher be configured only for a
4
- package that exists, so it reserves the name for the crossbind release workflow.
3
+ The **Linux** build of the precompiled **Expat** library, built with [crossbind](https://crossbind.dev).
5
4
 
6
- Install the real package: `npm install @crossbind/port-expat-linux@beta`. Source: https://github.com/crossbind/crossbind
5
+ > For installation and usage, see the main package: **[@crossbind/port-expat](https://www.npmjs.com/package/@crossbind/port-expat)**.
6
+
7
+ ## Supported targets
8
+ - Linux — `x64` (x86_64)
9
+ - Linux — `arm64` (aarch64)
10
+
11
+ Requires glibc 2.28 or later, the baseline of Node.js's own Linux builds.
12
+
13
+ ## License
14
+ This project includes the precompiled Expat library, distributed under the [MIT License](https://github.com/libexpat/libexpat/blob/master/COPYING).
@@ -0,0 +1 @@
1
+ export { default } from '@crossbind/port-expat/build.mjs';
@@ -0,0 +1,5 @@
1
+ import mergeConfig from '@crossbind/port-expat/mergeConfig.mjs';
2
+
3
+ export default mergeConfig({
4
+ paths: { config: import.meta.url },
5
+ });
@@ -0,0 +1,58 @@
1
+ set(MY_LIST "linux-arm64-mt-release;linux-x64-mt-release")
2
+ LIST(FIND MY_LIST "${PROJECT_TARGET_HOST}" PACKAGE_HOST_INDEX)
3
+ if(PACKAGE_HOST_INDEX EQUAL -1)
4
+ set(PROJECT_TARGET_HOST "${PROJECT_TARGET_HOST_RELEASE}")
5
+ endif()
6
+ LIST(FIND MY_LIST "${PROJECT_TARGET_HOST}" PACKAGE_HOST_INDEX)
7
+
8
+ if(NOT PACKAGE_HOST_INDEX EQUAL -1)
9
+ cmake_minimum_required(VERSION 3.28)
10
+ set(CMAKE_CXX_STANDARD 11)
11
+ set(PROJECT_NAME "expat")
12
+ set(PROJECT_LIBS "expat")
13
+ project("${PROJECT_NAME}")
14
+
15
+ if (APPLE AND CMAKE_SYSTEM_NAME STREQUAL "iOS")
16
+ set(PACKAGE_DIR "${PROJECT_SOURCE_DIR}/../..")
17
+ else()
18
+ set(PACKAGE_DIR "${PROJECT_SOURCE_DIR}/${PROJECT_TARGET_HOST}/lib")
19
+ endif()
20
+
21
+ set(PROJECT_LIBS_DIR)
22
+ foreach(L IN LISTS PROJECT_LIBS)
23
+ SET(FOUND_LIB "FOUND_LIB-NOTFOUND")
24
+ find_library(FOUND_LIB
25
+ NAMES "${L}"
26
+ PATHS "${PACKAGE_DIR}"
27
+ NO_CACHE
28
+ NO_DEFAULT_PATH
29
+ NO_CMAKE_FIND_ROOT_PATH
30
+ REQUIRED
31
+ )
32
+ LIST(APPEND PROJECT_LIBS_DIR ${FOUND_LIB})
33
+ endforeach()
34
+
35
+ add_library("${PROJECT_NAME}" INTERFACE)
36
+ # Cargo producers register through an init-array constructor nothing references. KEEP pins the
37
+ # generated keep symbol (--undefined) so only the registration object is pulled - never the
38
+ # whole archive, because each Rust staticlib bundles libstd and fully loading two of them
39
+ # duplicates thousands of std symbols. FORCE (manual-bindings crates, no keep symbol) falls
40
+ # back to whole-archive - safe only as the app's single loaded Rust archive. (Apple consumers
41
+ # get the equivalent flags from the generated podspec instead.)
42
+ set(PROJECT_RUST_LINK "")
43
+ if(PROJECT_RUST_LINK STREQUAL "KEEP" AND NOT APPLE)
44
+ target_link_libraries("${PROJECT_NAME}" INTERFACE "${PROJECT_LIBS_DIR}")
45
+ foreach(L IN LISTS PROJECT_LIBS)
46
+ target_link_options("${PROJECT_NAME}" INTERFACE "-Wl,--undefined=crossbind_keep_${L}")
47
+ endforeach()
48
+ elseif(PROJECT_RUST_LINK STREQUAL "FORCE" AND NOT APPLE)
49
+ target_link_libraries("${PROJECT_NAME}" INTERFACE "$<LINK_LIBRARY:WHOLE_ARCHIVE,${PROJECT_LIBS_DIR}>")
50
+ else()
51
+ target_link_libraries("${PROJECT_NAME}" INTERFACE "${PROJECT_LIBS_DIR}")
52
+ endif()
53
+
54
+ # On iOS each library's xcframework carries the headers, so only a header-only package needs them here.
55
+ if(NOT (APPLE AND CMAKE_SYSTEM_NAME STREQUAL "iOS") OR PROJECT_LIBS STREQUAL "")
56
+ target_include_directories("${PROJECT_NAME}" INTERFACE "${PROJECT_SOURCE_DIR}/${PROJECT_TARGET_HOST}/include")
57
+ endif()
58
+ endif()
@@ -0,0 +1 @@
1
+ 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
@@ -0,0 +1 @@
1
+ f2a611220b7618bd33dd84ae3a807e855cab88af3da33b8713bde6716fb79743