Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tinyorm] added initial port TinyORM v0.36.5 #34640

Merged
merged 2 commits into from
Nov 5, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
39 changes: 39 additions & 0 deletions ports/tinyorm/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO silverqx/TinyORM
REF v0.36.5
SHA512 ba3bf73972a6265663122e2c260354cf213dcdcf7bfd1f7a6a7eb43eb11e06fbed581b3f6ce28898eb60a85d0c9bfe45bfaa9596d92b62ca40702ede9856b183
HEAD_REF main
)

vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
PREFIX TINYORM
FEATURES
disable-thread-local DISABLE_THREAD_LOCAL
inline-constants INLINE_CONSTANTS
mysql-ping MYSQL_PING
orm ORM
strict-mode STRICT_MODE
tom TOM
tom-example TOM_EXAMPLE
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCMAKE_EXPORT_PACKAGE_REGISTRY:BOOL=OFF
-DBUILD_TESTS:BOOL=OFF
-DTINY_PORT:STRING=${PORT}
-DTINY_VCPKG:BOOL=ON
-DVERBOSE_CONFIGURE:BOOL=ON
${FEATURE_OPTIONS}
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup()

if(TINYORM_TOM_EXAMPLE)
vcpkg_copy_tools(TOOL_NAMES tom AUTO_CLEAN)
endif()
106 changes: 106 additions & 0 deletions ports/tinyorm/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "tinyorm",
"version-semver": "0.36.5",
"maintainers": "Silver Zachara <silver.zachara@gmail.com>",
"description": "Modern C++ ORM library for Qt framework",
"homepage": "https://github.com/silverqx/TinyORM",
"documentation": "https://www.tinyorm.org",
"license": "MIT",
"supports": "!(uwp | arm | android | emscripten | osx | ios | xbox | freebsd | openbsd | wasm32)",
"dependencies": [
{
"name": "qtbase",
"default-features": false,
"features": [
"sql"
]
},
"range-v3",
"tabulate",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"default-features": [
"orm",
"sql-sqlite",
"tom"
],
"features": {
"disable-thread-local": {
"description": "Remove all thread_local storage duration specifiers (disables multi-threading support)"
},
"inline-constants": {
"description": "Use inline constants instead of extern constants in shared builds"
},
"mysql-ping": {
"description": "Install MySQL C client library (libmysql) to support the mysql_ping()",
"dependencies": [
"libmysql"
]
},
"orm": {
"description": "Enable ORM-related source code (without it only the query builder is compiled)"
},
"sql-mysql": {
"description": "Build Qt SQL Driver for MySQL",
"dependencies": [
{
"name": "qtbase",
"default-features": false,
"features": [
"sql-mysql"
]
}
]
},
"sql-psql": {
"description": "Build Qt SQL Driver for PostgreSQL",
"dependencies": [
{
"name": "qtbase",
"default-features": false,
"features": [
"sql-psql"
]
}
]
},
"sql-sqlite": {
"description": "Build Qt SQL Driver for SQLite",
"dependencies": [
{
"name": "qtbase",
"default-features": false,
"features": [
"sql-sqlite"
]
}
]
},
"strict-mode": {
"description": "Propagate strict compiler/linker options and Qt definitions"
},
"tom": {
"description": "Enable Tom-related source code (command-line interface)"
},
"tom-example": {
"description": "Build Tom command-line application example",
"dependencies": [
{
"name": "tinyorm",
"default-features": false,
"features": [
"tom"
]
}
]
}
}
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -8416,6 +8416,10 @@
"baseline": "2.0.0-rc9",
"port-version": 0
},
"tinyorm": {
"baseline": "0.36.5",
"port-version": 0
},
"tinyply": {
"baseline": "2.3.4",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/t-/tinyorm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "b21b31342cfe5d58cce629fab598e6f968e5118e",
"version-semver": "0.36.5",
"port-version": 0
}
]
}