-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#7212) nspr: bump + modernize + no tools.os_info in `build_requireme…
…nts` * nspr: bump + modernize + no tools.os_info in `build_requirements` * nspr: add more 64-bit cpus * nspr: DEBUG print config.log * Revert "nspr: DEBUG print config.log" This reverts commit 3a9dd3e. * Update recipes/nspr/all/conanfile.py * - PR_Initialize implicitly calls PR_Cleanup on exiting the primordial function (https://www-archive.mozilla.org/projects/nspr/reference/html/prinit.html#15758) Signed-off-by: SSE4 <[email protected]> * - typo Signed-off-by: SSE4 <[email protected]> * - support msvc compiler Signed-off-by: SSE4 <[email protected]> * Revert "Update recipes/nspr/all/conanfile.py" This reverts commit 0a8b084. * - linter Signed-off-by: SSE4 <[email protected]> Co-authored-by: SSE4 <[email protected]>
- Loading branch information
Showing
7 changed files
with
83 additions
and
72 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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
sources: | ||
"4.24": | ||
sha256: 90a59a0df6a11528749647fe18401cc7e03881e3e63c309f8c520ce06dd413d0 | ||
url: https://ftp.mozilla.org/pub/nspr/releases/v4.24/src/nspr-4.24.tar.gz | ||
"4.27": | ||
sha256: 6d495192b6ab00a3c28db053492cf794329f7c0351a5728db198111a1816e89b | ||
url: https://ftp.mozilla.org/pub/nspr/releases/v4.27/src/nspr-4.27.tar.gz | ||
"4.29": | ||
sha256: 22286bdb8059d74632cc7c2865c139e63953ecfb33bf4362ab58827e86e92582 | ||
url: https://ftp.mozilla.org/pub/nspr/releases/v4.29/src/nspr-4.29.tar.gz | ||
"4.32": | ||
sha256: bb6bf4f534b9559cf123dcdc6f9cd8167de950314a90a88b2a329c16836e7f6c | ||
url: https://ftp.mozilla.org/pub/nspr/releases/v4.32/src/nspr-4.32.tar.gz | ||
"4.27": | ||
url: "https://ftp.mozilla.org/pub/nspr/releases/v4.27/src/nspr-4.27.tar.gz" | ||
sha256: "6d495192b6ab00a3c28db053492cf794329f7c0351a5728db198111a1816e89b" | ||
"4.24": | ||
url: "https://ftp.mozilla.org/pub/nspr/releases/v4.24/src/nspr-4.24.tar.gz" | ||
sha256: "90a59a0df6a11528749647fe18401cc7e03881e3e63c309f8c520ce06dd413d0" |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project(test_package) | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
project(test_package C) | ||
|
||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | ||
conan_basic_setup() | ||
conan_basic_setup(TARGETS) | ||
|
||
find_package(nspr REQUIRED CONFIG) | ||
|
||
add_executable(${PROJECT_NAME} test_package.cpp) | ||
target_link_libraries(${PROJECT_NAME} ${CONAN_LIBS}) | ||
add_executable(${PROJECT_NAME} test_package.c) | ||
target_link_libraries(${PROJECT_NAME} PRIVATE nspr::nspr) |
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,26 @@ | ||
#include <nspr.h> | ||
|
||
#include <stdio.h> | ||
|
||
static int primordial(int argc, char *argv[]) { | ||
if (PR_Initialized() != PR_TRUE) { | ||
fprintf(stderr, "NSPR not initialized!\n"); | ||
return 1; | ||
} | ||
fprintf(stderr, "Inside primordial function\n"); | ||
return 0; | ||
} | ||
|
||
int main(int argc, char *argv[]) { | ||
int versionOk = PR_VersionCheck(PR_VERSION); | ||
if (versionOk == 0) { | ||
fprintf(stderr, "PR_VersionCheck() failed\n"); | ||
return 1; | ||
} | ||
printf(PR_NAME " version %s\n", PR_GetVersion()); | ||
PR_Initialize(primordial, argc, argv, 0); | ||
|
||
PR_ProcessExit(0); | ||
fprintf(stderr, "PR_ProcessExit failed\n"); | ||
return 1; | ||
} |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
versions: | ||
"4.24": | ||
folder: all | ||
"4.27": | ||
"4.32": | ||
folder: all | ||
"4.29": | ||
folder: all | ||
"4.32": | ||
"4.27": | ||
folder: all | ||
"4.24": | ||
folder: all |