Last active
September 4, 2017 06:32
-
-
Save lithiumhead/0f1129c312d7cf05540f9b1d76aa8b75 to your computer and use it in GitHub Desktop.
Hello World - C Shared Library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package(default_visibility = ["//visibility:public"]) | |
cc_library( | |
name = "hello", | |
srcs = ["libhello.c"], | |
hdrs = ["libhello.h"], | |
) | |
cc_binary( | |
name = "main.exe", | |
linkstatic = 0, | |
srcs = ["main.c"], | |
deps = [":hello"], | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment