{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1757367786,
"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":"204de239d7b211d197375fafc81e743d",
"oid":{ "oid": "b57c5204954f94651d6d18def806fc5666d99e9d", "alias": []},"blobname": "minimal-examples/http-server/minimal-http-server-dynamic/CMakeLists.txt", "blob": "cmake_minimum_required(VERSION 2.8)\ninclude(CheckCSourceCompiles)\n\nset(SAMP lws-minimal-http-server-dynamic)\nset(SRCS minimal-http-server-dynamic.c)\n\n# If we are being built as part of lws, confirm current build config supports\n# reqconfig, else skip building ourselves.\n#\n# If we are being built externally, confirm installed lws was configured to\n# support reqconfig, else error out with a helpful message about the problem.\n#\nMACRO(require_lws_config reqconfig _val result)\n\n\tif (DEFINED ${reqconfig})\n\tif (${reqconfig})\n\t\tset (rq 1)\n\telse()\n\t\tset (rq 0)\n\tendif()\n\telse()\n\t\tset(rq 0)\n\tendif()\n\n\tif (${_val} EQUAL ${rq})\n\t\tset(SAME 1)\n\telse()\n\t\tset(SAME 0)\n\tendif()\n\n\tif (LWS_WITH_MINIMAL_EXAMPLES AND NOT ${SAME})\n\t\tif (${_val})\n\t\t\tmessage(\u0022${SAMP}: skipping as lws being built without ${reqconfig}\u0022)\n\t\telse()\n\t\t\tmessage(\u0022${SAMP}: skipping as lws built with ${reqconfig}\u0022)\n\t\tendif()\n\t\tset(${result} 0)\n\telse()\n\t\tif (LWS_WITH_MINIMAL_EXAMPLES)\n\t\t\tset(MET ${SAME})\n\t\telse()\n\t\t\tCHECK_C_SOURCE_COMPILES(\u0022#include \u003clibwebsockets.h\u003e\u005cnint main(void) {\u005cn#if defined(${reqconfig})\u005cn return 0;\u005cn#else\u005cn fail;\u005cn#endif\u005cn return 0;\u005cn}\u005cn\u0022 HAS_${reqconfig})\n\t\t\tif (NOT DEFINED HAS_${reqconfig} OR NOT HAS_${reqconfig})\n\t\t\t\tset(HAS_${reqconfig} 0)\n\t\t\telse()\n\t\t\t\tset(HAS_${reqconfig} 1)\n\t\t\tendif()\n\t\t\tif ((HAS_${reqconfig} AND ${_val}) OR (NOT HAS_${reqconfig} AND NOT ${_val}))\n\t\t\t\tset(MET 1)\n\t\t\telse()\n\t\t\t\tset(MET 0)\n\t\t\tendif()\n\t\tendif()\n\t\tif (NOT MET)\n\t\t\tif (${_val})\n\t\t\t\tmessage(FATAL_ERROR \u0022This project requires lws must have been configured with ${reqconfig}\u0022)\n\t\t\telse()\n\t\t\t\tmessage(FATAL_ERROR \u0022Lws configuration of ${reqconfig} is incompatible with this project\u0022)\n\t\t\tendif()\n\t\tendif()\n\t\n\tendif()\nENDMACRO()\n\nset(requirements 1)\nrequire_lws_config(LWS_ROLE_H1 1 requirements)\nrequire_lws_config(LWS_WITHOUT_SERVER 0 requirements)\n\nif (requirements)\n\tadd_executable(${SAMP} ${SRCS})\n\n\tif (websockets_shared)\n\t\ttarget_link_libraries(${SAMP} websockets_shared)\n\t\tadd_dependencies(${SAMP} websockets_shared)\n\telse()\n\t\ttarget_link_libraries(${SAMP} websockets)\n\tendif()\nendif()\n","s":{"c":1757367786,"u": 613}}
],"g": 2622,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 1, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}