diff postdog/BUILD @ 60:d64a8c189a77

Merged
author June Park <me@mrjunejune.com>
date Sat, 20 Dec 2025 13:56:01 -0500
parents ccb42d5bf8fd
children 75de5903355c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/postdog/BUILD	Sat Dec 20 13:56:01 2025 -0500
@@ -0,0 +1,35 @@
+load("//third_party/raylib:raylib.bzl", "raylib_binary")
+load("//gui_ze:gui_ze.bzl", "macos_app_and_dmg")
+
+raylib_binary(
+  name = "postdog",
+  srcs = ["main.c"],
+  deps = [
+    "//third_party/raylib:raylib",
+  ],
+  linkopts_macos = [
+    "-framework CoreVideo",
+    "-framework IOKit",
+    "-framework Cocoa",
+    "-framework GLUT",
+    "-framework OpenGL",
+    "-lcurl",
+  ],
+  linkopts_linux = [
+    "-lGL",
+    "-lm",
+    "-lpthread",
+    "-ldl",
+    "-lrt",
+    "-lX11",
+    "-lcurl",
+  ],
+  static = True
+)
+
+macos_app_and_dmg(
+  name = "postdog_bundle",
+  binary = ":postdog",
+  bundle_id = "com.june.postdog"
+)
+