aws / aws/aws-encryption-sdk-c

Add json-c to msbuild in codebuild CI

Open
#230 1 comment 0 reactions 0 assignees View on GitHub
maintenance
Dominant language
C
Stars
63
Forks
59
PR merge metrics
No merged PRs in 30d

Description

Add the following to codebuild/common-windows.bat:

1. git clone https://github.com/json-c/json-c.git || goto error
2. mkdir json-c-build
3. cd json-c-build
4. cmake %* -DCMAKE_INSTALL_PREFIX=c:/deps -DCMAKE_BUILD_TYPE="Release" -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake ../json-c || goto error
5. msbuild.exe json-c.vcxproj /m /verbosity:normal /p:Configuration=Release || goto error
6. msbuild.exe INSTALL.vcxproj /p:Configuration=Release || goto error
7. Turn on -DAWS_ENC_SDK_KNOWN_GOOD_TESTS=ON flag in cmake

Contributor guide

Open the contributing guide

Research direction

Open codebuild/common-windows.bat and review how existing dependencies are cloned, configured, built, and installed in the Windows CodeBuild flow. Add the json-c build steps and enable AWS_ENC_SDK_KNOWN_GOOD_TESTS=ON in the CMake configuration; done means the Windows CI build completes successfully with json-c installed.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cmake, git
Domain
build-system, ci-cd
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.