-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[oatpp] Add new port and vcpkg.json (#14341)
- Loading branch information
Showing
24 changed files
with
223 additions
and
47 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "oatpp-consul", | ||
"version-string": "1.2.0", | ||
"port-version": 1, | ||
"description": "OAT++ Modern web framework consul module.", | ||
"homepage": "https://github.com/oatpp/oatpp-consul", | ||
"dependencies": [ | ||
"oatpp" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "oatpp-curl", | ||
"version-string": "1.2.0", | ||
"port-version": 2, | ||
"description": "Oat++ Modern web framework curl module to use libcurl as a RequestExecutor on the oatpp's ApiClient.", | ||
"homepage": "https://github.com/oatpp/oatpp-curl", | ||
"dependencies": [ | ||
"curl", | ||
"oatpp" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "oatpp-libressl", | ||
"version-string": "1.2.0", | ||
"port-version": 1, | ||
"description": "Oat++ libressl module providing secure server and client connection providers.", | ||
"homepage": "https://github.com/oatpp/oatpp-libressl", | ||
"dependencies": [ | ||
"libressl", | ||
"oatpp" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "oatpp-mbedtls", | ||
"version-string": "1.2.0", | ||
"port-version": 1, | ||
"description": "Oat++ Mbed TLS submodule providing secure server and client connection providers.", | ||
"homepage": "https://github.com/oatpp/oatpp-mbedtls", | ||
"dependencies": [ | ||
"mbedtls", | ||
"oatpp" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/src/oatpp-mongo/bson/Utils.cpp b/src/oatpp-mongo/bson/Utils.cpp | ||
index c848c59..32a9e4c 100644 | ||
--- a/src/oatpp-mongo/bson/Utils.cpp | ||
+++ b/src/oatpp-mongo/bson/Utils.cpp | ||
@@ -34,7 +34,8 @@ Utils::BO_TYPE Utils::FLOAT_BO = detectFloatBO(); | ||
|
||
Utils::BO_TYPE Utils::detectIntBO() { | ||
BO_TYPE result = BO_TYPE::UNKNOWN; | ||
- BO_CHECK check {.i64 = 255}; | ||
+ BO_CHECK check; | ||
+ check.i64 = 255; | ||
if(check.bytes[0] == 255) { | ||
result = BO_TYPE::LITTLE; | ||
} else if(check.bytes[7] == 255) { | ||
@@ -45,7 +46,8 @@ Utils::BO_TYPE Utils::detectIntBO() { | ||
|
||
Utils::BO_TYPE Utils::detectFloatBO() { | ||
BO_TYPE result = BO_TYPE::UNKNOWN; | ||
- BO_CHECK check {.f64 = 2.0}; | ||
+ BO_CHECK check; | ||
+ check.f64 = 2.0; | ||
if(check.bytes[0] > 0) { | ||
result = BO_TYPE::NETWORK; | ||
} else if(check.bytes[7] > 0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
set(OATPP_VERSION "1.2.0") | ||
|
||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) | ||
|
||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO oatpp/oatpp-mongo | ||
REF ebfad69af3db61c3f989ec2ec30ebd582e3a4073 # 1.2.0 | ||
SHA512 6cba529b258b26e8456e10089a127e9ef2b4e683f9d4e37551ed71887978ba22ba796d4af6db6558e20812428dff8ba95d1de540de0675a6563ac6b941c91921 | ||
HEAD_REF master | ||
PATCHES | ||
no-designatore-expression.patch # https://github.com/oatpp/oatpp-mongo/pull/5 | ||
) | ||
|
||
set(VCPKG_C_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS") | ||
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS") | ||
|
||
vcpkg_configure_cmake( | ||
SOURCE_PATH "${SOURCE_PATH}" | ||
PREFER_NINJA | ||
OPTIONS | ||
"-DOATPP_BUILD_TESTS:BOOL=OFF" | ||
) | ||
|
||
vcpkg_install_cmake() | ||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/oatpp-mongo-${OATPP_VERSION}) | ||
vcpkg_copy_pdbs() | ||
|
||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") | ||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "oatpp-mongo", | ||
"version-string": "1.2.0", | ||
"port-version": 1, | ||
"description": "Oat++ MongoDB adapter for Oat++ ORM (native client). It contains DTO to BSON mapper plus database driver.", | ||
"homepage": "https://github.com/oatpp/oatpp-mongo", | ||
"dependencies": [ | ||
"oatpp" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
set(OATPP_VERSION "1.2.0") | ||
|
||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) | ||
|
||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO oatpp/oatpp-postgresql | ||
REF 349d610084375c46be95d50ce10b787ae6c2baf4 # 1.2.0 | ||
SHA512 2faa688077020bbe64807be85d8d61e5aa84163a044d42df0a3b1701cf82048ff0322acb72d4e757a38403e14cba6a7a766daa965862e04756e483d9b750a365 | ||
HEAD_REF master | ||
) | ||
|
||
set(VCPKG_C_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS") | ||
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS") | ||
|
||
vcpkg_configure_cmake( | ||
SOURCE_PATH "${SOURCE_PATH}" | ||
PREFER_NINJA | ||
OPTIONS | ||
"-DOATPP_BUILD_TESTS:BOOL=OFF" | ||
) | ||
|
||
vcpkg_install_cmake() | ||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/oatpp-postgresql-${OATPP_VERSION}) | ||
vcpkg_copy_pdbs() | ||
|
||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") | ||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "oatpp-postgresql", | ||
"version-string": "1.2.0", | ||
"port-version": 1, | ||
"description": "Oat++ PostgreSQL adapter for Oat++ ORM (alpha - not all datatypes are supported).", | ||
"homepage": "https://github.com/oatpp/oatpp-postgresql", | ||
"dependencies": [ | ||
"libpq", | ||
"oatpp" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "oatpp-sqlite", | ||
"version-string": "1.2.0", | ||
"port-version": 1, | ||
"description": "Oat++ SQLite adapter for Oat++ ORM.", | ||
"homepage": "https://github.com/oatpp/oatpp-sqlite", | ||
"dependencies": [ | ||
"oatpp", | ||
"sqlite3" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "oatpp-swagger", | ||
"version-string": "1.2.0", | ||
"port-version": 1, | ||
"description": "Oat++ OpenApi (Swagger) UI submodule.", | ||
"homepage": "https://github.com/oatpp/oatpp-swagger", | ||
"dependencies": [ | ||
"oatpp" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "oatpp-websocket", | ||
"version-string": "1.2.0", | ||
"port-version": 1, | ||
"description": "Oat++ websocket module.", | ||
"homepage": "https://github.com/oatpp/oatpp-websocket", | ||
"dependencies": [ | ||
"oatpp" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
set(OATPP_VERSION "1.2.0") | ||
|
||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) | ||
|
||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO oatpp/oatpp-zlib | ||
REF b3a0c1d140175d8ec43ebbe1da9ac46e2baa142c # 1.2.0 | ||
SHA512 a6a012ad5294f994a5a65a57ccfd8b9af77515d0c203d04193a2202996b3a831f314c0847a3f5ebc1867835fbd0c438284142c070998ed26881fdc1110a3c5ad | ||
HEAD_REF master | ||
) | ||
|
||
set(VCPKG_C_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS") | ||
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS") | ||
|
||
vcpkg_configure_cmake( | ||
SOURCE_PATH "${SOURCE_PATH}" | ||
PREFER_NINJA | ||
OPTIONS | ||
"-DOATPP_BUILD_TESTS:BOOL=OFF" | ||
) | ||
|
||
vcpkg_install_cmake() | ||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/oatpp-zlib-${OATPP_VERSION}) | ||
vcpkg_copy_pdbs() | ||
|
||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") | ||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "oatpp-zlib", | ||
"version-string": "1.2.0", | ||
"port-version": 1, | ||
"description": "Oat++ functionality for automatically compressing/decompressing content with deflate and gzip.", | ||
"homepage": "https://github.com/oatpp/oatpp-zlib", | ||
"dependencies": [ | ||
"oatpp" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "oatpp", | ||
"version-string": "1.2.0", | ||
"port-version": 1, | ||
"description": "Modern web framework.", | ||
"homepage": "https://github.com/oatpp/oatpp" | ||
} |