aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/windows/dll/BUILD
diff options
context:
space:
mode:
authorGravatar Yun Peng <pcloudy@google.com>2016-06-30 14:27:38 +0000
committerGravatar Lukacs Berki <lberki@google.com>2016-07-01 07:08:30 +0000
commita93e9de9f5eaada1fe8ce8ecc1cebfd1614ed2b9 (patch)
tree1e0b1ec15488ac5b45042613d212e00d5eeeb821 /examples/windows/dll/BUILD
parentdd7bd50ad1f6cdddea218c704c933239e31ce7bf (diff)
Added a dll hello world example program
run following commands to test it: bazel build --cpu=x64_windows_msvc examples/windows/dll:hello ./bazel-bin/examples/windows/dll/hello -- Change-Id: I096f6ff66473b1c9980b0aa36ec291f39512dd71 Reviewed-on: https://bazel-review.googlesource.com/#/c/3932 MOS_MIGRATED_REVID=126300284
Diffstat (limited to 'examples/windows/dll/BUILD')
-rw-r--r--examples/windows/dll/BUILD15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/windows/dll/BUILD b/examples/windows/dll/BUILD
new file mode 100644
index 0000000000..2b7e956fc5
--- /dev/null
+++ b/examples/windows/dll/BUILD
@@ -0,0 +1,15 @@
+cc_binary(
+ name = "hellolib.dll",
+ srcs = [
+ "hello-library.cpp",
+ ],
+ linkshared = 1,
+)
+
+cc_binary(
+ name = "hello",
+ srcs = [
+ "hello-world.cpp",
+ ],
+ data = [":hellolib.dll"],
+)