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
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ jobs:

- name: Set up vcpkg
uses: lukka/run-vcpkg@v11
with:
# Without this, the default '**/vcpkg.json' glob also matches
# packaging/bbalouki-itch/vcpkg.json (a vcpkg *port* manifest with
# no builtin-baseline), and the action fails to find the baseline.
vcpkgJsonGlob: "vcpkg.json"

- name: Cache CMake build
uses: actions/cache@v4
Expand Down Expand Up @@ -130,6 +135,11 @@ jobs:

- name: Set up vcpkg
uses: lukka/run-vcpkg@v11
with:
# Without this, the default '**/vcpkg.json' glob also matches
# packaging/bbalouki-itch/vcpkg.json (a vcpkg *port* manifest with
# no builtin-baseline), and the action fails to find the baseline.
vcpkgJsonGlob: "vcpkg.json"

- name: Configure CMake (export compile commands)
run: |
Expand Down Expand Up @@ -170,6 +180,11 @@ jobs:

- name: Set up vcpkg
uses: lukka/run-vcpkg@v11
with:
# Without this, the default '**/vcpkg.json' glob also matches
# packaging/bbalouki-itch/vcpkg.json (a vcpkg *port* manifest with
# no builtin-baseline), and the action fails to find the baseline.
vcpkgJsonGlob: "vcpkg.json"

- name: Configure CMake (ASAN + UBSAN)
run: |
Expand Down Expand Up @@ -216,6 +231,11 @@ jobs:

- name: Set up vcpkg
uses: lukka/run-vcpkg@v11
with:
# Without this, the default '**/vcpkg.json' glob also matches
# packaging/bbalouki-itch/vcpkg.json (a vcpkg *port* manifest with
# no builtin-baseline), and the action fails to find the baseline.
vcpkgJsonGlob: "vcpkg.json"

- name: Configure CMake (coverage)
run: |
Expand Down Expand Up @@ -305,6 +325,11 @@ jobs:

- name: Set up vcpkg
uses: lukka/run-vcpkg@v11
with:
# Without this, the default '**/vcpkg.json' glob also matches
# packaging/bbalouki-itch/vcpkg.json (a vcpkg *port* manifest with
# no builtin-baseline), and the action fails to find the baseline.
vcpkgJsonGlob: "vcpkg.json"

- name: Configure CMake (Python bindings)
run: |
Expand Down Expand Up @@ -352,6 +377,11 @@ jobs:

- name: Set up vcpkg
uses: lukka/run-vcpkg@v11
with:
# Without this, the default '**/vcpkg.json' glob also matches
# packaging/bbalouki-itch/vcpkg.json (a vcpkg *port* manifest with
# no builtin-baseline), and the action fails to find the baseline.
vcpkgJsonGlob: "vcpkg.json"

- name: Configure CMake (benchmarks)
run: |
Expand Down
1 change: 0 additions & 1 deletion packaging
Submodule packaging deleted from 115a19
42 changes: 42 additions & 0 deletions packaging/bbalouki-itch/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO bbalouki/itchcpp
REF "v${VERSION}"
SHA512 81ebc631a6a1d23b903a8726354f3abce1f76050521e031025b5cd7a9ebd055f0fbf84b8686978edc7aabbcaeb5458e2c621c17fa26147828f3a7b31f8d9eeef
HEAD_REF main
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
arrow ITCH_WITH_ARROW
python ITCH_BUILD_PYTHON
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
-DITCH_BUILD_TESTS=OFF
-DITCH_BUILD_BENCHMARKS=OFF
-DITCH_BUILD_EXAMPLES=OFF
-DITCH_PROJECT_ENV=PROD
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(
PACKAGE_NAME "itch"
CONFIG_PATH "lib/cmake/itch"

)
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()

file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share"
)

file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
4 changes: 4 additions & 0 deletions packaging/bbalouki-itch/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
itch provides CMake targets:

find_package(itch CONFIG REQUIRED)
target_link_libraries(main PRIVATE itch::itch)
36 changes: 36 additions & 0 deletions packaging/bbalouki-itch/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "bbalouki-itch",
"version": "1.6.4",
"port-version": 1,
"maintainers": "Bertin Balouki SIMYELI",
"description": "A High-Performance C++ library for parsing the ITCH 5.0 protocol.",
"homepage": "https://github.com/bbalouki/itchcpp",
"documentation": "https://bbalouki.github.io/itchcpp/",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"arrow": {
"description": "Enable Apache Arrow / Parquet columnar export",
"dependencies": [
{
"name": "arrow",
"features": ["parquet"]
}
]
},
"python": {
"description": "Build the pybind11 Python bindings",
"supports": "native",
"dependencies": ["pybind11"]
}
}
}
Loading