mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-27 14:29:53 +00:00
Moved zerotier-root code to its own repo
This commit is contained in:
parent
0ab4e2f750
commit
b849e23536
@ -1,4 +1,4 @@
|
|||||||
cmake_minimum_required (VERSION 3.8)
|
cmake_minimum_required (VERSION 3.10)
|
||||||
|
|
||||||
if(${CMAKE_VERSION} VERSION_LESS 3.15)
|
if(${CMAKE_VERSION} VERSION_LESS 3.15)
|
||||||
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
|
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
|
||||||
@ -133,7 +133,6 @@ endif()
|
|||||||
add_subdirectory(node)
|
add_subdirectory(node)
|
||||||
add_subdirectory(controller)
|
add_subdirectory(controller)
|
||||||
add_subdirectory(osdep)
|
add_subdirectory(osdep)
|
||||||
add_subdirectory(root)
|
|
||||||
add_subdirectory(go/native)
|
add_subdirectory(go/native)
|
||||||
|
|
||||||
#if(WIN32)
|
#if(WIN32)
|
||||||
@ -150,8 +149,8 @@ set(
|
|||||||
)
|
)
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
${CMAKE_SOURCE_DIR}/version.h.in
|
${CMAKE_CURRENT_SOURCE_DIR}/version.h.in
|
||||||
${CMAKE_BINARY_DIR}/version.h
|
${CMAKE_CURRENT_BINARY_DIR}/version.h
|
||||||
)
|
)
|
||||||
|
|
||||||
#set(src
|
#set(src
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
cmake_minimum_required(VERSION 2.8)
|
|
||||||
project(zerotier-root)
|
|
||||||
|
|
||||||
if(WIN32)
|
|
||||||
add_definitions(-DNOMINMAX)
|
|
||||||
endif(WIN32)
|
|
||||||
|
|
||||||
add_executable(${PROJECT_NAME} root.cpp)
|
|
||||||
|
|
||||||
target_link_libraries(${PROJECT_NAME} zt_core zt_osdep pthread resolv jemalloc)
|
|
||||||
|
|
||||||
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
|
|
||||||
|
|
||||||
target_include_directories(${PROJECT_NAME} PRIVATE
|
|
||||||
${CMAKE_SOURCE_DIR}/node
|
|
||||||
${CMAKE_SOURCE_DIR}/osdep
|
|
||||||
${CMAKE_SOURCE_DIR}/ext/json
|
|
||||||
${CMAKE_SOURCE_DIR}/ext/cpp-httplib
|
|
||||||
)
|
|
@ -1,55 +0,0 @@
|
|||||||
#ifndef ZT_ROOT_GEOIP_HTML_H
|
|
||||||
#define ZT_ROOT_GEOIP_HTML_H
|
|
||||||
|
|
||||||
#define ZT_GEOIP_HTML_HEAD \
|
|
||||||
"<!DOCTYPE html>\n" \
|
|
||||||
"<html>\n" \
|
|
||||||
" <head>\n" \
|
|
||||||
" <meta name=\"viewport\" content=\"initial-scale=1.0, user-scalable=no\">\n" \
|
|
||||||
" <meta charset=\"utf-8\">\n" \
|
|
||||||
" <meta name=\"referrer\" content=\"no-referrer\">\n" \
|
|
||||||
" <title>GeoIP Map</title>\n" \
|
|
||||||
" <style>\n" \
|
|
||||||
" #map {\n" \
|
|
||||||
" height: 100%;\n" \
|
|
||||||
" }\n" \
|
|
||||||
" html, body {\n" \
|
|
||||||
" height: 100%;\n" \
|
|
||||||
" width: 100%;\n" \
|
|
||||||
" margin: 0;\n" \
|
|
||||||
" padding: 0;\n" \
|
|
||||||
" }\n" \
|
|
||||||
" </style>\n" \
|
|
||||||
" </head>\n" \
|
|
||||||
" <body>\n" \
|
|
||||||
" <div id=\"map\"></div>\n" \
|
|
||||||
" <script>\n" \
|
|
||||||
" function initMap() {\n" \
|
|
||||||
" var map = new google.maps.Map(document.getElementById('map'), {\n" \
|
|
||||||
" center: {lat: 0, lng: 0},\n" \
|
|
||||||
" zoom: 3\n" \
|
|
||||||
" });\n" \
|
|
||||||
" var markers = locations.map(function(location,i) {\n" \
|
|
||||||
" var lbl = location._l||\"\";\n" \
|
|
||||||
" delete location._l;\n" \
|
|
||||||
" return new google.maps.Marker({\n" \
|
|
||||||
" position: location,\n" \
|
|
||||||
" label: lbl\n" \
|
|
||||||
" });\n" \
|
|
||||||
" });\n" \
|
|
||||||
" var markerCluster = new MarkerClusterer(map,markers,{imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m',maxZoom:13,minimumClusterSize:2,zoomOnClick:true});\n" \
|
|
||||||
" }\n" \
|
|
||||||
" var locations = ["
|
|
||||||
|
|
||||||
#define ZT_GEOIP_HTML_TAIL \
|
|
||||||
"];\n" \
|
|
||||||
" </script>\n" \
|
|
||||||
" <script src=\"https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/markerclusterer.js\">\n" \
|
|
||||||
" </script>\n" \
|
|
||||||
" <script async defer\n" \
|
|
||||||
" src=\"https://maps.googleapis.com/maps/api/js?key=%s&callback=initMap\">\n" \
|
|
||||||
" </script>\n" \
|
|
||||||
" </body>\n" \
|
|
||||||
"</html>"
|
|
||||||
|
|
||||||
#endif
|
|
1493
root/root.cpp
1493
root/root.cpp
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user