Skip to content

Commit

Permalink
saiplayer: Change player to saiplayer and add it into syncd package (s…
Browse files Browse the repository at this point in the history
…onic-net#114)

* debian: Change player to saiplayer and add it into syncd package
* .gitignore: Add saiplayer and saidump
  • Loading branch information
Shuotian Cheng authored Nov 10, 2016
1 parent 9762273 commit b5edf8a
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 17 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ deps/
###############
syncd/syncd
syncd/syncd_request_shutdown
player/player
saiplayer/saiplayer
saidump/saidump
meta/tests

# Temporary files #
Expand Down
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SUBDIRS = meta lib vslib syncd player saidump
SUBDIRS = meta lib vslib syncd saiplayer saidump
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,5 @@ AC_OUTPUT(Makefile
vslib/Makefile
vslib/src/Makefile
syncd/Makefile
player/Makefile
saiplayer/Makefile
saidump/Makefile)
1 change: 1 addition & 0 deletions debian/syncd.install
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
usr/bin/saidump
usr/bin/saiplayer
usr/bin/syncd*
etc/*
13 changes: 0 additions & 13 deletions player/Makefile.am

This file was deleted.

13 changes: 13 additions & 0 deletions saiplayer/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
AM_CPPFLAGS = -I/usr/include/sai

bin_PROGRAMS = saiplayer

if DEBUG
DBGFLAGS = -ggdb -DDEBUG
else
DBGFLAGS = -g
endif

saiplayer_SOURCES = saiplayer.cpp
saiplayer_CPPFLAGS = $(DBGFLAGS) $(AM_CPPFLAGS) $(CFLAGS_COMMON)
saiplayer_LDADD = -lhiredis -lswsscommon -lpthread -L$(top_srcdir)/meta/.libs -lsaimetadata -L$(top_srcdir)/lib/src/.libs -lsairedis
2 changes: 1 addition & 1 deletion player/player.cpp → saiplayer/saiplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ int replay(int argc, char **argv)

void printUsage()
{
std::cout << "Usage: player [-h] recordfile" << std::endl << std::endl;
std::cout << "Usage: saiplayer [-h] recordfile" << std::endl << std::endl;
std::cout << " -C --skipNotifySyncd:" << std::endl;
std::cout << " Will not send notify init/apply view to syncd" << std::endl << std::endl;
std::cout << " -d --enableDebug:" << std::endl;
Expand Down

0 comments on commit b5edf8a

Please sign in to comment.