Skip to content
This repository was archived by the owner on Sep 2, 2019. It is now read-only.

Commit 2ef3572

Browse files
committed
Initial Commit
0 parents  commit 2ef3572

File tree

15 files changed

+1535
-0
lines changed

15 files changed

+1535
-0
lines changed

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
**/build/*
2+
**/bin/*
3+
**/lib/*
4+
build/*
5+
bin/*
6+
lib/*
7+
*.user**
8+
*.aps
9+
*.pdb
10+
*.user
11+
dist/*
12+
*.7z

.gitmodules

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[submodule "external/jsoncpp"]
2+
path = external/jsoncpp
3+
url = https://github.com/open-source-parsers/jsoncpp.git
4+
ignore = dirty
5+
[submodule "external/imgui"]
6+
path = external/imgui
7+
url = https://github.com/ocornut/imgui.git
8+
[submodule "external/beast"]
9+
path = external/beast
10+
url = https://github.com/vinniefalco/Beast.git

CMakeLists.txt

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
cmake_minimum_required(VERSION 3.0.0)
2+
3+
project(ActWebSocketOverlay C CXX)
4+
5+
ADD_DEFINITIONS(
6+
-DBOOST_ALL_NO_LIB
7+
-D_CRT_SECURE_NO_WARNINGS
8+
-D_WIN32_WINNT=0x0601
9+
-DWIN32_LEAN_AND_MEAN
10+
-DUNICODE
11+
-D_UNICODE
12+
-DNOMINMAX
13+
)
14+
set(Boost_ADDITIONAL_VERSIONS
15+
"1.63" "1.63.0"
16+
"1.64" "1.64.0"
17+
${BOOST_ADDITIONAL_VERSION}
18+
)
19+
set(Boost_USE_STATIC_LIBS ON)
20+
set(Boost_USE_MULTITHREADED ON)
21+
set(Boost_USE_STATIC_RUNTIME OFF)
22+
##########################################################################################
23+
# boost build step
24+
##########################################################################################
25+
#
26+
# 1. download https://dl.bintray.com/boostorg/release/1.64.0/source/:boost_1_64_0.7z
27+
# 2. unzip
28+
# 3. bootstrap.bat
29+
# 4. b2 --stagedir=stage variant=debug,release address-model=32 threading=multi link=static runtime-link=shared --prefix=c:/boost32 install
30+
# 5. b2 --stagedir=stage64 variant=debug,release address-model=64 threading=multi link=static runtime-link=shared --prefix=c:/boost64 install
31+
32+
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
33+
set(address_model "64")
34+
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
35+
set(address_model "32")
36+
endif()
37+
38+
set(BOOST_ROOT "c:/boost${address_model}")
39+
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/lib/${address_model})
40+
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/lib/${address_model})
41+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/bin/${address_model})
42+
43+
find_package(Boost REQUIRED COMPONENTS system filesystem )
44+
45+
ADD_SUBDIRECTORY(external)
46+
ADD_SUBDIRECTORY(src)

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

build.bat

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@echo off
2+
set _ROOT=%CD%
3+
if not exist build\64 mkdir build\64
4+
pushd build\64
5+
cmake --build . --config Release
6+
popd
7+
8+
if not exist build\32 mkdir build\32
9+
pushd build\32
10+
cmake --build . --config Release
11+
popd
12+

configure.bat

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@echo off
2+
set _ROOT=%CD%
3+
if not exist build\64 mkdir build\64
4+
pushd build\64
5+
cmake -G "Visual Studio 14 2015 Win64" %_ROOT%
6+
popd
7+
8+
if not exist build\32 mkdir build\32
9+
pushd build\32
10+
cmake -G "Visual Studio 14 2015" %_ROOT%
11+
popd
12+

external/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
SET(JSONCPP_WITH_TESTS OFF CACHE BOOL "" FORCE)
2+
SET(JSONCPP_WITH_POST_BUILD_UNITTEST OFF CACHE BOOL "" FORCE)
3+
SET(JSONCPP_WITH_WARNING_AS_ERROR OFF CACHE BOOL "" FORCE)
4+
SET(JSONCPP_WITH_STRICT_ISO OFF CACHE BOOL "" FORCE)
5+
SET(JSONCPP_WITH_PKGCONFIG_SUPPORT "Generate and install .pc files" OFF CACHE BOOL "" FORCE)
6+
7+
ADD_SUBDIRECTORY(jsoncpp)

external/beast

Submodule beast added at f2d8255

external/imgui

Submodule imgui added at 43e6c46

external/jsoncpp

Submodule jsoncpp added at d7347a2

0 commit comments

Comments
 (0)