Skip to content

Commit

Permalink
Merge branch 'change_build'
Browse files Browse the repository at this point in the history
  • Loading branch information
ctapmex committed Jan 24, 2025
2 parents d09422e + 946d4c1 commit 5550501
Show file tree
Hide file tree
Showing 24 changed files with 59 additions and 418 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/colorer_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ jobs:
zip: [ON, OFF]
include:
- arch: x64
triplet: x64-windows-static
triplet: x64-win-static-rel
- arch: x86
triplet: x86-windows-static
triplet: x86-win-static-rel
exclude:
- arch: x86
zip: OFF
Expand Down Expand Up @@ -182,7 +182,6 @@ jobs:
-DCOLORER_BUILD_TEST=ON
-DCOLORER_BUILD_ARCH=${{ matrix.arch }}
-DCMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake
-DVCPKG_OVERLAY_PORTS=$GITHUB_WORKSPACE/external/vcpkg-ports
-DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }}
-DCOLORER_USE_ICU_STRINGS=${{ matrix.icu }}
-DCOLORER_USE_ZIPINPUTSOURCE=${{ matrix.zip }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
zip: [ON]
include:
- arch: x64
triplet: x64-windows-static
triplet: x64-win-static-rel
- arch: x86
triplet: x86-windows-static
triplet: x86-win-static-rel

name: windows-${{ matrix.arch }}

Expand Down Expand Up @@ -65,7 +65,6 @@ jobs:
-DCOLORER_BUILD_TEST=OFF
-DCOLORER_BUILD_ARCH=${{ matrix.arch }}
-DCMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake
-DVCPKG_OVERLAY_PORTS=$GITHUB_WORKSPACE/external/vcpkg-ports
-DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }}
-DCOLORER_USE_ICU_STRINGS=${{ matrix.icu }}
-DCOLORER_USE_ZIPINPUTSOURCE=${{ matrix.zip }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ jobs:
arch: [ x64, x86 ]
include:
- arch: x64
triplet: x64-windows-static
triplet: x64-win-static-rel
- arch: x86
triplet: x86-windows-static
triplet: x86-win-static-rel

env:
BUILD_TYPE: Release
Expand Down Expand Up @@ -110,7 +110,6 @@ jobs:
-DCOLORER_BUILD_TEST=OFF
-DCOLORER_BUILD_ARCH=${{ matrix.arch }}
-DCMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake
-DVCPKG_OVERLAY_PORTS=$GITHUB_WORKSPACE/external/vcpkg-ports
-DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }}
-DVCPKG_FEATURE_FLAGS=manifests,versions
-DCMAKE_INSTALL_PREFIX=./install/colorer
Expand Down
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ endif()
include(cmake/colorer_extract_version.cmake)
colorer_extract_version()

#====================================================
# vcpkg settings
#====================================================
# set before declare project(...)
set(VCPKG_MANIFEST_DIR "${CMAKE_HOME_DIRECTORY}/vcpkg/manifest" CACHE STRING "Set the path to the manifest folder")
message(STATUS "Using vcpkg manifest: ${VCPKG_MANIFEST_DIR}/vcpkg.json")

#====================================================
# main project
#====================================================
Expand Down
6 changes: 3 additions & 3 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,23 +90,23 @@
"name": "vcpkg_win_x64",
"inherits": "vcpkg",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows-static"
"VCPKG_TARGET_TRIPLET": "x64-win-static"
},
"hidden": true
},
{
"name": "vcpkg_win_x86",
"inherits": "vcpkg",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x86-windows-static"
"VCPKG_TARGET_TRIPLET": "x86-win-static"
},
"hidden": true
},
{
"name": "vcpkg_win_arm64",
"inherits": "vcpkg",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "arm64-windows-static"
"VCPKG_TARGET_TRIPLET": "arm64-win-static"
},
"hidden": true
},
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ Build colorer and dependency, if they are not in the local cache:

mkdir build
cd build
cmake -S .. -G "NMake Makefiles" -DCMAKE_TOOLCHAIN_FILE=%VCPKG_ROOT%/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCOLORER_BUILD_ARCH=x64
cmake -S .. -G "NMake Makefiles" -DCMAKE_TOOLCHAIN_FILE=%VCPKG_ROOT%/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-win-static -DCOLORER_BUILD_ARCH=x64
cmake --build .
```

For x86 platform use `-DVCPKG_TARGET_TRIPLET=x86-windows-static -DCOLORER_BUILD_ARCH=x86`, arm64 - `-DVCPKG_TARGET_TRIPLET=arm64-windows-static -DCOLORER_BUILD_ARCH=arm64`.
For x86 platform use `-DVCPKG_TARGET_TRIPLET=x86-win-static -DCOLORER_BUILD_ARCH=x86`, arm64 - `-DVCPKG_TARGET_TRIPLET=arm64-win-static -DCOLORER_BUILD_ARCH=arm64`.

Once built, the dependencies will be cached in the local cache.

Expand Down
17 changes: 0 additions & 17 deletions external/vcpkg-ports/icu/disable-escapestr-tool.patch

This file was deleted.

20 changes: 0 additions & 20 deletions external/vcpkg-ports/icu/disable-static-prefix.patch

This file was deleted.

13 changes: 0 additions & 13 deletions external/vcpkg-ports/icu/fix-extra.patch

This file was deleted.

35 changes: 0 additions & 35 deletions external/vcpkg-ports/icu/fix-win-build.patch

This file was deleted.

25 changes: 0 additions & 25 deletions external/vcpkg-ports/icu/fix_parallel_build_on_windows.patch

This file was deleted.

26 changes: 0 additions & 26 deletions external/vcpkg-ports/icu/mingw-dll-install.patch

This file was deleted.

Loading

0 comments on commit 5550501

Please sign in to comment.