-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [munit] Add new port * [munit] Modernize * [muint] Update to 2020-04-06 * [munit] Update CI baseline * [munit] Update CI baseline * [munit] Fail fast * [munit] Download meson on linux and osx * [vcpkg_find_acquire_program] Always download meson if not found * Revert "[munit] Download meson on linux and osx" This reverts commit e7e1773. Co-authored-by: wangli28 <wangli28@beyondsoft.com>
- Loading branch information
Showing
4 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
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,5 @@ | ||
Source: munit | ||
Version: 2019-04-06 | ||
Description: A small but full-featured unit testing framework for C | ||
Supports: !(arm|arm64|uwp) | ||
Homepage: https://github.com/nemequ/munit |
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,13 @@ | ||
diff --git a/meson.build b/meson.build | ||
index c15b405..44ee737 100644 | ||
--- a/meson.build | ||
+++ b/meson.build | ||
@@ -11,7 +11,7 @@ root_include = include_directories('.') | ||
|
||
munit = library('munit', | ||
['munit.c'], | ||
- install: meson.is_subproject()) | ||
+ install: not meson.is_subproject()) | ||
|
||
if meson.is_subproject() | ||
munit_dep = declare_dependency( |
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,25 @@ | ||
vcpkg_fail_port_install(ON_ARCH "arm" "arm64" ON_TARGET "uwp") | ||
|
||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) | ||
|
||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO nemequ/munit | ||
REF da8f73412998e4f1adf1100dc187533a51af77fd | ||
SHA512 cd08c1291a73487f15fdba7bf8675fea9177f0ec9766900f65efb5f00c662532a16499447e9087d304de34ff9138f47d04ebf18713f5aa8aacede22c5e23b98b | ||
HEAD_REF master | ||
PATCHES | ||
fix-install.patch | ||
) | ||
|
||
vcpkg_configure_meson( | ||
SOURCE_PATH ${SOURCE_PATH} | ||
OPTIONS | ||
--backend=ninja | ||
) | ||
|
||
vcpkg_install_meson() | ||
|
||
vcpkg_copy_pdbs() | ||
|
||
file(INSTALL ${SOURCE_PATH}/COPYING 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