File tree Expand file tree Collapse file tree 7 files changed +35
-8
lines changed
Functional/http/utilities Expand file tree Collapse file tree 7 files changed +35
-8
lines changed Original file line number Diff line number Diff line change @@ -82,12 +82,14 @@ export BOOST_SYSTEM=boost_system
82
82
export BOOST_THREAD =boost_thread
83
83
export BOOST_LOCALE =boost_locale
84
84
export BOOST_REGEX =boost_regex
85
+ export BOOST_FILE_SYSTEM =boost_filesystem
85
86
endif
86
87
ifeq ($(UNAME ) ,APPLE)
87
88
export BOOST_SYSTEM =boost_system-mt
88
89
export BOOST_THREAD =boost_thread-mt
89
90
export BOOST_LOCALE =boost_locale-mt
90
91
export BOOST_REGEX =boost_regex-mt
92
+ export BOOST_FILE_SYSTEM =boost_filesystem-mt
91
93
endif
92
94
93
95
tests : src
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ SOURCES = \
23
23
ifeq ($(UNAME ) ,APPLE)
24
24
SOURCES += pplx/apple/pplxapple.cpp
25
25
else
26
- SOURCES += pplx/apple /pplxlinux.cpp
26
+ SOURCES += pplx/linux /pplxlinux.cpp
27
27
endif
28
28
29
29
@@ -86,11 +86,17 @@ PKGCONFIG_CFLAGS = $(shell pkg-config libxml++-2.6 --cflags)
86
86
PKGCONFIG_LIBS = $(shell pkg-config libxml++-2.6 --libs) $(shell pkg-config libssl --libs)
87
87
endif
88
88
89
+ ifeq ($(UNAME ) ,APPLE)
90
+ PLATFORM_FLAGS = -framework CoreFoundation
91
+ endif
92
+ ifeq ($(UNAME ) ,LINUX)
93
+ PLATFORM_FLAGS = -pthread
94
+ endif
95
+
89
96
# -fpch-deps -MMD not useful with a single monolithic PCH
90
97
91
98
CXXFLAGS = -fPIC -std=c++11 $(STRICT_BASE_CXXFLAGS ) -I../include -I./pch $(WARNINGS ) $(PKGCONFIG_CFLAGS )
92
- # Use "mt" version of boost for Apple, and no-mt for Linux
93
- LIBS = $(PKGCONFIG_LIBS ) -framework CoreFoundation -l$(BOOST_SYSTEM ) -l$(BOOST_THREAD ) -l$(BOOST_LOCALE ) -l$(BOOST_REGEX ) -lstdc++ -lm # these are explicit for clang
99
+ LIBS = $(PKGCONFIG_LIBS ) $(PLATFORM_FLAGS ) -l$(BOOST_SYSTEM ) -l$(BOOST_THREAD ) -l$(BOOST_LOCALE ) -l$(BOOST_REGEX ) -lstdc++ -lm # these are explicit for clang
94
100
LDFLAGS = $(BASE_LDFLAGS )
95
101
96
102
ifeq ($(OUTPUT_DIR ) ,)
Original file line number Diff line number Diff line change @@ -519,6 +519,7 @@ bool json::value::operator==(const json::value &other) const
519
519
case Array:
520
520
return static_cast <const json::details::_Array*>(this ->m_value .get ())->is_equal (static_cast <const json::details::_Array*>(other.m_value .get ()));
521
521
}
522
+ UNREACHABLE;
522
523
}
523
524
524
525
web::json::value& web::json::value::operator [] (const utility::string_t &key)
Original file line number Diff line number Diff line change 1
1
CXXFLAGS =$(LAX_BASE_CXXFLAGS ) -I../../../include/ -I../UnitTestpp/
2
2
LDFLAGS =-L$(OUTPUT_DIR )
3
- LDLIBS =-l$(BOOST_SYSTEM ) -lboost_filesystem-mt -lunittestpp -ldl
3
+ LDLIBS =-l$(BOOST_SYSTEM ) -l $( BOOST_FILE_SYSTEM ) -lunittestpp -ldl
4
4
5
5
.PHONY : all
6
6
Original file line number Diff line number Diff line change 1
- CXXFLAGS += -g -Wall -Wno-unknown-pragmas -W -Winline -ansi -I. -stdlib=libc++ -std=c++11 -fPIC -I$(CASABLANCA_INCLUDE_DIR )
1
+ CXXFLAGS += -g -Wall -Wno-unknown-pragmas -W -Winline -ansi -I. -std=c++11 -fPIC -I$(CASABLANCA_INCLUDE_DIR )
2
+
3
+ ifeq ($(UNAME ) ,APPLE)
4
+ CXXFLAGS += -stdlib=libc++
5
+ endif
6
+
2
7
# LDFLAGS ?=
3
8
SED = sed
4
9
MV = mv
@@ -72,7 +77,7 @@ all: $(lib)
72
77
73
78
$(lib ) : $(objects )
74
79
@echo Creating $(lib ) library...
75
- @$(CXX ) -stdlib=libc++ -shared -o $(lib ) $(objects ) -lstdc++ -lm
80
+ @$(CXX ) $( CXXFLAGS ) -shared -o $(lib ) $(objects ) -lstdc++ -lm
76
81
77
82
$(test ) : $(lib ) $(test_objects )
78
83
@mkdir -p bin/win32_gcc_static_debug
Original file line number Diff line number Diff line change 1
- CXXFLAGS =$(LAX_BASE_CXXFLAGS ) -I../../../include/ -I../../Common/UnitTestpp/ -include ../../../include/compat/apple_compat.h -L"$(OUTPUT_DIR ) " -fPIC -Iinclude
1
+ CXXFLAGS =$(LAX_BASE_CXXFLAGS ) -I../../../include/ -I../../Common/UnitTestpp/ -L"$(OUTPUT_DIR ) " -fPIC -Iinclude
2
+
3
+ ifeq ($(UNAME ) ,APPLE)
4
+ CXXFLAGS += -include ../../../include/compat/apple_compat.h
5
+ else
6
+ CXXFLAGS += -include ../../../include/compat/linux_compat.h
7
+ endif
2
8
3
9
LDLIBS =-lcasablanca -lunittestpp -l$(BOOST_SYSTEM ) -l$(BOOST_THREAD ) -lpthread -lstdc++
4
10
Original file line number Diff line number Diff line change 1
- CXXFLAGS =$(LAX_BASE_CXXFLAGS ) -I. -I$(CASABLANCA_INCLUDE_DIR ) -I$(CASABLANCA_TESTS_DIR ) /Common/UnitTestpp/ -I$(CASABLANCA_TESTS_DIR ) /Common/utilities/include -Iinclude -include compat/apple_compat.h
1
+ CXXFLAGS =$(LAX_BASE_CXXFLAGS ) -I. -I$(CASABLANCA_INCLUDE_DIR ) -I$(CASABLANCA_TESTS_DIR ) /Common/UnitTestpp/ -I$(CASABLANCA_TESTS_DIR ) /Common/utilities/include -Iinclude
2
+
3
+ ifeq ($(UNAME ) ,APPLE)
4
+ CXXFLAGS += -include compat/apple_compat.h
5
+ else
6
+ CXXFLAGS += -include compat/linux_compat.h
7
+ endif
8
+
2
9
LDFLAGS =-L"$(OUTPUT_DIR ) " $(BASE_LDFLAGS )
3
10
LDLIBS =-lcasablanca -lunittestpp -l$(BOOST_SYSTEM ) -l$(BOOST_THREAD ) -l$(BOOST_LOCALE ) -lpthread -lstdc++
4
11
You can’t perform that action at this time.
0 commit comments