blob: 286d19597c7d45efaac22df30d6c7c2e0f87e6fd [file] [log] [blame]
{
"name": "Flipper-Glog",
"version": "0.3.6",
"license": {
"type": "Google",
"file": "COPYING"
},
"homepage": "https://github.com/google/glog",
"summary": "Google logging module",
"authors": "Google",
"prepare_command": "#!/bin/bash\n# Copyright (c) Facebook, Inc. and its affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\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/* Add in so we have Apple Target Conditionals */\n#ifdef __APPLE__\n#include <TargetConditionals.h>\n#include <Availability.h>\n#endif\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/* 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\n\n# Prepare exported header include\nEXPORTED_INCLUDE_DIR=\"exported/glog\"\nmkdir -p exported/glog\ncp -f src/glog/log_severity.h \"$EXPORTED_INCLUDE_DIR/\"\ncp -f src/glog/logging.h \"$EXPORTED_INCLUDE_DIR/\"\ncp -f src/glog/raw_logging.h \"$EXPORTED_INCLUDE_DIR/\"\ncp -f src/glog/stl_logging.h \"$EXPORTED_INCLUDE_DIR/\"\ncp -f src/glog/vlog_is_on.h \"$EXPORTED_INCLUDE_DIR/\"",
"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++",
"compiler_flags": "-Wno-shorten-64-to-32",
"pod_target_xcconfig": {
"USE_HEADERMAP": "NO",
"HEADER_SEARCH_PATHS": "$(PODS_TARGET_SRCROOT)/src"
},
"platforms": {
"ios": "8.0",
"tvos": "8.0"
}
}