Skip to content

Commit

Permalink
TS-2082: remove STANDALONE_IOCORE defines
Browse files Browse the repository at this point in the history
  • Loading branch information
mingzym committed Dec 7, 2013
1 parent d6ab748 commit 51ce9ae
Show file tree
Hide file tree
Showing 15 changed files with 7 additions and 116 deletions.
6 changes: 2 additions & 4 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ export CCACHE_BASEDIR

# proxy/api/ts has to be built first, since so much of libraries and "core
# depends on the generates ts/ts.h include file.
if STANDALONE_IOCORE
SUBDIRS = proxy/api/ts iocore lib proxy/hdrs proxy/shared mgmt proxy plugins cmd tools example
else

SUBDIRS = proxy/api/ts iocore lib proxy/hdrs proxy/shared mgmt proxy rc doc plugins cmd tools example
endif


DIST_BUILD_USER=`id -nu`
DIST_BUILD_USER_GROUP=`id -ng`
Expand Down
27 changes: 3 additions & 24 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -228,30 +228,9 @@ AC_MSG_RESULT([$enable_micro])
AS_IF([test "x$enable_micro" = "xyes"], [is_micro_build=1], [is_micro_build=0])
AC_SUBST(is_micro_build)

#
# Standalone iocore
#
AC_MSG_CHECKING([whether to build a standalone iocore])
AC_ARG_ENABLE([standalone-iocore],
[AS_HELP_STRING([--enable-standalone-iocore],[build just standalone iocore])],
[],
[enable_standalone_iocore=no]
)
AC_MSG_RESULT([$enable_standalone_iocore])
TS_ARG_ENABLE_VAR([has],[standalone-iocore])
AC_SUBST(has_standalone_iocore)
AS_IF([test 0 -ne $has_standalone_iocore],
[AC_SUBST([IOCORE_MODULARIZED_DEFS],[""])
AC_SUBST([ink_with_modules_def],["-DREC_BUILD_STAND_ALONE"])
AC_SUBST([ink_with_modules_local],[""])
AC_SUBST([ink_with_modules_process],[""])
],
[AC_SUBST([ink_with_modules_def],["-DREC_BUILD_MGMT"])
AC_SUBST([ink_with_modules_local],["-DLOCAL_MANAGER"])
AC_SUBST([ink_with_modules_process],["-DPROCESS_MANAGER"])
]
)
AM_CONDITIONAL([STANDALONE_IOCORE], [test 0 -ne $has_standalone_iocore])
AC_SUBST([ink_with_modules_def],["-DREC_BUILD_MGMT"])
AC_SUBST([ink_with_modules_local],["-DLOCAL_MANAGER"])
AC_SUBST([ink_with_modules_process],["-DPROCESS_MANAGER"])

#
# Force some static linkage (for testing / development only)
Expand Down
7 changes: 1 addition & 6 deletions iocore/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

if STANDALONE_IOCORE
SUBDIRS = eventsystem net aio dns hostdb utils cache
else
SUBDIRS = eventsystem net aio dns hostdb utils cache cluster
endif

SUBDIRS = eventsystem net aio dns hostdb utils cache cluster
1 change: 0 additions & 1 deletion iocore/aio/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/lib/records \
-I$(top_srcdir)/lib/ts

DEFS += @IOCORE_MODULARIZED_DEFS@
TESTS = test_AIO.sample

noinst_LIBRARIES = libinkaio.a
Expand Down
15 changes: 0 additions & 15 deletions iocore/cache/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

if STANDALONE_IOCORE
AM_CPPFLAGS = \
$(iocore_include_dirs) \
-I$(top_srcdir)/mgmt \
-I$(top_srcdir)/mgmt/utils \
-I$(top_srcdir)/lib \
-I$(top_srcdir)/lib/records \
-I$(top_srcdir)/lib/ts

ADD_SRC =
else
AM_CPPFLAGS = \
$(iocore_include_dirs) \
-I$(top_srcdir)/lib \
Expand All @@ -48,10 +37,6 @@ if BUILD_TESTS
ADD_SRC += CacheTest.cc P_CacheTest.h
endif

endif

DEFS += @IOCORE_MODULARIZED_DEFS@

noinst_LIBRARIES = libinkcache.a

libinkcache_a_SOURCES = \
Expand Down
2 changes: 0 additions & 2 deletions iocore/cluster/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/mgmt/preparse \
-I$(top_srcdir)/mgmt/utils

DEFS += @IOCORE_MODULARIZED_DEFS@

noinst_LIBRARIES = libinkcluster.a

