{ "name": "glog", "version": "0.3.5", "license": { "type": "Google", "file": "COPYING" }, "homepage": "https://github.com/google/glog", "summary": "Google logging module", "authors": "Google", "prepare_command": "#!/bin/bash\nset -e\n\nPLATFORM_NAME=\"${PLATFORM_NAME:-iphoneos}\"\nCURRENT_ARCH=\"${CURRENT_ARCH}\"\n\nif [ -z \"$CURRENT_ARCH\" ] || [ \"$CURRENT_ARCH\" == \"undefined_arch\" ]; then\n # Xcode 10 beta sets CURRENT_ARCH to \"undefined_arch\", this leads to incorrect linker arg.\n # it's better to rely on platform name as fallback because architecture differs between simulator and device\n\n if [[ \"$PLATFORM_NAME\" == *\"simulator\"* ]]; then\n CURRENT_ARCH=\"x86_64\"\n else \n CURRENT_ARCH=\"armv7\"\n fi\nfi\n\nexport CC=\"$(xcrun -find -sdk $PLATFORM_NAME cc) -arch $CURRENT_ARCH -isysroot $(xcrun -sdk $PLATFORM_NAME --show-sdk-path)\"\nexport CXX=\"$CC\"\n\n# Remove automake symlink if it exists\nif [ -h \"test-driver\" ]; then\n rm test-driver\nfi\n\n./configure --host arm-apple-darwin\n\n# Fix build for tvOS\ncat << EOF >> src/config.h\n\n/* Add in so we have Apple Target Conditionals */\n#ifdef __APPLE__\n#include \n#include \n#endif\n\n/* Special configuration for AppleTVOS */\n#if TARGET_OS_TV\n#undef HAVE_SYSCALL_H\n#undef HAVE_SYS_SYSCALL_H\n#undef OS_MACOSX\n#endif\n\n/* Special configuration for ucontext */\n#undef HAVE_UCONTEXT_H\n#undef PC_FROM_UCONTEXT\n#if defined(__x86_64__)\n#define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip\n#elif defined(__i386__)\n#define PC_FROM_UCONTEXT uc_mcontext->__ss.__eip\n#endif\nEOF", "source": { "git": "https://github.com/google/glog.git", "tag": "v0.3.5" }, "module_name": "glog", "header_dir": "glog", "source_files": [ "src/glog/*.h", "src/demangle.cc", "src/logging.cc", "src/raw_logging.cc", "src/signalhandler.cc", "src/symbolize.cc", "src/utilities.cc", "src/vlog_is_on.cc" ], "preserve_paths": [ "src/*.h", "src/base/*.h" ], "exclude_files": "src/windows/**/*", "libraries": "stdc++", "pod_target_xcconfig": { "USE_HEADERMAP": "NO", "HEADER_SEARCH_PATHS": "$(PODS_TARGET_SRCROOT)/src" }, "platforms": { "ios": "9.0", "tvos": "9.2" } }