testing something for macos (do not use this CI build)

pull/1291/head
AlexandreRouma 2024-01-19 20:53:25 +01:00
rodzic 5e299d9d23
commit 5e195a0d43
2 zmienionych plików z 27 dodań i 1 usunięć

Wyświetl plik

@ -10,6 +10,7 @@ bundle_is_not_to_be_installed() {
# NOTE: Customize this list to exclude libraries you don't want copied into the bundle
if [ "$1" = "libsdrpp_core.dylib" ]; then echo 1; fi
if [ "$1" = "OpenGL" ]; then echo 1; fi
if [ "$1" = "libc++.1.dylib" ]; then echo 1; fi
if [ "$1" = "libSystem.B.dylib" ]; then echo 1; fi
if [ "$1" = "Cocoa" ]; then echo 1; fi
if [ "$1" = "IOKit" ]; then echo 1; fi
@ -21,6 +22,7 @@ bundle_is_not_to_be_installed() {
if [ "$1" = "CoreAudio" ]; then echo 1; fi
if [ "$1" = "AudioToolbox" ]; then echo 1; fi
if [ "$1" = "AudioUnit" ]; then echo 1; fi
if [ "$1" = "libobjc.A.dylib" ]; then echo 1; fi
if [ "$1" = "CFNetwork" ]; then echo 1; fi
if [ "$1" = "SystemConfiguration" ]; then echo 1; fi
if [ "$1" = "Security" ]; then echo 1; fi

Wyświetl plik

@ -1,6 +1,30 @@
#include <core.h>
#include <stdio.h>
#include <unistd.h>
extern char **environ;
int main(int argc, char* argv[], char* envp[]) {
FILE* dump = fopen("/Users/ryzerth/dump.txt", "wb");
char buf[1024];
fprintf(dump, "Working directory: %s\n\n", getcwd(buf, 1023));
fprintf(dump, "Arguments:\n");
fprintf(dump, "----------\n");
for (int i = 0; i < argc; i++) {
fprintf(dump, "%d: '%s'\n", i, argv[i]);
}
fprintf(dump, "\n");
fprintf(dump, "Environment Variables:\n");
fprintf(dump, "----------\n");
for (char** env = environ; *env; env++) {
fprintf(dump, "%s\n", *env);
}
fprintf(dump, "\n");
fclose(dump);
int main(int argc, char* argv[]) {
return sdrpp_main(argc, argv);
}