Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(json11) : fix the newest compile error #74

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 100 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
## General

# Compiled Object files
*.slo
*.lo
*.o
*.cuo
*.obj

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Compiled protocol buffers
*.pb.h
*.pb.cc
*_pb2.py

# Compiled python
*.pyc
*.pyd

# Compiled MATLAB
*.mex*

# IPython notebook checkpoints
.ipynb_checkpoints

# Editor temporaries
*.swn
*.swo
*.swp
*~

# Sublime Text settings
*.sublime-workspace
*.sublime-project

# Eclipse Project settings
*.*project
.settings

# QtCreator files
*.user

# PyCharm files
.idea

# Visual Studio Code files
.vscode

# OSX dir files
.DS_Store

## Caffe2

# build, distribute, and bins (+ python proto bindings)
build
build_host_protoc
build_android
build_ios
build_*
.build_debug/*
.build_release/*
distribute/*
*.testbin
*.bin
cmake_build
.cmake_build
gen
cmake-build-debug
.cmake-build-debug

# Bram
plsdontbreak

# Generated documentation
docs/_site
docs/gathered
_site
doxygen
docs/dev

# LevelDB files
*.sst
*.ldb
LOCK
LOG*
CURRENT
MANIFEST-*

# ctags
tags
67 changes: 67 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
cmake_minimum_required(VERSION 3.5)

PROJECT(hardseed)

SET(SRC_LIST ./src/main.cpp
./src/lib/self/TopicsListWebpage.cpp
./src/lib/self/AichengTopicsListWebpage.cpp
./src/lib/self/CaoliuTopicsListWebpage.cpp
./src/lib/self/TopicWebpage.cpp
./src/lib/self/AichengTopicWebpage.cpp
./src/lib/self/CaoliuTopicWebpage.cpp
./src/lib/self/SeedWebpage.cpp
./src/lib/self/JandownSeedWebpage.cpp
./src/lib/self/RmdownSeedWebpage.cpp
./src/lib/self/Aicheng.cpp
./src/lib/self/Caoliu.cpp
./src/lib/helper/Webpage.cpp
./src/lib/helper/Time.cpp
./src/lib/helper/CmdlineOption.cpp
./src/lib/helper/Misc.cpp
./src/lib/3rd/json11/json11.cpp)

# linux
#>>>>>>>>>>>>>>>>>>>>>>

## debug
#SET(CMAKE_CXX_COMPILER "clang++")
#SET(CMAKE_CXX_FLAGS "-std=c++11 -Werror -Weverything -Wno-documentation -Wno-disabled-macro-expansion -Wno-float-equal -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-global-constructors -Wno-exit-time-destructors -Wno-missing-prototypes -Wno-padded -Wno-old-style-cast -Wno-weak-vtables")
#SET(CMAKE_BUILD_TYPE debug)
#ADD_EXECUTABLE(main ${SRC_LIST})
#TARGET_LINK_LIBRARIES(main curl pthread)

# release
# SET(CMAKE_CXX_COMPILER "g++")
# SET(CMAKE_CXX_FLAGS "-std=c++11 -O3")
# SET(CMAKE_BUILD_TYPE release)
# ADD_EXECUTABLE(hardseed ${SRC_LIST})
# TARGET_LINK_LIBRARIES(hardseed curl pthread)
# INSTALL(PROGRAMS hardseed DESTINATION /usr/local/bin)

#<<<<<<<<<<<<<<<<<<<<<<


## cygwin
##>>>>>>>>>>>>>>>>>>>>>>

#SET(CMAKE_CXX_COMPILER "g++")
#SET(CMAKE_CXX_FLAGS "-std=c++11 -O3 -s -DCYGWIN")
#SET(CMAKE_BUILD_TYPE release)
#ADD_EXECUTABLE(hardseed ${SRC_LIST})
#target_link_libraries(hardseed /bin/cygcurl-4.dll)
#target_link_libraries(hardseed /lib/libiconv.a)

##<<<<<<<<<<<<<<<<<<<<<<


## osX
##>>>>>>>>>>>>>>>>>>>>>>

SET(CMAKE_CXX_COMPILER "g++")
SET(CMAKE_CXX_FLAGS "-std=c++11 -O3")
SET(CMAKE_BUILD_TYPE release)
ADD_EXECUTABLE(hardseed ${SRC_LIST})
TARGET_LINK_LIBRARIES(hardseed curl pthread iconv)
INSTALL(PROGRAMS build/hardseed DESTINATION /usr/local/bin)

##<<<<<<<<<<<<<<<<<<<<<<
57 changes: 0 additions & 57 deletions build/CMakeLists.txt

This file was deleted.

6 changes: 3 additions & 3 deletions config/portals_list.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"caoliu":"http://cl.bearhk.info/",
"aicheng":"http://www.ac168.info/bt/"
}
"caoliu": "http://www.t66y.com/",
"aicheng": "http://www.ac168.info/bt/"
}
Loading