Skip to content

Commit

Permalink
[syncd]: Generate syncd_dash (sonic-net#1377)
Browse files Browse the repository at this point in the history
Make original syncd-vs and syncd-dash co-exist.

Signed-off-by: Ze Gan <[email protected]>
  • Loading branch information
Pterosaur authored May 10, 2024
1 parent 8a0cc25 commit 256ce7d
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions syncd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ SUBDIRS = . tests
AM_CXXFLAGS = $(SAIINC) -I$(top_srcdir)/lib -I$(top_srcdir)/vslib

if SAIVS
if DASHSAI
SAILIB = -lsai
EXTRA_LIBSAI_LDFLAGS += -lprotobuf -lpiprotobuf -lpiprotogrpc -lgrpc++
else
SAILIB=-L$(top_srcdir)/vslib/.libs -lsaivs
endif
else
SAILIB=-lsai
endif
Expand Down Expand Up @@ -118,3 +113,15 @@ syncd_tests_LDADD = libSyncd.a -lhiredis -lswsscommon -lpthread -L$(top_srcdir)/
-L$(top_srcdir)/meta/.libs -lsaimetadata -lsaimeta -lzmq $(CODE_COVERAGE_LIBS)

TESTS = syncd_tests

if SAIVS
if DASHSAI
bin_PROGRAMS += syncd_dash
syncd_dash_SOURCES = $(syncd_SOURCES)
syncd_dash_CPPFLAGS = $(syncd_CPPFLAGS)
syncd_dash_CXXFLAGS = $(syncd_CXXFLAGS)
syncd_dash_LDADD = libSyncd.a $(top_srcdir)/lib/libSaiRedis.a -L$(top_srcdir)/meta/.libs -lsaimetadata -lsaimeta \
-ldl -lhiredis -lswsscommon -lsai -lprotobuf -lpiprotobuf -lpiprotogrpc -lgrpc++ -lpthread -lzmq $(CODE_COVERAGE_LIBS) $(EXTRA_LIBSAI_LDFLAGS)
syncd_dash_LDFLAGS = $(syncd_LDFLAGS)
endif
endif

0 comments on commit 256ce7d

Please sign in to comment.