Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer
Submodule .devcontainer updated 67 files
+10 −16 .github/wf-templates/xpbuild.yml
+1 −2 .github/wf-templates/xprelease.yml
+61 −17 .github/workflows/README.md
+89 −31 .github/workflows/build-linux.yml
+37 −5 .github/workflows/build-macos.yml
+44 −10 .github/workflows/build-windows.yml
+75 −122 .github/workflows/release-from-build.yml
+3 −3 README.md
+0 −40 cmake/Findexdlpro.cmake
+0 −78 cmake/Findwebpro.cmake
+78 −67 cmake/README.md
+0 −17 cmake/cmswxconfig.cmake
+1 −1 cmake/cpack/README.md
+62 −5 cmake/deps.cmake
+10 −10 cmake/deps.dot
+ cmake/deps.png
+0 −0 cmake/legacy/Findscript.cmake.in
+0 −0 cmake/legacy/cmsappendsuffix.cmake
+0 −0 cmake/legacy/cmsconfigurefile.cmake
+0 −0 cmake/legacy/cmscopyfilemd5.cmake
+0 −0 cmake/legacy/cmscopyfiles.cmake
+0 −0 cmake/legacy/cmscopymanuals.cmake
+0 −0 cmake/legacy/cmsdownload.cmake
+0 −0 cmake/legacy/launchWorkflow.cmake
+0 −0 cmake/legacy/macpro.cmake
+1 −2 cmake/legacy/sync.cmake
+0 −0 cmake/legacy/sync.sh.in
+928 −0 cmake/legacy/xpfunmac.cmake
+0 −0 cmake/legacy/xpopts.cmake.in
+0 −0 cmake/legacy/xpsolpkg.cmake
+6 −0 cmake/presets/CMakePresetsBase.json
+23 −0 cmake/presets/xpDarwinNinja.json
+23 −0 cmake/presets/xpLinuxNinja.json
+29 −16 cmake/presets/xpLinuxNinjaTargets.json
+23 −0 cmake/presets/xpWindowsVs2022.json
+490 −336 cmake/pros.cmake
+38 −60 cmake/pros.md
+0 −7 cmake/usexp.cmake.in
+0 −22 cmake/usexpdev.cmake.in
+0 −0 cmake/web/NodePath.cmake
+0 −0 cmake/web/version.js.in
+0 −0 cmake/web/version.ts.in
+0 −0 cmake/web/versionjs.cmake
+82 −139 cmake/web/xpweb.cmake
+0 −30 cmake/xpboost.cmake
+1,273 −29 cmake/xpcfg.cmake
+0 −0 cmake/xpflags.cmake
+0 −49 cmake/xpflatbuffers.cmake
+358 −1,071 cmake/xpfunmac.cmake
+11 −0 cmake/xproinc.cmake
+1 −2 cmake/xptoplevel.cmake
+6 −5 cmake/xpuse.cmake.in
+0 −1 compose.bld.sh
+0 −1 compose.bld.yml
+0 −1 compose.ci.sh
+1 −1 compose.gpu.sh
+0 −1 compose.gpu.yml
+1 −2 compose.pro.sh
+0 −6 compose.xdl.sh
+7 −90 denv.sh
+1 −0 devcontainer.json
+66 −32 funcs.sh
+44 −0 git_hooks_pre-commit
+15 −10 graph/graph.dot
+ graph/graph.png
+1 −6 local.dockerfile
+90 −0 tools.sh
26 changes: 10 additions & 16 deletions .github/workflows/xpbuild.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Build
permissions:
contents: read
pull-requests: write
on:
push:
branches: [ "dev" ]
Expand All @@ -7,24 +10,15 @@ on:
workflow_dispatch:
jobs:
linux:
uses: externpro/externpro/.github/workflows/build-linux.yml@25.05.1
with:
cmake-workflow-preset: Linux
runon: ubuntu-latest
secrets: inherit
linux-arm64:
uses: externpro/externpro/.github/workflows/build-linux.yml@25.05.1
with:
cmake-workflow-preset: Linux
runon: ubuntu-24.04-arm
permissions:
contents: read
pull-requests: write
packages: write
uses: externpro/externpro/.github/workflows/build-linux.yml@25.07
secrets: inherit
macos:
uses: externpro/externpro/.github/workflows/build-macos.yml@25.05.1
with:
cmake-workflow-preset: Darwin
uses: externpro/externpro/.github/workflows/build-macos.yml@25.07
secrets: inherit
windows:
uses: externpro/externpro/.github/workflows/build-windows.yml@25.05.1
with:
cmake-workflow-preset: Windows
uses: externpro/externpro/.github/workflows/build-windows.yml@25.07
secrets: inherit
3 changes: 1 addition & 2 deletions .github/workflows/xprelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ on:
jobs:
# Upload build artifacts as release assets
release-from-build:
uses: externpro/externpro/.github/workflows/release-from-build.yml@25.05.1
uses: externpro/externpro/.github/workflows/release-from-build.yml@25.07
with:
workflow_run_url: ${{ github.event.inputs.workflow_run_url }}
artifact_pattern: "*.tar.xz"
permissions:
contents: write
id-token: write
Expand Down
33 changes: 16 additions & 17 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
cmake_minimum_required(VERSION 3.31)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/.devcontainer/cmake)
set(CMAKE_PROJECT_TOP_LEVEL_INCLUDES xproinc)
project(bzip2 VERSION 1.0.8.2 LANGUAGES C)
include(flags)
include(GNUInstallDirs)
set(CMAKE_PROJECT_TOP_LEVEL_INCLUDES .devcontainer/cmake/xproinc.cmake)
project(bzip2 VERSION 1.0.8 LANGUAGES C)
set(lib_name bz2)
########################################
add_definitions(-D_FILE_OFFEST_BITS=64)
Expand Down Expand Up @@ -43,13 +40,6 @@ add_test(NAME bzip2_check
)
########################################
set(targetsFile ${PROJECT_NAME}-targets)
set(exe bzip2)
set(lib ${lib_name})
if(DEFINED XP_NAMESPACE)
string(PREPEND exe "${XP_NAMESPACE}::")
string(PREPEND lib "${XP_NAMESPACE}::")
endif()
xpPackageDevel(TARGETS_FILE ${targetsFile} LIBRARIES ${lib} EXE ${exe})
install(TARGETS ${lib_name} EXPORT ${targetsFile}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
Expand All @@ -65,9 +55,18 @@ install(PROGRAMS $<TARGET_FILE:bzip2> DESTINATION ${CMAKE_INSTALL_BINDIR} CONFIG
install(PROGRAMS $<TARGET_FILE:bzip2> DESTINATION ${CMAKE_INSTALL_BINDIR} CONFIGURATIONS Release RENAME bzcat${CMAKE_EXECUTABLE_SUFFIX})
install(FILES bzlib.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME})
if(DEFINED XP_NAMESPACE)
set(nameSpace NAMESPACE ${XP_NAMESPACE}::)
endif()
if(NOT DEFINED XP_INSTALL_CMAKEDIR)
set(XP_INSTALL_CMAKEDIR ${CMAKE_INSTALL_DATADIR}/cmake)
string(JOIN "\n" ALIASES
"if(NOT TARGET BZip2::BZip2)"
" add_library(BZip2::BZip2 ALIAS ${XP_NAMESPACE}::${lib_name})"
"endif()"
""
)
xpExternPackage(NAMESPACE ${XP_NAMESPACE}
TARGETS_FILE ${targetsFile} LIBRARIES ${lib_name} EXE bzip2
BASE ${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION} XPDIFF "intro"
WEB "https://sourceware.org/bzip2/" UPSTREAM "github.com/opencor/bzip2"
DESC "lossless block-sorting data compression library"
LICENSE "[bzip2-1.0.6](https://spdx.org/licenses/bzip2-1.0.6.html 'BSD-like, modified zlib license')"
)
install(EXPORT ${targetsFile} DESTINATION ${XP_INSTALL_CMAKEDIR} NAMESPACE ${XP_NAMESPACE}::)
endif()
install(EXPORT ${targetsFile} DESTINATION ${XP_INSTALL_CMAKEDIR} ${nameSpace})
7 changes: 6 additions & 1 deletion CMakePresetsBase.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
"hidden": true,
"binaryDir": "${sourceDir}/_bld-${presetName}",
"cacheVariables": {
"XP_INSTALL_CMAKEDIR": "share/cmake",
"XP_NAMESPACE": "xpro"
}
}
],
"buildPresets": [
{
"name": "build-base",
"hidden": true
}
]
}