Skip to content

Commit

Permalink
[tinyorm] added initial port TinyORM v0.36.3
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Oct 20, 2023
1 parent 830f86f commit 96d757a
Show file tree
Hide file tree
Showing 2 changed files with 147 additions and 0 deletions.
41 changes: 41 additions & 0 deletions ports/tinyorm/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO silverqx/TinyORM
REF v0.36.3
SHA512 0f4339b809e14581dba748ce484bbe26f6b0f005f675495dba05c152ad3b0a81fed89a2a4ace03bdc3d6505ea65ec41e29bd32fecd0e931e5e65cb933c0addcd
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}
OPTIONS_RELEASE
-DTINY_TARGET_TRIPLET:STRING=${TARGET_TRIPLET}
)

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.3",
"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"
]
}
]
}
}
}

0 comments on commit 96d757a

Please sign in to comment.