libinkcluster_a_SOURCES = \
Expand Down
2 changes: 0 additions & 2 deletions iocore/dns/DNS.cc
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,10 @@ DNSProcessor::start(int, size_t stacksize) {

dns_failover_try_period = dns_timeout + 1; // Modify the "default" accordingly

#ifndef STANDALONE_IOCORE
if (SplitDNSConfig::gsplit_dns_enabled) {
//reconfigure after threads start
SplitDNSConfig::reconfigure();
}
#endif

// Setup the default DNSHandler, it's used both by normal DNS, and SplitDNS (for PTR lookups etc.)
dns_init();
Expand Down
13 changes: 0 additions & 13 deletions iocore/dns/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

if STANDALONE_IOCORE
AM_CPPFLAGS = \
$(iocore_include_dirs) \
-I. \
-I$(top_srcdir)/mgmt \
-I$(top_srcdir)/mgmt/utils \
-I$(top_srcdir)/lib \
-I$(top_srcdir)/lib/records \
-I$(top_srcdir)/lib/ts
else
AM_CPPFLAGS = \
$(iocore_include_dirs) \
-I$(top_srcdir)/lib \
Expand All @@ -37,9 +27,6 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/mgmt \
-I$(top_srcdir)/mgmt/utils \
-I$(top_srcdir)/mgmt/preparse
endif

DEFS += @IOCORE_MODULARIZED_DEFS@

noinst_LIBRARIES = libinkdns.a

Expand Down
1 change: 0 additions & 1 deletion iocore/eventsystem/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/lib/records \
-I$(top_srcdir)/lib/ts

DEFS += @IOCORE_MODULARIZED_DEFS@
TESTS = $(check_PROGRAMS)

noinst_LIBRARIES = libinkevent.a
Expand Down
13 changes: 0 additions & 13 deletions iocore/hostdb/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

if STANDALONE_IOCORE
AM_CPPFLAGS = \
$(iocore_include_dirs) \
-I$(top_srcdir)/mgmt \
-I$(top_srcdir)/mgmt/utils \
-I$(top_srcdir)/lib \
-I$(top_srcdir)/lib/records \
-I$(top_srcdir)/lib/ts
else
AM_CPPFLAGS = \
$(iocore_include_dirs) \
-I$(top_srcdir)/lib \
Expand All @@ -36,10 +27,6 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/mgmt \
-I$(top_srcdir)/mgmt/utils \
-I$(top_srcdir)/mgmt/preparse
endif


DEFS += @IOCORE_MODULARIZED_DEFS@

EXTRA_DIST = I_HostDB.h

Expand Down
12 changes: 0 additions & 12 deletions iocore/net/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

if STANDALONE_IOCORE
AM_CPPFLAGS = \
$(iocore_include_dirs) \
-I$(top_srcdir)/mgmt \
-I$(top_srcdir)/mgmt/utils \
-I$(top_srcdir)/lib \
-I$(top_srcdir)/lib/records \
-I$(top_srcdir)/lib/ts
else
AM_CPPFLAGS = \
$(iocore_include_dirs) \
-I$(top_srcdir)/lib \
Expand All @@ -36,10 +27,7 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/mgmt \
-I$(top_srcdir)/mgmt/preparse \
-I$(top_srcdir)/mgmt/utils
endif


DEFS += @IOCORE_MODULARIZED_DEFS@
TESTS = $(check_PROGRAMS)

check_PROGRAMS = test_certlookup
Expand Down
2 changes: 0 additions & 2 deletions iocore/net/UnixNetProcessor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,8 @@ UnixNetProcessor::start(int, size_t)
netthreads = eventProcessor.eventthread[etype];
for (int i = 0; i < n_netthreads; ++i) {
initialize_thread_for_net(netthreads[i]);
#ifndef STANDALONE_IOCORE
extern void initialize_thread_for_http_sessions(EThread *thread, int thread_index);
initialize_thread_for_http_sessions(netthreads[i], i);
#endif
}

RecData d;
Expand Down
2 changes: 0 additions & 2 deletions iocore/utils/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/lib/ts \
-I$(top_srcdir)/iocore/eventsystem

DEFS += @IOCORE_MODULARIZED_DEFS@

noinst_LIBRARIES = libinkutils.a

libinkutils_a_SOURCES = \
Expand Down
6 changes: 1 addition & 5 deletions lib/ts/ink_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
#define TS_HAS_128BIT_CAS @has_128bit_cas@

/* API */
#define TS_HAS_STANDALONE_IOCORE @has_standalone_iocore@
#define TS_HAS_TESTS @has_tests@
#define TS_HAS_WCCP @has_wccp@

Expand All @@ -92,14 +91,11 @@

# define TS_MAX_API_STATS @max_api_stats@

#if TS_HAS_STANDALONE_IOCORE
# define STANDALONE_IOCORE 1
#else

# define FIXME_NONMODULAR 1
# define SPLIT_DNS 1
# define NON_MODULAR 1
# define HTTP_CACHE 1
#endif

/* Defaults for user / group */
#define TS_PKGSYSUSER "@pkgsysuser@"
Expand Down
14 changes: 0 additions & 14 deletions proxy/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,13 @@
# limitations under the License.

# Note that hdrs is targeted from ../Makefile.am
if STANDALONE_IOCORE
noinst_LIBRARIES = libTrafficServerStandalone.a
bin_PROGRAMS =
else
SUBDIRS = congest http logging config
noinst_LIBRARIES =
bin_PROGRAMS = \
traffic_server \
traffic_logcat \
traffic_logstats \
traffic_sac
endif

noinst_PROGRAMS = \
test_xml_parser
Expand Down Expand Up @@ -57,8 +52,6 @@ noinst_HEADERS = \
ConfigParse.h \
Show.h

EXTRA_LIBRARIES = \
libTrafficServerStandalone.a

if STATIC_LIBTS
which_libts = $(top_builddir)/lib/ts/.libs/libtsutil.a
Expand Down Expand Up @@ -260,13 +253,6 @@ if BUILD_TESTS
traffic_sac_SOURCES += RegressionSM.cc
endif

libTrafficServerStandalone_a_SOURCES = \
signals.cc \
EventName.cc \
StatPages.cc \
StatSystem.cc \
AbstractBuffer.cc \
Initialize.cc

test_xml_parser_SOURCES = test_xml_parser.cc
test_xml_parser_LDADD = \
Expand Down

0 comments on commit 51ce9ae

Please sign in to comment.