Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1713471004, "reponame":"libwebsockets", "desc":"libwebsockets lightweight C networking library", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets", "f":3, "items": [ {"schema":"libjg2-1", "cid":"b4b679f8d41d5868649e40769c893ef2", "oid":{ "oid": "008b35516678fb986d9f57bef8401422869d410a", "alias": []},"blobname": "contrib/cross-atmel.cmake", "blob": "#\n# CMake Toolchain file for crosscompiling on Atmel Arm products\n#\n# To build without tls\n#\n# cd build/\n# cmake .. -DCMAKE_INSTALL_PREFIX:PATH\u003d/opt/linkit/cross-root \u005c\n# -DCMAKE_TOOLCHAIN_FILE\u003d../contrib/cross-atmel.cmake \u005c\n# -DLWS_PLAT_FREERTOS\u003d1 \u005c\n# -DLWS_WITH_ZLIB\u003d0 \u005c\n# -DLWS_WITHOUT_EXTENSIONS\u003d1 \u005c\n# -DLWS_WITH_ZIP_FOPS\u003d0 \u005c\n# -DLWS_WITH_HTTP_STREAM_COMPRESSION\u003d0 \u005c\n# -DLWS_WITH_MBEDTLS\u003d0 \u005c\n# -DLWS_WITH_SSL\u003d0\n#\n\n# I had to edit /opt/xdk-asf-3.48.0/thirdparty/lwip/lwip-port-1.4.1-dev/sam/include/arch/cc.h\n# to comment out #define LWIP_PROVIDE_ERRNO\n\n# if your sdk lives somewhere else, this is the only place that should need changing\n\nset(CROSS_BASE /opt/arm-none-eabi)\nset(SDK_BASE /opt/xdk-asf-3.48.0)\nset(CROSS_PATH ${CROSS_BASE}/bin/arm-none-eabi)\n\nset(LWIP_VER 1.4.1-dev)\nset(FREERTOS_VER 10.0.0)\n\n#\n# Target operating system name.\nset(CMAKE_SYSTEM_NAME Generic)\n\n# Name of C compiler.\nset(CMAKE_C_COMPILER \u0022${CROSS_PATH}-gcc\u0022)\n\n#\n# cmake believes we should link a NOP test program OK, but since we're\n# baremetal, that's not true in our case. It tries to build this test\n# with the cross compiler, but with no args on it, and it fails.\n# So disable this test for this toolchain (we'll find out soon enough\n# if we actually can't compile anything)\n\nset(CMAKE_C_COMPILER_WORKS 1)\nset(CMAKE_CXX_COMPILER_WORKS 1)\n\n#\n# similarly we're building a .a like this, we can't actually build\n# complete test programs to probe api availability... so force some\n# key ones\n\nset(LWS_HAVE_mbedtls_ssl_conf_alpn_protocols 1)\nset(LWS_HAVE_mbedtls_ssl_conf_alpn_protocols 1)\nset(LWS_HAVE_mbedtls_ssl_get_alpn_protocol 1)\nset(LWS_HAVE_mbedtls_ssl_conf_sni 1)\nset(LWS_HAVE_mbedtls_ssl_set_hs_ca_chain 1)\nset(LWS_HAVE_mbedtls_ssl_set_hs_own_cert 1)\nset(LWS_HAVE_mbedtls_ssl_set_hs_authmode 1)\nset(LWS_HAVE_mbedtls_net_init 1)\nset(LWS_HAVE_mbedtls_md_setup 1) # not on xenial 2.2\nset(LWS_HAVE_mbedtls_rsa_complete 1) # not on xenial 2.2\nset(LWS_HAVE_mbedtls_internal_aes_encrypt 1)\n#\n# Different build system distros set release optimization level to different\n# things according to their local policy, eg, Fedora is -O2 and Ubuntu is -O3\n# here. Actually the build system's local policy is completely unrelated to\n# our desire for cross-build release optimization policy for code built to run\n# on a completely different target than the build system itself.\n#\n# Since this goes last on the compiler commandline we have to override it to a\n# sane value for cross-build here. Notice some gcc versions enable broken\n# optimizations with -O3.\n#\nif (CMAKE_BUILD_TYPE MATCHES RELEASE OR CMAKE_BUILD_TYPE MATCHES Release OR CMAKE_BUILD_TYPE MATCHES release)\n\tset(CMAKE_C_FLAGS_RELEASE \u0022${CMAKE_C_FLAGS_RELEASE} -O2\u0022)\n\tset(CMAKE_CXX_FLAGS_RELEASE \u0022${CMAKE_CXX_FLAGS_RELEASE} -O2\u0022)\nendif()\n\nset(PLAT_ARCH ARM_CM4F)\nset(PLAT_ARCH_CMSIS sam4e)\nset(PLAT_SOC __SAM4E16E__)\nset(PLAT_BOARD SAM4E_XPLAINED_PRO)\n\nset(CF_LWIP \u0022${CF_LWIP} -I${SDK_BASE}/thirdparty/lwip/lwip-${LWIP_VER}/src/include/lwip\u0022)\nset(CF_LWIP \u0022${CF_LWIP} -I${SDK_BASE}/thirdparty/lwip/lwip-${LWIP_VER}/src/include/posix\u0022)\nset(CF_LWIP \u0022${CF_LWIP} -I${SDK_BASE}/thirdparty/lwip/lwip-${LWIP_VER}/src/include\u0022)\nset(CF_LWIP \u0022${CF_LWIP} -I${SDK_BASE}/thirdparty/lwip/lwip-${LWIP_VER}/src/module_config\u0022)\nset(CF_LWIP \u0022${CF_LWIP} -I${SDK_BASE}/thirdparty/lwip/lwip-port-${LWIP_VER}/sam/include\u0022)\nset(CF_LWIP \u0022${CF_LWIP} -I${SDK_BASE}/thirdparty/lwip/lwip-${LWIP_VER}/src/include/ipv4\u0022)\n\nset(CF_FREERTOS \u0022${CF_FREERTOS} -I${SDK_BASE}/thirdparty/freertos/freertos-${FREERTOS_VER}/Source/include\u0022)\nset(CF_FREERTOS \u0022${CF_FREERTOS} -I${SDK_BASE}/thirdparty/freertos/freertos-${FREERTOS_VER}/module_config\u0022)\nset(CF_FREERTOS \u0022${CF_FREERTOS} -I${SDK_BASE}/thirdparty/freertos/freertos-${FREERTOS_VER}/Source/portable/GCC/${PLAT_ARCH}\u0022)\n\nset(CF_SDK_GLUE \u0022${CF_SDK_GLUE} -I${SDK_BASE}/common/boards\u0022)\nset(CF_SDK_GLUE \u0022${CF_SDK_GLUE} -I${SDK_BASE}/common/utils\u0022)\nset(CF_SDK_GLUE \u0022${CF_SDK_GLUE} -I${SDK_BASE}/sam/utils/\u0022)\nset(CF_SDK_GLUE \u0022${CF_SDK_GLUE} -I${SDK_BASE}/sam/utils/preprocessor\u0022)\nset(CF_SDK_GLUE \u0022${CF_SDK_GLUE} -I${SDK_BASE}/sam/utils/header_files\u0022)\nset(CF_SDK_GLUE \u0022${CF_SDK_GLUE} -I${SDK_BASE}/sam/boards\u0022)\nset(CF_SDK_GLUE \u0022${CF_SDK_GLUE} -I${SDK_BASE}/sam/utils/cmsis/${PLAT_ARCH_CMSIS}/source/templates\u0022)\nset(CF_SDK_GLUE \u0022${CF_SDK_GLUE} -I${SDK_BASE}/sam/utils/cmsis/${PLAT_ARCH_CMSIS}/include\u0022)\nset(CF_SDK_GLUE \u0022${CF_SDK_GLUE} -I${SDK_BASE}/thirdparty/CMSIS/Include\u0022)\nset(CF_SDK_GLUE \u0022${CF_SDK_GLUE} -I${SDK_BASE}/common/utils/osprintf\u0022)\n\nset(CMAKE_C_FLAGS \u0022${CMAKE_C_FLAGS} -lnosys -nostartfiles ${CF_LWIP} ${CF_FREERTOS} ${CF_SDK_GLUE} -DBOARD\u003d${PLAT_BOARD} -D${PLAT_SOC} -DLWIP_TIMEVAL_PRIVATE\u003d0 -DLWS_AMAZON_RTOS\u003d1 -DLWIP_SOCKET_OFFSET\u003d0 -DLWIP_COMPAT_SOCKETS -DLWIP_DNS\u003d1 -DLWIP_SOCKETS\u003d1 \u0022 CACHE STRING \u0022\u0022 FORCE)\n\n# Where to look for the target environment. (More paths can be added here)\nset(CMAKE_FIND_ROOT_PATH \u0022${CROSS_PATH}\u0022)\n\n# Adjust the default behavior of the FIND_XXX() commands:\n# search programs in the host environment only.\nset(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)\n\n# Search headers and libraries in the target environment only.\nset(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)\nset(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)\n\n","s":{"c":1713471004,"u": 256}} ],"g": 1038,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 1, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}