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
11 changes: 8 additions & 3 deletions .github/workflows/build.yml → .github/workflows/xpbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,24 @@ on:
workflow_dispatch:
jobs:
linux:
uses: externpro/externpro/.github/workflows/build-linux.yml@25.04.2
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.04.2
uses: externpro/externpro/.github/workflows/build-linux.yml@25.05.1
with:
cmake-workflow-preset: Linux
runon: ubuntu-24.04-arm
secrets: inherit
macos:
uses: externpro/externpro/.github/workflows/build-macos.yml@25.05.1
with:
cmake-workflow-preset: Darwin
secrets: inherit
windows:
uses: externpro/externpro/.github/workflows/build-windows.yml@25.04.2
uses: externpro/externpro/.github/workflows/build-windows.yml@25.05.1
with:
cmake-workflow-preset: Windows
secrets: inherit
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ on:
jobs:
# Upload build artifacts as release assets
release-from-build:
uses: externpro/externpro/.github/workflows/release-from-build.yml@25.04.2
uses: externpro/externpro/.github/workflows/release-from-build.yml@25.05.1
with:
workflow_run_url: ${{ github.event.inputs.workflow_run_url }}
artifact_pattern: "*.tar.xz"
permissions:
contents: write
id-token: write
attestations: write
secrets: inherit
26 changes: 13 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
cmake_minimum_required(VERSION 3.31)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/.devcontainer/cmake)
include(preproject)
set(CMAKE_PROJECT_TOP_LEVEL_INCLUDES .devcontainer/cmake/xproinc.cmake)
project(SQLite3
VERSION 3.37.2.3
VERSION 3.37.2
LANGUAGES C
)

include(GNUInstallDirs)

#------------------------------------------------------------------------------
# externpro
include(flags)
include(xpflags)
set(targetsFile ${PROJECT_NAME}Config)
if(NOT DEFINED XP_NAMESPACE)
set(XP_NAMESPACE SQLite)
set(debugPostfix DEBUG_POSTFIX d)
set(XP_INSTALL_CMAKEDIR cmake)
else()
set(XP_INSTALL_CMAKEDIR ${CMAKE_INSTALL_DATADIR}/cmake)
string(JOIN "\n" EXT1
"set(THREAD_PREFER_PTHREAD_FLAG ON)"
"find_package(Threads REQUIRED) # depends on Threads::Threads"
""
)
xpPackageDevel(LIBRARIES ${XP_NAMESPACE}::${PROJECT_NAME} TARGETS_FILE ${targetsFile})
endif()
string(JOIN "\n" EXT1
"set(THREAD_PREFER_PTHREAD_FLAG ON)"
"find_package(Threads REQUIRED) # depends on Threads::Threads"
""
)
xpPackageDevel(LIBRARIES ${XP_NAMESPACE}::${PROJECT_NAME} TARGETS_FILE ${PROJECT_NAME}Config)

#------------------------------------------------------------------------------
# build options and optional modules:
Expand Down Expand Up @@ -109,12 +109,12 @@ endif()
#------------------------------------------------------------------------------
configure_file(sqlite3_config.h.in ${CMAKE_BINARY_DIR}/sqlite3_config.h)

install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}Config
install(TARGETS ${PROJECT_NAME} EXPORT ${targetsFile}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
install(EXPORT ${PROJECT_NAME}Config
install(EXPORT ${targetsFile}
NAMESPACE ${XP_NAMESPACE}::
DESTINATION ${XP_INSTALL_CMAKEDIR}
)
Expand Down Expand Up @@ -146,7 +146,7 @@ if(BUILD_SHELL)
set(${flag} "${${flag}}" CACHE STRING "msvc flags" FORCE)
endforeach()
endif()
install(TARGETS shell_app EXPORT ${PROJECT_NAME}Config
install(TARGETS shell_app EXPORT ${targetsFile}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} CONFIGURATIONS Release
)
endif()
1 change: 1 addition & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"version": 8,
"include": [
".devcontainer/cmake/presets/xpLinuxNinja.json",
".devcontainer/cmake/presets/xpDarwinNinja.json",
".devcontainer/cmake/presets/xpWindowsVs2022.json"
]
}