Skip to content

Commit

Permalink
Merge pull request #575 from wzl12356/patch-1
Browse files Browse the repository at this point in the history
update for linkopts
  • Loading branch information
Barenboim authored Sep 24, 2021
2 parents b45e87b + 8e644ae commit fafe09a
Showing 1 changed file with 11 additions and 81 deletions.
92 changes: 11 additions & 81 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ cc_library(
hdrs = glob(['src/include/workflow/*']),
includes = ['src/include'],
visibility = ["//visibility:public"],
linkopts = [
'-lpthread',
'-lssl',
'-lcrypto',
],
)
cc_library(
name = 'common_c',
Expand Down Expand Up @@ -191,114 +196,70 @@ cc_library(
':common',
],
visibility = ["//visibility:public"],
linkopts = [
'-lsnappy',
'-llz4',
'-lz',
'-lzstd',
],
)

cc_binary(
name = 'helloworld',
srcs = ['tutorial/tutorial-00-helloworld.cc'],
deps = [':http'],
linkopts = [
'-lpthread',
'-lssl',
'-lcrypto',
],
)
cc_binary(
name = 'wget',
srcs = ['tutorial/tutorial-01-wget.cc'],
deps = [':http'],
linkopts = [
'-lpthread',
'-lssl',
'-lcrypto',
],
)
cc_binary(
name = 'redis_cli',
srcs = ['tutorial/tutorial-02-redis_cli.cc'],
deps = [':redis'],
linkopts = [
'-lpthread',
'-lssl',
'-lcrypto',
],
)

cc_binary(
name = 'wget_to_redis',
srcs = ['tutorial/tutorial-03-wget_to_redis.cc'],
deps = [':http', 'redis'],
linkopts = [
'-lpthread',
'-lssl',
'-lcrypto',
],
)

cc_binary(
name = 'http_echo_server',
srcs = ['tutorial/tutorial-04-http_echo_server.cc'],
deps = [':http'],
linkopts = [
'-lpthread',
'-lssl',
'-lcrypto',
],
)

cc_binary(
name = 'http_proxy',
srcs = ['tutorial/tutorial-05-http_proxy.cc'],
deps = [':http'],
linkopts = [
'-lpthread',
'-lssl',
'-lcrypto',
],
)

cc_binary(
name = 'parallel_wget',
srcs = ['tutorial/tutorial-06-parallel_wget.cc'],
deps = [':http'],
linkopts = [
'-lpthread',
'-lssl',
'-lcrypto',
],
)

cc_binary(
name = 'sort_task',
srcs = ['tutorial/tutorial-07-sort_task.cc'],
deps = [':common'],
linkopts = [
'-lpthread',
'-lssl',
'-lcrypto',
],
)

cc_binary(
name = 'matrix_multiply',
srcs = ['tutorial/tutorial-08-matrix_multiply.cc'],
deps = [':common'],
linkopts = [
'-lpthread',
'-lssl',
'-lcrypto',
],
)

cc_binary(
name = 'http_file_server',
srcs = ['tutorial/tutorial-09-http_file_server.cc'],
deps = [':http'],
linkopts = [
'-lpthread',
'-lssl',
'-lcrypto',
],
)

cc_library(
Expand All @@ -314,11 +275,6 @@ cc_binary(
'tutorial/tutorial-10-user_defined_protocol/message.cc',
],
deps = [':common', ':user_hdrs'],
linkopts = [
'-lpthread',
'-lssl',
'-lcrypto',
],
)

cc_binary(
Expand All @@ -328,49 +284,23 @@ cc_binary(
'tutorial/tutorial-10-user_defined_protocol/message.cc',
],
deps = [':common', ':user_hdrs'],
linkopts = [
'-lpthread',
'-lssl',
'-lcrypto',
],
)

cc_binary(
name = 'graph_task',
srcs = ['tutorial/tutorial-11-graph_task.cc'],
deps = [':http'],
linkopts = [
'-lpthread',
'-lssl',
'-lcrypto',
],
)

cc_binary(
name = 'mysql_cli',
srcs = ['tutorial/tutorial-12-mysql_cli.cc'],
deps = [':mysql'],
linkopts = [
'-lpthread',
'-lssl',
'-lcrypto',
],
)

cc_binary(
name = 'kafka_cli',
srcs = ['tutorial/tutorial-13-kafka_cli.cc'],
deps = [':kafka', ':workflow_hdrs'],
copts = ['-fno-rtti'],
linkopts = [
'-L/usr/local/lib',
'-L/usr/local/lib64',
'-lpthread',
'-lssl',
'-lcrypto',
'-lsnappy',
'-llz4',
'-lz',
'-lzstd',
],
)

0 comments on commit fafe09a

Please sign in to comment.